]> git.uio.no Git - u/mrichter/AliRoot.git/blob - T0/AliT0RecPoint.h
updated dndeta analysis
[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);}
47     Int_t GetT0Trig() {return fT0trig;}
48     void   SetT0Trig(Bool_t *tr );
49     void PrintTriggerSignals(Int_t trig);
50   private: 
51     Double32_t fTimeAverage;     // Average time
52     Int_t   fTimeOnlineMean; // online mean signal
53     Double32_t fVertexPosition;     // Diffrence time between C and A
54     Double32_t fTimeBestA;   //TOF first particle on the A
55     Double32_t fTimeBestC;    //TOF first particle on the C
56     Float_t fMultC; // multiplicity on the 
57     Float_t fMultA; // multiplicity on the 
58     Double32_t fT0clock; // T0 with reference point in ns
59     Int_t   fT0trig;    // T0 trigger signals
60  
61     Double32_t fTime[24];    // array's TDC
62     Double32_t fADC[24];    // array's amplitude
63     Double32_t fADCLED[24];    // array's LED amplitude
64
65
66     ClassDef(AliT0RecPoint,6)  //Digit (Header) object for set:T0
67 };
68
69 typedef AliT0RecPoint AliSTARTRecPoint; // for backward compatibility
70
71 #endif
72
73
74