]>
Commit | Line | Data |
---|---|---|
1b446896 | 1 | #ifndef ALIHBTREADER_H |
2 | #define ALIHBTREADER_H | |
3 | ||
4 | #include <TObject.h> | |
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 | |
17 | class AliHBTReader: public TObject | |
18 | ||
19 | { | |
20 | public: | |
21 | AliHBTReader(); | |
0fdcc83d | 22 | AliHBTReader(TObjArray*); |
1b446896 | 23 | virtual ~AliHBTReader(); |
24 | //in the future this class is will read global tracking | |
25 | virtual Int_t Read(AliHBTRun* particles, AliHBTRun *tracks) = 0; | |
26 | ||
27 | virtual AliHBTEvent* GetParticleEvent(Int_t) = 0; | |
28 | virtual AliHBTEvent* GetTrackEvent(Int_t) = 0; | |
29 | virtual Int_t GetNumberOfPartEvents() = 0; | |
30 | virtual Int_t GetNumberOfTrackEvents() = 0; | |
31 | ||
1b446896 | 32 | void AddParticleCut(AliHBTParticleCut* cut); |
4e7d5d5f | 33 | |
34 | void SetDirs(TObjArray* dirs){fDirs = dirs;} //sets array directories names | |
0fdcc83d | 35 | |
1b446896 | 36 | protected: |
37 | ||
0fdcc83d | 38 | TObjArray *fCuts;//array with particle cuts |
39 | TObjArray *fDirs;//arry with directories to read data from | |
1b446896 | 40 | |
41 | Bool_t Pass(AliHBTParticle*); | |
42 | Bool_t Pass(Int_t pid); | |
0fdcc83d | 43 | |
44 | TString& GetDirName(Int_t); | |
1b446896 | 45 | |
46 | private: | |
47 | ||
48 | public: | |
49 | ClassDef(AliHBTReader,1) | |
50 | }; | |
51 | ||
52 | #endif |