]>
Commit | Line | Data |
---|---|---|
c97d2ae1 | 1 | #ifndef __ALIJETCORRELWRITER_H__ |
2 | #define __ALIJETCORRELWRITER_H__ | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | /* $Id: $ */ | |
6 | ||
7 | //______________________________________________________ | |
8 | // Class for output (histograms) definition and filling. | |
9 | //-- Author: Paul Constantin | |
10 | ||
11 | #include "AliJetCorrelSelector.h" | |
12 | #include "AliJetCorrelMaker.h" | |
13 | ||
14 | namespace JetCorrelHD { | |
15 | ||
16 | class AliJetCorrelWriter : public TObject { | |
17 | ||
18 | public: | |
19 | AliJetCorrelWriter(); | |
20 | ~AliJetCorrelWriter(); | |
21 | void Init(AliJetCorrelSelector * const s, AliJetCorrelMaker * const m); | |
22 | ||
23 | void CreateGeneric(TList* histosContainer); | |
24 | void CreateQA(TList *histosContainer); | |
25 | void CreateCorrelations(TList* histosContainer); | |
26 | ||
27 | void FillGlobal(Float_t cent, Float_t zvert); | |
28 | void FillSingleHistos(CorrelList_t * const PartList, UInt_t cBin, UInt_t pIdx); | |
29 | void FillTrackQA(AliESDtrack * const track, UInt_t idx); | |
30 | void FillParentNtuple(CorrelList_t * const ParentList); | |
31 | void FillCorrelations(FillType_t fTyp, UInt_t iCorr, UInt_t cBin, UInt_t vBin, | |
32 | CorrelParticle_t * const Trigger, CorrelParticle_t * const Associated); | |
33 | ||
34 | Float_t DeltaPhi(Float_t phi1, Float_t phi2); | |
35 | void ShowStats(); | |
36 | ||
37 | private: | |
38 | AliJetCorrelSelector *fSelector; // user selection object | |
39 | AliJetCorrelMaker *fMaker; // correlation maker object | |
40 | TString hname, htit; // histos name&title | |
41 | Bool_t fRecoTrigg; // is trigger reconstructed | |
42 | TRandom2 fRndm; // random number generator | |
43 | UInt_t fNumReal[kMAXNUMCORREL][kMAXCENTBIN], fNumMix[kMAXNUMCORREL][kMAXCENTBIN]; // counters | |
44 | ||
45 | // Output Histograms | |
46 | TH1F *hBinsCentr, *hBinsZVert, *hCentr, *hZVert; // binning histos | |
47 | TH2F *hTrkITSQA[2], *hTrkTPCQA[2], *hTrkVTXQA[2]; // track QA histos | |
48 | TH3F *hTrkProx[2][kMAXCENTBIN]; // distance at TPC entrance between tracks | |
49 | TNtuple *ntuParent; // reconstructed parent ntuple | |
50 | TH1F *hTriggPt[kMAXNUMCORREL][kMAXCENTBIN]; // trigger Pt | |
51 | TH3F *hDPhi[2][kMAXNUMCORREL][kMAXCENTBIN][kMAXVERTBIN]; // DeltaPhi correlation histos | |
52 | TH3F *hDEta[2][kMAXNUMCORREL][kMAXCENTBIN][kMAXVERTBIN]; // DeltaEta correlation histos | |
53 | TH3F *hPout[2][kMAXNUMCORREL][kMAXCENTBIN][kMAXVERTBIN]; // Pout correlation histos | |
54 | ||
55 | // disable (make private) copy constructor and assignment operator: | |
56 | AliJetCorrelWriter(const AliJetCorrelWriter&); | |
57 | AliJetCorrelWriter& operator=(const AliJetCorrelWriter&); | |
58 | ||
59 | ClassDef(AliJetCorrelWriter, 1); | |
60 | }; | |
61 | ||
62 | } // namespace | |
63 | ||
64 | #endif |