]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HBTAN/AliHBTReaderITSv1.h
Anti-Splitting Cut implemented
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderITSv1.h
1 #ifndef ALIHBTREADERITSV1_H
2 #define ALIHBTREADERITSV1_H
3 //____________________________________________________________________
4 //////////////////////////////////////////////////////////////////////
5 //                                                                  //
6 //  class AliHBTReaderITSv1                                         //
7 //                                                                  //
8 //  Reader for ITSv1 tracks. Not maintained since v1 is not         //
9 //  supposed to be used                                             //
10 //                                                                  //
11 //////////////////////////////////////////////////////////////////////
12
13
14 #include "AliHBTReader.h"
15
16 #include <TString.h>
17
18 class TObjArray;
19 class TFile;
20 class AliHBTReaderITSv1: public AliHBTReader
21 {
22   public:    
23     AliHBTReaderITSv1(const Char_t* tracksfilename="itstracks.root",
24                       const Char_t* galicefilename="galice.root");
25     AliHBTReaderITSv1(TObjArray* dirs,
26                       const Char_t* tracksfilename="itstracks.root",
27                       const Char_t* galicefilename="galice.root");    
28     
29     
30     virtual ~AliHBTReaderITSv1();
31     
32     Int_t Read(AliHBTRun* particles, AliHBTRun *tracks);//reads tracks and particles and puts them in runs
33     
34     AliHBTEvent* GetParticleEvent(Int_t);//returns pointer to event with particles
35     AliHBTEvent* GetTrackEvent(Int_t);//returns pointer to event with particles
36     Int_t GetNumberOfPartEvents();//returns number of particle events
37     Int_t GetNumberOfTrackEvents();//returns number of track events
38     
39   protected:
40     TString fITSTracksFileName; //name of the file with tracks
41     TString fGAliceFileName;//name of the file containing Run Loader
42     
43     AliHBTRun* fParticles; //!simulated particles
44     AliHBTRun* fTracks; //!reconstructed tracks (particles)
45     
46     Bool_t fIsRead;//flag indicating if the data are already read
47    
48     TFile* OpenTrackFile(Int_t);//opens files to be read for given directoru nomber in fDirs Array
49     TFile* OpenGAliceFile(Int_t);
50     
51   private:
52     ClassDef(AliHBTReaderITSv1,1)
53 };
54
55 #endif