]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HBTAN/AliHBTReaderITSv1.h
Back to previus version
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderITSv1.h
CommitLineData
1b446896 1#ifndef ALIHBTREADERITSV1_H
2#define ALIHBTREADERITSV1_H
3
4#include "AliHBTReader.h"
5
6#include <TString.h>
7
64e553ff 8class TObjArray;
9class TFile;
1b446896 10class AliHBTReaderITSv1: public AliHBTReader
11{
12 public:
64e553ff 13 AliHBTReaderITSv1(const Char_t* tracksfilename="itstracks.root",
14 const Char_t* galicefilename="galice.root");
15 AliHBTReaderITSv1(TObjArray* dirs,
16 const Char_t* tracksfilename="itstracks.root",
6440fe71 17 const Char_t* galicefilename="galice.root");
64e553ff 18
19
20 virtual ~AliHBTReaderITSv1();
1b446896 21
22 Int_t Read(AliHBTRun* particles, AliHBTRun *tracks);//reads tracks and particles and puts them in runs
23
24 AliHBTEvent* GetParticleEvent(Int_t);//returns pointer to event with particles
25 AliHBTEvent* GetTrackEvent(Int_t);//returns pointer to event with particles
26 Int_t GetNumberOfPartEvents();//returns number of particle events
27 Int_t GetNumberOfTrackEvents();//returns number of track events
28
29 protected:
64e553ff 30 TString fITSTracksFileName;
31 TString fGAliceFileName;
1b446896 32
33 AliHBTRun* fParticles; //!simulated particles
34 AliHBTRun* fTracks; //!reconstructed tracks (particles)
35
36 Bool_t fIsRead;//flag indicating if the data are already read
64e553ff 37
38 TFile* OpenTrackFile(Int_t);//opens files to be read for given directoru nomber in fDirs Array
39 TFile* OpenGAliceFile(Int_t);
40
1b446896 41 private:
42 public:
64e553ff 43 ClassDef(AliHBTReaderITSv1,1)
1b446896 44};
45
64e553ff 46#endif