]>
Commit | Line | Data |
---|---|---|
de568db1 | 1 | //////////////////////////////////////////////////////////////////////////////// |
2 | // // | |
3 | // AliFemtoEventReaderAOD - the reader class for the Alice AOD // | |
4 | // Reads in AOD information and converts it into internal AliFemtoEvent // | |
5 | // Authors: Adam Kisiel kisiel@mps.ohio-state.edu // | |
6 | // // | |
7 | //////////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | #ifndef ALIFEMTOEVENTREADERAOD_H | |
10 | #define ALIFEMTOEVENTREADERAOD_H | |
11 | #include "AliFemtoEventReader.h" | |
12 | #include "AliFemtoEnumeration.h" | |
13 | ||
14 | #include <string> | |
15 | #include <vector> | |
16 | #include "TTree.h" | |
17 | #include "TChain.h" | |
18 | #include "TBits.h" | |
19 | #include "AliAODEvent.h" | |
20 | #include <list> | |
21 | #include "AliPWG2AODTrack.h" | |
683877d2 | 22 | #include "AliAODMCParticle.h" |
de568db1 | 23 | |
1309aa0b | 24 | #include "AliAODpidUtil.h" |
25 | ||
de568db1 | 26 | class AliFemtoEvent; |
27 | class AliFemtoTrack; | |
28 | ||
29 | class AliFemtoEventReaderAOD : public AliFemtoEventReader | |
30 | { | |
31 | public: | |
32 | AliFemtoEventReaderAOD(); | |
33 | AliFemtoEventReaderAOD(const AliFemtoEventReaderAOD &aReader); | |
34 | virtual ~AliFemtoEventReaderAOD(); | |
35 | ||
36 | AliFemtoEventReaderAOD& operator=(const AliFemtoEventReaderAOD& aReader); | |
37 | ||
38 | virtual AliFemtoEvent* ReturnHbtEvent(); | |
39 | AliFemtoString Report(); | |
40 | void SetInputFile(const char* inputFile); | |
41 | void SetFilterBit(UInt_t ibit); | |
683877d2 | 42 | void SetReadMC(unsigned char a); |
948862a7 | 43 | void SetCentralityPreSelection(double min, double max); |
1309aa0b | 44 | void SetAODpidUtil(AliAODpidUtil *aAODpidUtil); |
de568db1 | 45 | |
46 | protected: | |
47 | virtual void CopyAODtoFemtoEvent(AliFemtoEvent *tEvent); | |
fd7bd835 | 48 | virtual void CopyAODtoFemtoTrack( AliAODTrack *tAodTrack, |
de568db1 | 49 | AliFemtoTrack *tFemtoTrack, |
50 | AliPWG2AODTrack *tPWG2AODTrack); | |
fd7bd835 | 51 | virtual void CopyPIDtoFemtoTrack( AliAODTrack *tAodTrack, |
6cc142b2 | 52 | AliFemtoTrack *tFemtoTrack); |
de568db1 | 53 | |
54 | int fNumberofEvent; // number of Events in AOD file | |
55 | int fCurEvent; // number of current event | |
56 | AliAODEvent* fEvent; // AOD event | |
57 | TBits fAllTrue; // Bit set with all true bits | |
58 | TBits fAllFalse; // Bit set with all false bits | |
59 | UInt_t fFilterBit; // Bitmap bit for AOD filters | |
60 | TClonesArray* fPWG2AODTracks; // Link to PWG2 specific AOD information (if it exists) | |
683877d2 | 61 | |
62 | unsigned char fReadMC; // Attempt to read the MC information from the AOD | |
948862a7 | 63 | unsigned char fUsePreCent; // Use centrality pre-selection to speed up analysis |
64 | double fCentRange[2]; // Centrality pre-selection range | |
1309aa0b | 65 | AliAODpidUtil* fAODpidUtil; |
de568db1 | 66 | |
67 | private: | |
68 | ||
683877d2 | 69 | AliAODMCParticle* GetParticleWithLabel(TClonesArray *mcP, Int_t aLabel); |
70 | ||
de568db1 | 71 | string fInputFile; // name of input file with AOD filenames |
72 | string fFileName; // name of current AOD file | |
73 | TChain* fTree; // AOD tree | |
74 | TFile* fAodFile; // AOD file | |
75 | ||
76 | #ifdef __ROOT__ | |
77 | ClassDef(AliFemtoEventReaderAOD, 11) | |
78 | #endif | |
79 | ||
683877d2 | 80 | }; |
de568db1 | 81 | |
82 | #endif | |
83 | ||
84 |