1 #ifndef ALIHBTREADERINTERNAL_H
2 #define ALIHBTREADERINTERNAL_H
4 #include "AliHBTReader.h"
6 //Multi file reader for Internal Data Format
8 //This reader reads data created by
10 //Piotr.Skowronski@cern.ch
11 //more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
17 class AliHBTReaderInternal: public AliHBTReader
20 AliHBTReaderInternal();
21 AliHBTReaderInternal(const char *filename);
22 AliHBTReaderInternal(TObjArray* dirs, const char *filename);
23 virtual ~AliHBTReaderInternal();
25 Int_t Read(AliHBTRun* particles, AliHBTRun *tracks);//reads tracks and particles and puts them in runs
26 static Int_t Write(AliHBTReader* reader,const char* outfile = "data.root");//reads tracks from runs and writes them to file
28 AliHBTEvent* GetParticleEvent(Int_t);//returns pointer to event with particles
29 AliHBTEvent* GetTrackEvent(Int_t);//returns pointer to event with particles
30 Int_t GetNumberOfPartEvents();//returns number of particle events
31 Int_t GetNumberOfTrackEvents();//returns number of track events
34 AliHBTRun* fParticles; //!simulated particles
35 AliHBTRun* fTracks; //!reconstructed tracks (particles)
36 Bool_t fIsRead;//!flag indicating if the data are already read
37 TString fFileName;//name of the file with tracks
39 Int_t OpenFile(TFile*& aFile,Int_t event);//opens file to be read for given event
42 ClassDef(AliHBTReaderInternal,1)