1 #ifndef AliTRDtestBeam_h
2 #define AliTRDtestBeam_h
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 The class to read the test beam 2007 data
16 class AliTRDrawStreamV2;
17 class AliTRDRawStreamTB;
20 class AliTRDtestBeam: public TObject {
23 AliTRDtestBeam(); // ctor
24 AliTRDtestBeam(const char *filename); // constructor
25 //AliTRDtestBeam(const AliTRDtestBeam &tb);
26 //AliTRDtestBeam& operator = (const AliTRDtestBeam& tb) {return *this}
27 virtual ~AliTRDtestBeam() {;} // dtor
31 AliTRDRawStreamTB *GetTRDrawStream(); // needs RawStreamTB
34 Short_t GetNSi1() {return fNSi1;}
35 Short_t GetNSi2() {return fNSi2;}
37 Int_t GetSi1Address(Int_t i) {return (i<fNSi1)? fSi1Address[i] : -1;};
38 Int_t GetSi2Address(Int_t i) {return (i<fNSi2)? fSi2Address[i] : -1;};
40 Int_t GetSi1Charge(Int_t i) {return (i<fNSi1)? fSi1Charge[i] : -1;};
41 Int_t GetSi2Charge(Int_t i) {return (i<fNSi2)? fSi1Charge[i] : -1;};
43 Double_t GetX(Int_t n) {return (n<2)? fX[n] : -1;}
44 Double_t GetY(Int_t n) {return (n<2)? fY[n] : -1;}
45 Double_t GetQx(Int_t n) {return (n<2)? fQx[n] : -1;}
46 Double_t GetQy(Int_t n) {return (n<2)? fQy[n] : -1;}
49 Double_t GetCher() {return fCher;}
50 Double_t GetPb() {return fPb;}
54 ifstream *fDataStream;
75 Int_t fSi1Address[MAX_SI];
76 Int_t fSi2Address[MAX_SI];
78 Int_t fSi1Charge[MAX_SI];
79 Int_t fSi2Charge[MAX_SI];
81 // reconstructed Silicon data
95 Int_t Int(Int_t i, Char_t *start);
99 static const Long_t file_head_size; //= 544; // ?
100 static const Long_t event_head_size; // = 68; //?
101 static const Long_t ldc_head_size; // = 68; //?
102 static const Long_t equip_head_size; // = 28; //
103 static const Int_t vme_in; //=1; //VME event in
104 static const Int_t sim_in; //=1; //Si-strips in
109 static const Int_t pos_run; // = 20; //run nr. (in file and event header)
110 static const Int_t pos_length; // = 0; //event/equip. length
111 static const Int_t pos_eqid; // = 8; //equipment id.
112 static const Int_t pos_sioff; // = 12; //Si data size offset (3 extra words!!!)
114 ClassDef(AliTRDtestBeam,1) // description
117 #endif // AliTRDQADatamaker_H