]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AOD/AliAODTZERO.h
Merge branch 'master' into TPCdev
[u/mrichter/AliRoot.git] / STEER / AOD / AliAODTZERO.h
CommitLineData
a1f96974 1#ifndef ALIAODTZERO_H
2#define ALIAODTZERO_H
3
4//-------------------------------------------------------------------------
5// Container class for AOD TZERO data
6// Author: Filip Krizek
c78a7768 7// filip.krizek@cern.ch 23/02/2012
a1f96974 8//-------------------------------------------------------------------------
9
10#include <TObject.h>
11
12class AliAODTZERO : public TObject
13{
14public:
15 AliAODTZERO();
16 AliAODTZERO(const AliAODTZERO& source);
17 AliAODTZERO &operator=(const AliAODTZERO& source);
18
19 virtual ~AliAODTZERO() {};
20
21 // Getters
22 //1st
23 Double32_t GetT0TOF(Int_t i) const {return fT0TOF[i];}
24 const Double32_t * GetT0TOF() const {return fT0TOF;}
25 //best
26 Double32_t GetT0TOFbest(Int_t i) const {return fT0TOFbest[i];}
27 const Double32_t * GetT0TOFbest() const {return fT0TOFbest;}
28
29 Bool_t GetBackgroundFlag() const {return fBackground;}
30 Bool_t GetPileupFlag() const {return fPileup;}
31 Bool_t GetSatellite() const {return fSattelite;}
32
c78a7768 33 Float_t GetT0VertexRaw() const {return fT0VertexRaw;}
5bb5611e 34 Double32_t GetT0zVertex() const {return fT0zVertex;}
dd3e4637 35
36 Float_t GetAmp(Int_t pmt) const {return fT0Amp[pmt];}
c78a7768 37
a1f96974 38 //Setters
39 void SetT0TOF(Int_t icase, Double32_t time) { fT0TOF[icase] = time;}
40 void SetT0TOFbest(Int_t icase, Double32_t time) { fT0TOFbest[icase] = time;}
41
42 void SetBackgroundFlag(Bool_t back = false) {fBackground = back;}
43 void SetPileupFlag(Bool_t back = false) {fPileup = back;}
44 void SetSatelliteFlag(Bool_t sat = false) { fSattelite = sat;}
a1f96974 45
c78a7768 46 void SetT0VertexRaw(Float_t vtx) { fT0VertexRaw = vtx;}
5bb5611e 47 void SetT0zVertex(Double32_t z) {fT0zVertex = z;}
dd3e4637 48 void SetAmp(Int_t pmt, Float_t amp) {fT0Amp[pmt]=amp;}
c78a7768 49
a1f96974 50
51protected:
52 Double32_t fT0TOF[3]; // interaction time in ps with 1st time( A&C, A, C)
53 Bool_t fPileup; // pile-up flag
54 Bool_t fSattelite; // sattelite flag
55 Bool_t fBackground; // sattelite flag
56 Double32_t fT0TOFbest[3];// interaction time in ps ( A&C, A, C) with best time
c78a7768 57 Float_t fT0VertexRaw; // raw T0 vertex without any cuts
5bb5611e 58 Double32_t fT0zVertex; // reconstructed T0 vertex
dd3e4637 59 Float_t fT0Amp[26]; //amplitude on PMTs and MPD
a1f96974 60
dd3e4637 61 ClassDef(AliAODTZERO,4)
a1f96974 62};
63
64#endif