Coverity 16571
[u/mrichter/AliRoot.git] / STEER / AliESDTZERO.h
CommitLineData
d5ebf00e 1// -*- mode: C++ -*-
2#ifndef ALIESDTZERO_H
3#define ALIESDTZERO_H
4
5/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
7
8
9//-------------------------------------------------------------------------
10// Class AliESDTZERO
11// This is a class that summarizes the TZERO data for the ESD
12// Origin: Christian Klein-Boesing, CERN, Christian.Klein-Boesing@cern.ch
13//-------------------------------------------------------------------------
14
15
16
17#include <TObject.h>
18
19class AliESDTZERO: public TObject {
20public:
21 AliESDTZERO();
22 AliESDTZERO(const AliESDTZERO& tzero);
23 AliESDTZERO& operator=(const AliESDTZERO& tzero);
732a24fe 24 virtual void Copy(TObject &obj) const;
d5ebf00e 25
adf36b9d 26 Double32_t GetT0zVertex() const {return fT0zVertex;}
27 void SetT0zVertex(Double32_t z) {fT0zVertex=z;}
28 Double32_t GetT0() const {return fT0timeStart;}
694aad0c 29 void SetT0(Double_t timeStart) {fT0timeStart = timeStart;}
adf36b9d 30 Float_t GetT0clock() const {return fT0clock;}
571b0564 31 void SetT0clock(Float_t timeStart) {fT0clock = timeStart;}
adf36b9d 32 Double32_t GetT0TOF(Int_t i) const {return fT0TOF[i];}
33 const Double32_t * GetT0TOF() const {return fT0TOF;}
34 void SetT0TOF(Int_t icase, Float_t time) { fT0TOF[icase] = time;}
35 Int_t GetT0Trig() const {return fT0trig;}
36 void SetT0Trig(Int_t tvdc) {fT0trig = tvdc;}
37 const Double32_t * GetT0time() const {return fT0time;}
38 void SetT0time(Double32_t time[24]) {
39 for (Int_t i=0; i<24; i++) fT0time[i] = time[i];
d5ebf00e 40 }
adf36b9d 41 const Double32_t * GetT0amplitude() const {return fT0amplitude;}
42 void SetT0amplitude(Double32_t amp[24]) {
d5ebf00e 43 for (Int_t i=0; i<24; i++) fT0amplitude[i] = amp[i];
44 }
45
46 void Reset();
47 void Print(const Option_t *opt=0) const;
48
49private:
50
adf36b9d 51 Float_t fT0clock; // backward compatibility
52 Double32_t fT0TOF[3]; // interaction time in ns ( A&C, A, C)
53 Double32_t fT0zVertex; // vertex z position estimated by the T0
54 Double32_t fT0timeStart; // interaction time estimated by the T0
55 Int_t fT0trig; // T0 trigger signals
56 Double32_t fT0time[24]; // best TOF on each T0 PMT
57 Double32_t fT0amplitude[24]; // number of particles(MIPs) on each T0 PMT
d5ebf00e 58
adf36b9d 59 ClassDef(AliESDTZERO,4)
d5ebf00e 60};
61
62
63#endif