]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HBTAN/AliHBTReaderITSv1.h
This commit was generated by cvs2svn to compensate for changes in r4472,
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderITSv1.h
1 #ifndef ALIHBTREADERITSV1_H
2 #define ALIHBTREADERITSV1_H
3
4 #include "AliHBTReader.h"
5
6 #include <TString.h>
7
8
9 class AliHBTReaderITSv1: public AliHBTReader
10 {
11   public:    
12     AliHBTReaderITS(const Char_t* goodtracksfilename = "itsgood_tracks");
13     virtual ~AliHBTReaderITS();
14     
15     Int_t Read(AliHBTRun* particles, AliHBTRun *tracks);//reads tracks and particles and puts them in runs
16     
17     AliHBTEvent* GetParticleEvent(Int_t);//returns pointer to event with particles
18     AliHBTEvent* GetTrackEvent(Int_t);//returns pointer to event with particles
19     Int_t GetNumberOfPartEvents();//returns number of particle events
20     Int_t GetNumberOfTrackEvents();//returns number of track events
21     
22   protected:
23     TString fGoodITSTracksFileName;
24     
25     AliHBTRun* fParticles; //!simulated particles
26     AliHBTRun* fTracks; //!reconstructed tracks (particles)
27     
28     Bool_t fIsRead;//flag indicating if the data are already read
29     
30   private:
31   public:
32     ClassDef(AliHBTReaderITS,1)
33 };
34
35 struct GoodTrackITSv1 //good tracks produced by ITSComparison V1
36 {
37   Int_t fEventN; //event number
38   Int_t lab;
39   Int_t code;
40   Float_t px,py,pz;
41   Float_t x,y,z;
42   Float_t pxg,pyg,pzg,ptg;
43   Bool_t flag;
44 };
45
46 class AliGoodTracksITSv1
47  { 
48    //container for good tracks ITS tracking V1
49    //this class is for internal use only
50    friend class AliHBTReaderITSv1;
51    
52    private:
53      AliGoodTracksITSv1(const TString& infilename = TString("itsgood_tracks"));
54      ~AliGoodTracksITSv1();
55    
56      const GoodTrackITSv1& GetTrack(Int_t event, Int_t n) const;
57
58      Int_t  fNevents;  //Number of events
59      Int_t* fGoodInEvent; //Numbers of good track in event
60      struct GoodTrack **fData;
61  };
62