1 #ifndef AliHBTReaderTPC_H
2 #define AliHBTReaderTPC_H
4 #include "AliHBTReader.h"
6 //Multi file reader for TPC
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
16 class AliHBTReaderTPC: public AliHBTReader
19 AliHBTReaderTPC(const Char_t* trackfilename = "AliTPCtracks.root",
20 const Char_t* clusterfilename = "AliTPCclusters.root",
21 const Char_t* galicefilename = "galice.root");
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");
28 virtual ~AliHBTReaderTPC();
30 Int_t Read(AliHBTRun* particles, AliHBTRun *tracks);//reads tracks and particles and puts them in runs
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
38 //in the future this class is will read global tracking
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
46 AliHBTRun* fParticles; //!simulated particles
47 AliHBTRun* fTracks; //!reconstructed tracks (particles)
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
56 Bool_t fIsRead;//!flag indicating if the data are already read
59 ClassDef(AliHBTReaderTPC,2)