Reader for Kine Tree. Reads particles from galice.root.
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderKineTree.h
1 #ifndef ALIHBTREADERKINETREE_H
2 #define ALIHBTREADERKINETREE_H
3
4 #include "AliHBTReader.h"
5 #include <TString.h>
6
7 class TFile;
8 class AliStack;
9
10 class AliHBTReaderKineTree: public AliHBTReader
11  {
12    public:
13     AliHBTReaderKineTree();
14     
15     AliHBTReaderKineTree(TString&);
16     AliHBTReaderKineTree(TObjArray*,const Char_t *filename="galice.root");
17
18     virtual ~AliHBTReaderKineTree(){}
19     
20     Int_t        Read(AliHBTRun* particles, AliHBTRun *tracks);//reads tracks and particles and puts them in runs
21
22     AliHBTEvent* GetParticleEvent(Int_t);//returns pointer to event with particles
23     AliHBTEvent* GetTrackEvent(Int_t){return 0x0;}//returns pointer to event with particles
24     Int_t        GetNumberOfPartEvents();//returns number of particle events
25     Int_t        GetNumberOfTrackEvents(){return 0;}//returns number of track events
26
27     
28    protected:
29     TString      fFileName;
30     AliHBTRun* fParticles; //!simulated particles
31
32     TFile*       OpenFile(Int_t);
33     AliStack*    GetStack(Int_t,TFile*);
34
35     Bool_t fIsRead;//!flag indicating if the data are already read
36    private:
37    
38    public:
39      ClassDef(AliHBTReaderKineTree,1)
40  };
41
42 #endif