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 */
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
10 // (ESD/AOD/MonteCarlo) got with AliCaloTrackReader (produces TObjArrays of AODs
11 // (TParticles in MC case if requested)), with the
12 // analysis classes that derive from AliAnaPartCorrBaseClass
14 // -- Author: Gustavo Conesa (INFN-LNF)
16 // --- ROOT system ---
23 // --- Analysis system ---
24 #include "AliCaloTrackReader.h"
25 #include "AliCalorimeterUtils.h"
27 class AliAnaPartCorrMaker : public TObject {
30 AliAnaPartCorrMaker() ; // default ctor
31 virtual ~AliAnaPartCorrMaker() ; //virtual dtor
32 AliAnaPartCorrMaker(const AliAnaPartCorrMaker & maker) ; // cpy ctor
35 AliAnaPartCorrMaker & operator = (const AliAnaPartCorrMaker & ) ;//cpy assignment
40 TList * GetListOfAnalysisCuts();
41 TList * GetOutputContainer() ;
43 TList * FillAndGetAODBranchList();
45 Int_t GetAnaDebug() const { return fAnaDebug ; }
46 void SetAnaDebug(Int_t d) { fAnaDebug = d ; }
48 Bool_t AreHistogramsMade() const { return fMakeHisto ; }
49 void SwitchOnHistogramsMaker() { fMakeHisto = kTRUE ; }
50 void SwitchOffHistogramsMaker() { fMakeHisto = kFALSE ; }
52 Bool_t AreAODsMade() const { return fMakeAOD ; }
53 void SwitchOnAODsMaker() { fMakeAOD = kTRUE ; }
54 void SwitchOffAODsMaker() { fMakeAOD = kFALSE ; }
56 void Terminate(TList * outputList);
58 void AddAnalysis(TObject* ana, Int_t n) {
59 if ( fAnalysisContainer) fAnalysisContainer->AddAt(ana,n);
60 else { printf("AliAnaPartCorrMaker::AddAnalysis() - AnalysisContainer not initialized\n");
64 AliCaloTrackReader * GetReader() {if(!fReader) fReader = new AliCaloTrackReader ();return fReader ; }
65 void SetReader(AliCaloTrackReader * reader) { fReader = reader ; }
67 AliCalorimeterUtils * GetCaloUtils() {if(!fCaloUtils) fCaloUtils = new AliCalorimeterUtils(); return fCaloUtils ; }
68 void SetCaloUtils(AliCalorimeterUtils * caloutils) { fCaloUtils = caloutils ; }
72 void InitParameters();
74 void Print(const Option_t * opt) const;
76 void ProcessEvent(const Int_t iEntry, const char * currentFileName) ;
80 //General Data members
82 TList * fOutputContainer ; //! Output histograms container
83 TList * fAnalysisContainer ; // List with analysis pointers
84 Bool_t fMakeHisto ; // If true makes final analysis with histograms as output
85 Bool_t fMakeAOD ; // If true makes analysis generating AODs
86 Int_t fAnaDebug; // Debugging info.
88 AliCaloTrackReader * fReader ; // Pointer to reader
89 AliCalorimeterUtils * fCaloUtils ; // Pointer to CalorimeterUtils
91 TList * fCuts ; //! List with analysis cuts
93 TH1I * fhNEvents; //! Number of events counter histogram
95 ClassDef(AliAnaPartCorrMaker,7)
99 #endif //ALIANAPARTCORRMAKER_H