]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/PartCorrBase/AliCaloTrackAODReader.h
Move GetModuleNumberXXX methods from QA analysis to a common place for other analysis...
[u/mrichter/AliRoot.git] / PWG4 / PartCorrBase / AliCaloTrackAODReader.h
1 #ifndef ALICALOTRACKAODREADER_H
2 #define ALICALOTRACKAODREADER_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 reading data (AODs) in order to do prompt gamma or other particle
9 // identification and correlations.
10 // Mixing analysis can be done, input AOD with events
11 // is opened in the AliCaloTrackReader::Init()
12 //
13 //
14 // -- Author: Gustavo Conesa (INFN-LNF)
15
16 // --- ROOT system --- 
17
18 // --- AliRoot system ---
19 #include "AliCaloTrackReader.h" 
20 #include "AliAODEvent.h"
21
22 class AliCaloTrackAODReader : public AliCaloTrackReader {
23         
24 public: 
25         
26   AliCaloTrackAODReader() ; // ctor
27   AliCaloTrackAODReader(const AliCaloTrackAODReader & g)  ; // cpy ctor
28   //AliCaloTrackAODReader & operator = (const AliCaloTrackAODReader & g) ;//cpy assignment
29   virtual ~AliCaloTrackAODReader() {;} //virtual dtor
30   
31   void FillInputCTS()   ;
32   void FillInputEMCAL() ;
33   void FillInputPHOS()  ;
34   void FillInputEMCALCells() ;
35   void FillInputPHOSCells()  ;
36         
37   Double_t GetBField() const;
38
39   void GetSecondInputAODVertex(Double_t v[3]) const ;
40   void GetVertex(Double_t v[3]) const ;
41   
42   void SetInputOutputMCEvent(AliVEvent* esd, AliAODEvent* aod, AliMCEvent* mc) ; 
43   void SwitchOnWriteStdAOD()  {fWriteOutputStdAOD = kTRUE;}
44   void SwitchOffWriteStdAOD() {fWriteOutputStdAOD = kFALSE;}
45
46   TString GetFiredTriggerClasses() {return ((AliAODEvent*)GetInputEvent())->GetFiredTriggerClasses();}
47         
48   // Get calorimeter (Super)module number where this cluster falled
49   Int_t GetModuleNumber(AliAODCaloCluster * cluster) const ;
50         
51   void Print(const Option_t * opt) const;
52         
53 private:
54   Bool_t             fWriteOutputStdAOD;   // Write selected standard tracks and caloclusters in output AOD
55
56   ClassDef(AliCaloTrackAODReader,4)
57 } ;
58
59 #endif //ALICALOTRACKAODREADER_H
60
61
62