AMSDST
myBetaH.h
Go to the documentation of this file.
1 // Authors: M.Duranti - INFN di Perugia
2 #ifndef myBetaH_h
3 #define myBetaH_h
4 
5 #include "myBetaHBase.h"
6 
7 #ifdef _WITHGBATCH_
8 
9 #include "Tofrec02_ihep.h"
10 
11 #endif //#ifdef _WITHGBATCH_
12 
13 class myBetaH: public myBetaHBase {
14  public:
15  //Constructor
16  myBetaH();
17  //Default destructor
18  ~myBetaH();
19 
20  Double_t Beta;
21  Double_t EBetaV;
22  Int_t BetaPattern;
23  Int_t Status;
24  Double_t Chi2T,
25  Chi2C;
26 
27  Short_t SumHit;
28  Short_t UseHit;
29 
31  inline Double_t GetBeta(){return Beta;}
32 
34  inline Int_t GetBetaPattern(){return BetaPattern;}
35 
37  inline Short_t GetUseHit(){ return UseHit;}
38 
39  Short_t _iTrTrack;
40  Short_t _iEcalShower;
41  Short_t _iTrdTrack;
42 
43  Double32_t TofTimeOnLayer[9];
44  Double32_t TofXOnLayer[9];
45  Double32_t TofYOnLayer[9];
46 
48  inline Short_t iTrTrack(){ return _iTrTrack ;}
50  inline Short_t iEcalShower(){ return _iEcalShower;}
52  inline Short_t iTrdTrack(){ return _iTrdTrack ;}
54  inline bool IsGoodBeta() { return ((_iTrTrack>=0)&&(GetUseHit()==4));}
56  inline bool IsTrkTofMatch(){ return _iTrTrack>=0;}
57 
58  virtual void Clear(Option_t* option="");
59  private:
60  virtual void init();
61 
62  public:
63  ClassDef(myBetaH,9);
64 };
65 
66 #ifdef _WITHGBATCH_
67 
68 class myBetaHFiller: public myBetaH
69 {
70  public:
72  myBetaHFiller();
74  ~myBetaHFiller();
75 
76  void Fill(BetaHR* betah);
78  Double_t GetTofCharge(int pattern);
79 
80  BetaHR* betah;
81 
82  virtual void Clear(Option_t* option="");
83  private:
84  virtual void init();
85 
86  public:
87  ClassDef(myBetaHFiller,1);
88 };
89 
90 #endif //#ifdef _WITHGBATCH_
91 
92 #endif