10 // This class creates dN/deta for the FMD from the analysis objects.
11 // The contents of this class should probably go into a task at some point
14 class AliFMDDndeta : public TObject
19 AliFMDDndeta(const AliFMDDndeta& o) :
23 fNbinsToCut(o.fNbinsToCut),
28 fPrimEvents(o.fPrimEvents),
30 fPrimdNdeta(fPrimdNdeta)
33 AliFMDDndeta& operator=(const AliFMDDndeta& /*o*/)
35 // Assignment operator
40 enum Analysis {kHits, kHitsTrVtx, kMult, kMultTrVtx};
44 void Init(const Char_t* filename);
45 void Init(TList* list);
46 void GenerateMult(Analysis what);
47 void DrawDndeta(Analysis what, Int_t rebin = 1, Bool_t realdata = kFALSE);
48 void SetNbinsToCut(Int_t nbins) {fNbinsToCut = nbins;}
49 void SetVtxCut1(Int_t vtxcut) {fVtxCut1 = vtxcut;}
50 void SetVtxCut2(Int_t vtxcut) {fVtxCut2 = vtxcut;}
51 void CreateSharingEfficiency(const Char_t* filename, Bool_t store = kFALSE);
52 TList* GetMultList(Analysis what) {return fMultList[what];}
54 void GenerateHits(Analysis what);
55 void SetNames(Analysis what);
56 const char* GetAnalysisName(Analysis what, UShort_t det, Char_t ring, Int_t vtxbin);
57 const char* GetPrimName(Analysis what, UShort_t det, Char_t ring, Int_t vtxbin);
58 void RebinHistogram(TH1F* hist, Int_t rebin);
59 TList* fList; // A list of input histograms
60 TList* fMultList[4]; // A list of mult histograms
61 Int_t fNbinsToCut; // The number of bins to cut
62 Int_t fVtxCut1; // Vtx low
63 Int_t fVtxCut2; // Vtx high
64 Bool_t fIsInit; // Are we init ?
65 Bool_t fIsGenerated[4]; // Have we generated ?
66 TString fPrimEvents; // Number of prim events
67 TString fEvents; // Number of events
68 TString fPrimdNdeta; // the primary dNdeta from MC
69 Char_t* fAnalysisNames[4]; // Names of analysis
70 ClassDef(AliFMDDndeta,2);