]> git.uio.no Git - u/mrichter/AliRoot.git/blame - T0/AliT0RecPoint.h
T0calib lib added
[u/mrichter/AliRoot.git] / T0 / AliT0RecPoint.h
CommitLineData
dc7ca31d 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//___________________________________________
11class AliT0RecPoint: public TObject {
12////////////////////////////////////////////////////////////////////////
13 public:
14 AliT0RecPoint();
4fe1424e 15 AliT0RecPoint(const AliT0RecPoint &o);
e5835843 16 AliT0RecPoint& operator= (const AliT0RecPoint &) { return *this;}
dc7ca31d 17 virtual ~AliT0RecPoint() {}
4fe1424e 18
adf36b9d 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;}
e5835843 24 Double32_t Get1stTimeA() const {return fTime1stA ;}
25 Double32_t Get1stTimeC() const {return fTime1stC ;}
adf36b9d 26 Float_t GetMultA() const {return fMultA;}
27 Double32_t GetVertex() const {return fVertexPosition;}
dc7ca31d 28
29
adf36b9d 30 void SetMeanTime(Double32_t time) {fTimeAverage=time;}
446d6ec4 31 void SetOnlineMean(Int_t time) {fTimeOnlineMean=time;}
adf36b9d 32 void SetTimeBestA( Double32_t time) {fTimeBestA = time;}
33 void SetTimeBestC( Double32_t time) {fTimeBestC = time;}
e5835843 34 void SetTime1stA( Double32_t time) {fTime1stA = time;}
35 void SetTime1stC( Double32_t time) {fTime1stC = time;}
adf36b9d 36 void SetVertex( Double32_t vertex) {fVertexPosition= vertex;}
37 void SetMultC(Float_t mult) {fMultC = mult;}
38 void SetMultA(Float_t mult) {fMultA = mult;}
39
40 void SetTime (Int_t ipmt, Double32_t time) { fTime[ipmt] = time;}
41 Double32_t GetTime (Int_t ipmt)const { return fTime[ipmt];}
42 void SetAmp (Int_t ipmt, Double32_t adc) { fADC[ipmt] = adc;}
43 Double32_t GetAmp (Int_t ipmt) const{ return fADC[ipmt];}
44 void SetAmpLED (Int_t ipmt, Double32_t adc) { fADCLED[ipmt] = adc;}
45 Double32_t AmpLED (Int_t ipmt) const{ return fADCLED[ipmt];}
776de217 46
adf36b9d 47 void SetT0clock (Double32_t time) { fT0clock = time;}
48 Double32_t GetT0clock () const{ return fT0clock;}
dc7ca31d 49
b0e13b29 50 Bool_t GetT0Trig(Int_t i) {return (fT0trig&(1<<i)) != 0;}
adf36b9d 51 Int_t GetT0Trig() {return fT0trig;}
52 void SetT0Trig(Bool_t *tr );
53 void PrintTriggerSignals(Int_t trig);
b0e13b29 54
55 Float_t GetTimeFull(Int_t ch, Int_t hit) {return fTimeFull[ch][hit];}
56 Float_t GetOrA(Int_t hit) {return fOrA[hit];}
57 Float_t GetOrC(Int_t hit) {return fOrC[hit];}
58 Float_t GetTVDC(Int_t hit) {return fTVDC[hit];}
59
60 void SetTimeFull(Int_t ch, Int_t hit, Float_t time) {fTimeFull[ch][hit] = time;}
61 void SetOrA (Int_t hit, Float_t time) { fOrA[hit] = time ;}
62 void SetOrC (Int_t hit, Float_t time) { fOrC[hit] = time;}
63 void SetTVDC(Int_t hit, Float_t time) { fTVDC[hit] = time;}
64
dc7ca31d 65 private:
e5835843 66 Double32_t fTimeAverage; // Average time with best particles
adf36b9d 67 Int_t fTimeOnlineMean; // online mean signal
68 Double32_t fVertexPosition; // Diffrence time between C and A
69 Double32_t fTimeBestA; //TOF first particle on the A
70 Double32_t fTimeBestC; //TOF first particle on the C
71 Float_t fMultC; // multiplicity on the
72 Float_t fMultA; // multiplicity on the
e5835843 73 Double32_t fT0clock; // T0 with best particles
adf36b9d 74 Int_t fT0trig; // T0 trigger signals
dc7ca31d 75
adf36b9d 76 Double32_t fTime[24]; // array's TDC
77 Double32_t fADC[24]; // array's amplitude
78 Double32_t fADCLED[24]; // array's LED amplitude
dc7ca31d 79
b0e13b29 80
81 Float_t fTimeFull[24][5]; // array's TDC no-correction; centred around 0
82 Float_t fOrA[5]; //hardware OrA centred around 0
83 Float_t fOrC[5]; //hardware OrC centred around 0
84 Float_t fTVDC[5]; //hardware TVDC centred around 0
85 Bool_t fPileup;
86 Bool_t fSattelite;
e5835843 87 Double32_t fTime1stA; //TOF first particle on the A
88 Double32_t fTime1stC; //TOF first particle on the C
dc7ca31d 89
e5835843 90 ClassDef(AliT0RecPoint,8) // RecPoints (Header) object for set:T0
dc7ca31d 91};
92
93typedef AliT0RecPoint AliSTARTRecPoint; // for backward compatibility
94
95#endif
96
97
98