]>
Commit | Line | Data |
---|---|---|
1c5acb87 | 1 | #ifndef ALIANAPARTCORRMAKER_H |
2 | #define ALIANAPARTCORRMAKER_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 | // Steering class for particle (gamma, hadron) identification and correlation analysis | |
9 | // It is called by the task class AliAnalysisTaskParticleCorrelation and it connects the input | |
a8a55c9d | 10 | // (ESD/AOD/MonteCarlo) got with AliCaloTrackReader (produces TObjArrays of AODs |
1c5acb87 | 11 | // (TParticles in MC case if requested)), with the |
12 | // analysis classes that derive from AliAnaPartCorrBaseClass | |
13 | // | |
14 | // -- Author: Gustavo Conesa (INFN-LNF) | |
15 | ||
16 | // --- ROOT system --- | |
17 | class TList; | |
18 | class TClonesArray; | |
19 | #include<TObject.h> | |
20 | class TString; | |
031ac63e | 21 | class TH1I; |
1c5acb87 | 22 | |
23 | // --- Analysis system --- | |
24 | class AliCaloTrackReader ; | |
765d44e7 | 25 | class AliCalorimeterUtils ; |
1c5acb87 | 26 | |
27 | class AliAnaPartCorrMaker : public TObject { | |
28 | ||
477d6cee | 29 | public: |
1c5acb87 | 30 | |
31 | AliAnaPartCorrMaker() ; // default ctor | |
d151d2ee | 32 | AliAnaPartCorrMaker(const AliAnaPartCorrMaker & maker) ; // cpy ctor |
1c5acb87 | 33 | virtual ~AliAnaPartCorrMaker() ; //virtual dtor |
d151d2ee | 34 | |
35 | private: | |
7b095e3b | 36 | AliAnaPartCorrMaker & operator = (const AliAnaPartCorrMaker & ) ;//cpy assignment |
d151d2ee | 37 | |
38 | public: | |
39 | ||
1c5acb87 | 40 | //Setter and getters |
41 | TList * GetAODBranchList() ; | |
2e557d1c | 42 | TList * GetOutputContainer() ; |
1c5acb87 | 43 | |
44 | Int_t GetAnaDebug() const { return fAnaDebug ; } | |
591cc579 | 45 | void SetAnaDebug(Int_t d) { fAnaDebug = d ; } |
42dc8e7d | 46 | |
591cc579 | 47 | Bool_t AreHistogramsMade() const { return fMakeHisto ; } |
1c5acb87 | 48 | void SwitchOnHistogramsMaker() { fMakeHisto = kTRUE ; } |
591cc579 | 49 | void SwitchOffHistogramsMaker() { fMakeHisto = kFALSE ; } |
1c5acb87 | 50 | |
591cc579 | 51 | Bool_t AreAODsMade() const { return fMakeAOD ; } |
1c5acb87 | 52 | void SwitchOnAODsMaker() { fMakeAOD = kTRUE ; } |
591cc579 | 53 | void SwitchOffAODsMaker() { fMakeAOD = kFALSE ; } |
1c5acb87 | 54 | |
a5cc4f03 | 55 | void Terminate(TList * outputList); |
6639984f | 56 | |
1c5acb87 | 57 | void AddAnalysis(TObject* ana, Int_t n) { |
477d6cee | 58 | if ( fAnalysisContainer) fAnalysisContainer->AddAt(ana,n); |
59 | else { printf("AliAnaPartCorrMaker::AddAnalysis() - AnalysisContainer not initialized\n"); | |
60 | abort();} | |
61 | } | |
62 | ||
1c5acb87 | 63 | AliCaloTrackReader * GetReader() const {return fReader ; } |
765d44e7 | 64 | void SetReader(AliCaloTrackReader * reader) { fReader = reader ; } |
591cc579 | 65 | |
765d44e7 | 66 | AliCalorimeterUtils * GetCaloUtils() const {return fCaloUtils ; } |
67 | void SetCaloUtils(AliCalorimeterUtils * caloutils) { fCaloUtils = caloutils ; } | |
68 | ||
1c5acb87 | 69 | //Others |
70 | void Init(); | |
71 | void InitParameters(); | |
477d6cee | 72 | |
1c5acb87 | 73 | void Print(const Option_t * opt) const; |
477d6cee | 74 | |
29b2ceec | 75 | void ProcessEvent(const Int_t iEntry, const char * currentFileName) ; |
477d6cee | 76 | |
1c5acb87 | 77 | private: |
78 | ||
79 | //General Data members | |
477d6cee | 80 | |
39ffdc47 | 81 | TList * fOutputContainer ; //! Output histograms container |
82 | TList * fAnalysisContainer ; // List with analysis pointers | |
1c5acb87 | 83 | Bool_t fMakeHisto ; // If true makes final analysis with histograms as output |
84 | Bool_t fMakeAOD ; // If true makes analysis generating AODs | |
85 | Int_t fAnaDebug; // Debugging info. | |
86 | ||
765d44e7 | 87 | AliCaloTrackReader * fReader ; // Pointer to reader |
88 | AliCalorimeterUtils * fCaloUtils ; // Pointer to CalorimeterUtils | |
89 | ||
1c5acb87 | 90 | TList * fAODBranchList ; //! List with AOD branches created and needed in analysis |
42dc8e7d | 91 | |
1cd71065 | 92 | TH1I *fhNEvents; //! Number of events counter histogram |
031ac63e | 93 | |
94 | ClassDef(AliAnaPartCorrMaker,3) | |
1c5acb87 | 95 | } ; |
96 | ||
97 | ||
98 | #endif //ALIANAPARTCORRMAKER_H | |
99 | ||
100 | ||
101 |