]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HBTAN/AliHBTReaderTPC.h
Buffer Size can be defined
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderTPC.h
1 #ifndef AliHBTReaderTPC_H
2 #define AliHBTReaderTPC_H
3
4 #include "AliHBTReader.h"
5
6 //Multi file reader for TPC
7 //
8 //This reader reads tracks AliTPCtracks.root
9 //                  particles form gAlice
10 //Piotr.Skowronski@cern.ch
11 //more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
12
13 #include <TString.h>
14 class TFile;
15
16 class AliHBTReaderTPC: public AliHBTReader
17 {
18   public:
19     AliHBTReaderTPC(const Char_t* trackfilename = "AliTPCtracks.root",
20                       const Char_t* clusterfilename = "AliTPCclusters.root",
21           const Char_t* galicefilename = "galice.root");
22
23     AliHBTReaderTPC(TObjArray* dirs,
24                       const Char_t* trackfilename = "AliTPCtracks.root",
25                       const Char_t* clusterfilename = "AliTPCclusters.root",
26           const Char_t* galicefilename = "galice.root");
27
28     virtual ~AliHBTReaderTPC();
29     
30     Int_t Read(AliHBTRun* particles, AliHBTRun *tracks);//reads tracks and particles and puts them in runs
31     
32     AliHBTEvent* GetParticleEvent(Int_t);//returns pointer to event with particles
33     AliHBTEvent* GetTrackEvent(Int_t);//returns pointer to event with particles 
34     Int_t GetNumberOfPartEvents();//returns number of particle events
35     Int_t GetNumberOfTrackEvents();//returns number of track events
36     
37   protected:
38     //in the future this class is will read global tracking
39
40     
41     Int_t OpenFiles(TFile*&,TFile*&,TFile*&,Int_t);//opens files to be read for given event
42     void CloseFiles(TFile*&,TFile*&,TFile*&);//close files
43
44     
45     
46     AliHBTRun* fParticles; //!simulated particles
47     AliHBTRun* fTracks; //!reconstructed tracks (particles)
48     
49
50     TString fTrackFileName;//name of the file with tracks
51     TString fClusterFileName;//name of the file with clusters
52     TString fGAliceFileName;//name of the file with galice.root
53
54
55         
56     Bool_t fIsRead;//!flag indicating if the data are already read
57   private:
58   public:
59     ClassDef(AliHBTReaderTPC,2)
60 };
61
62
63 #endif