]>
Commit | Line | Data |
---|---|---|
1b446896 | 1 | #ifndef ALIHBTREADER_H |
2 | #define ALIHBTREADER_H | |
3 | ||
2de2e2c6 | 4 | #include <TNamed.h> |
1b446896 | 5 | |
6 | //Reader Base class (reads particles and tracks and | |
0fdcc83d | 7 | //puts it to the AliHBTRun objects |
1b446896 | 8 | //Piotr.Skowronski@cern.ch |
9 | ||
10 | class AliHBTRun; | |
11 | class AliHBTEvent; | |
12 | class AliHBTParticleCut; | |
13 | class TObjArray; | |
14 | class AliHBTParticle; | |
0fdcc83d | 15 | class TString; |
1b446896 | 16 | |
2de2e2c6 | 17 | class AliHBTReader: public TNamed |
1b446896 | 18 | { |
19 | public: | |
20 | AliHBTReader(); | |
0fdcc83d | 21 | AliHBTReader(TObjArray*); |
1b446896 | 22 | virtual ~AliHBTReader(); |
23 | //in the future this class is will read global tracking | |
24 | virtual Int_t Read(AliHBTRun* particles, AliHBTRun *tracks) = 0; | |
25 | ||
26 | virtual AliHBTEvent* GetParticleEvent(Int_t) = 0; | |
27 | virtual AliHBTEvent* GetTrackEvent(Int_t) = 0; | |
28 | virtual Int_t GetNumberOfPartEvents() = 0; | |
29 | virtual Int_t GetNumberOfTrackEvents() = 0; | |
30 | ||
1b446896 | 31 | void AddParticleCut(AliHBTParticleCut* cut); |
4e7d5d5f | 32 | |
33 | void SetDirs(TObjArray* dirs){fDirs = dirs;} //sets array directories names | |
0fdcc83d | 34 | |
1b446896 | 35 | protected: |
36 | ||
0fdcc83d | 37 | TObjArray *fCuts;//array with particle cuts |
38 | TObjArray *fDirs;//arry with directories to read data from | |
1b446896 | 39 | |
40 | Bool_t Pass(AliHBTParticle*); | |
41 | Bool_t Pass(Int_t pid); | |
0fdcc83d | 42 | |
43 | TString& GetDirName(Int_t); | |
1b446896 | 44 | |
45 | private: | |
46 | ||
47 | public: | |
2de2e2c6 | 48 | ClassDef(AliHBTReader,2)//version 2 - TNamed as parental class |
49 | ||
1b446896 | 50 | }; |
51 | ||
52 | #endif |