]> git.uio.no Git - u/mrichter/AliRoot.git/blob - T0/AliT0RecPoint.h
Using both CPHI7-I and CPHI7-B in LHC11d and as default
[u/mrichter/AliRoot.git] / T0 / AliT0RecPoint.h
1 #ifndef ALIT0RECPOINT_H
2 #define ALIT0RECPOINT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7 #include <TObject.h>
8
9
10 //___________________________________________
11 class AliT0RecPoint: public TObject  {
12 ////////////////////////////////////////////////////////////////////////
13  public:
14     AliT0RecPoint();
15     AliT0RecPoint(const AliT0RecPoint &o);
16     AliT0RecPoint& operator= (const AliT0RecPoint &)  { return *this;}
17     virtual ~AliT0RecPoint() {}
18
19     Double32_t  GetMeanTime()   const {return fTimeAverage;}
20     Int_t  GetOnlineMean() const {return fTimeOnlineMean;}
21     Double32_t  GetBestTimeA()  const {return fTimeBestA ;}
22     Double32_t  GetBestTimeC()  const {return fTimeBestC ;}
23     Float_t GetMultC()       const {return fMultC;}
24     Float_t GetMultA()       const {return fMultA;}
25     Double32_t  GetVertex()   const {return fVertexPosition;}
26
27
28     void SetMeanTime(Double32_t time) {fTimeAverage=time;}
29     void SetOnlineMean(Int_t time) {fTimeOnlineMean=time;}
30     void SetTimeBestA( Double32_t time) {fTimeBestA = time;}
31     void SetTimeBestC( Double32_t time) {fTimeBestC = time;}
32     void SetVertex( Double32_t vertex) {fVertexPosition= vertex;}
33     void SetMultC(Float_t mult) {fMultC = mult;}
34     void SetMultA(Float_t mult) {fMultA = mult;}
35
36     void    SetTime (Int_t ipmt, Double32_t time) { fTime[ipmt] = time;}
37     Double32_t GetTime (Int_t ipmt)const { return fTime[ipmt];}
38     void    SetAmp (Int_t ipmt, Double32_t adc) { fADC[ipmt] = adc;}
39     Double32_t GetAmp (Int_t ipmt) const{ return fADC[ipmt];}
40     void    SetAmpLED (Int_t ipmt, Double32_t adc) { fADCLED[ipmt] = adc;}
41     Double32_t AmpLED (Int_t ipmt) const{ return fADCLED[ipmt];}
42     
43     void    SetT0clock (Double32_t time) { fT0clock = time;}
44     Double32_t GetT0clock () const{ return fT0clock;}
45
46     Bool_t GetT0Trig(Int_t i) {return (fT0trig&(1<<i)) != 0;}
47     Int_t GetT0Trig() {return fT0trig;}
48     void   SetT0Trig(Bool_t *tr );
49     void PrintTriggerSignals(Int_t trig);
50
51     Float_t GetTimeFull(Int_t ch, Int_t hit) {return fTimeFull[ch][hit];}
52     Float_t GetOrA(Int_t hit) {return fOrA[hit];}
53     Float_t GetOrC(Int_t hit) {return fOrC[hit];}
54     Float_t GetTVDC(Int_t hit) {return fTVDC[hit];}
55
56     void SetTimeFull(Int_t ch, Int_t hit, Float_t time) {fTimeFull[ch][hit] = time;}
57     void SetOrA (Int_t hit, Float_t time) { fOrA[hit] = time ;}
58     void SetOrC (Int_t hit, Float_t time) { fOrC[hit] = time;}
59     void SetTVDC(Int_t hit, Float_t time) { fTVDC[hit] = time;}
60
61   private: 
62     Double32_t fTimeAverage;     // Average time
63     Int_t   fTimeOnlineMean; // online mean signal
64     Double32_t fVertexPosition;     // Diffrence time between C and A
65     Double32_t fTimeBestA;   //TOF first particle on the A
66     Double32_t fTimeBestC;    //TOF first particle on the C
67     Float_t fMultC; // multiplicity on the 
68     Float_t fMultA; // multiplicity on the 
69     Double32_t fT0clock; // T0 with reference point in ns
70     Int_t   fT0trig;    // T0 trigger signals
71  
72     Double32_t fTime[24];    // array's TDC
73     Double32_t fADC[24];    // array's amplitude
74     Double32_t fADCLED[24];    // array's LED amplitude
75
76  
77     Float_t fTimeFull[24][5];    // array's TDC no-correction; centred around 0
78     Float_t fOrA[5];  //hardware OrA centred around 0
79     Float_t fOrC[5];  //hardware OrC centred around 0
80     Float_t fTVDC[5]; //hardware TVDC centred around 0
81     Bool_t fPileup;
82     Bool_t fSattelite;
83
84     ClassDef(AliT0RecPoint,7)  // RecPoints (Header) object for set:T0
85 };
86
87 typedef AliT0RecPoint AliSTARTRecPoint; // for backward compatibility
88
89 #endif
90
91
92