#include <TNamed.h>
#include <TObjArray.h>
+#include <TBits.h>
+#include <THnBase.h>
#include "AliDielectronVarManager.h"
#include "AliDielectronHistos.h"
void SetSignalsMC(TObjArray* array) {fSignalsMC = array;}
void SetStepForMCGenerated(Bool_t switcher=kTRUE) {fStepGenerated = switcher;}
void SetPairTypes(EPairType ptype) { fPairType=ptype; }
+ void SetEventArray(Bool_t switcher=kTRUE) {fEventArray=switcher;}
// functions to add 1-dimensional objects
void UserProfile(const char* histClass, UInt_t valTypeP,
UInt_t valTypeX, UInt_t valTypeY, UInt_t valTypeZ, UInt_t valTypeW=AliDielectronHistos::kNoWeights)
{ UserProfile(histClass,AliDielectronHistos::kNoProfile,binsX,binsY,binsZ,valTypeX,valTypeY,valTypeZ,"",valTypeW); }
+ // functions to add multidimensional stuff
+ void UserSparse(const char* histClass,
+ Int_t ndim, TObjArray *limits, UInt_t *vars, UInt_t valTypeW=AliDielectronHistos::kNoWeights);
+
// functions to define the grid
void AddCutVariable(AliDielectronVarManager::ValueTypes type, Int_t nbins,
Int_t GetNumberOfBins() const;
const TObjArray * GetHistArray() const { return &fArrPairType; }
- Bool_t GetStepForMCGenerated() const { return fStepGenerated; }
+ Bool_t GetStepForMCGenerated() const { return fStepGenerated; }
+ Bool_t IsEventArray() const { return fEventArray; }
+
+
private:
+ TBits *fUsedVars; // list of used variables
+
TObjArray fArrPairType; //-> array of pair types
EPairType fPairType; // which pair combinations to include
TObjArray* fSignalsMC; //! array of MC signals to be studied
UShort_t fVarCuts[kMaxCuts]; // cut variables
- Bool_t fVarCutType[kMaxCuts]; // array to store leg booleans
+ TBits *fVarCutType; // array to store leg booleans
+ // Bool_t fVarCutType[kMaxCuts]; // array to store leg booleans
TObjArray fAxes; // Axis descriptions of the cut binning
UShort_t fBinType[kMaxCuts]; // binning type of the axes
Bool_t fHasMC; // is mc array
Bool_t fStepGenerated; // switcher for generated particles
-
+ Bool_t fEventArray; // switch OFF pair types and ON event array
TObjArray fRefObj; // reference object
AliDielectronHF(const AliDielectronHF &c);
AliDielectronHF &operator=(const AliDielectronHF &c);
- ClassDef(AliDielectronHF,3) // Dielectron HF
+ ClassDef(AliDielectronHF,6) // Dielectron HF
};