AliTPCdEdxInfo is propagated to the AOD
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliVEvent.h
CommitLineData
6bc03c45 1// -*- mode: C++ -*-
2#ifndef ALIVEVENT_H
3#define ALIVEVENT_H
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7
8/* $Id$ */
9
10//-------------------------------------------------------------------------
11// Class AliVEvent
12//
13// Origin: Markus Oldenburg, CERN, Markus.Oldenburg@cern.ch
14//-------------------------------------------------------------------------
15
16#include <TObject.h>
17#include <TTree.h>
c8fe2783 18#include <TGeoMatrix.h>
6bc03c45 19#include "AliVHeader.h"
20#include "AliVParticle.h"
5303c167 21#include "AliVVertex.h"
c8fe2783 22#include "AliVCluster.h"
23#include "AliVCaloCells.h"
24#include "TRefArray.h"
befa9db4 25class AliCentrality;
ce7adfe9 26class AliEventplane;
ae2bccf1 27class AliVVZERO;
16d867eb 28class AliVZDC;
820b4d9e 29class AliVMFT; // AU
6bc03c45 30
31class AliVEvent : public TObject {
32
33public:
0c6c629b 34 enum EOfflineTriggerTypes {
1209509c 35 kMB = BIT(0), // Minimum bias trigger, i.e. interaction trigger, offline SPD or V0 selection
28cbc692 36 kINT7 = BIT(1), // V0AND trigger, offline V0 selection
0c6c629b 37 kMUON = BIT(2), // Muon trigger, offline SPD or V0 selection
38 kHighMult = BIT(3), // High-multiplicity trigger (threshold defined online), offline SPD or V0 selection
6e98539d 39 kEMC1 = BIT(4), // EMCAL trigger
fcfb3d3a 40 kCINT5 = BIT(5), // Minimum bias trigger without SPD. i.e. interaction trigger, offline V0 selection
41 kCMUS5 = BIT(6), // Muon trigger, offline V0 selection
889c27e3 42 kMUSPB = BIT(6), // idem for PbPb
28cbc692 43 kMUSH7 = BIT(7), // Muon trigger: high pt, single muon, offline V0 selection, CINT7 suite
889c27e3 44 kMUSHPB = BIT(7), // idem for PbPb
28cbc692 45 kMUL7 = BIT(8), // Muon trigger: like sign dimuon, offline V0 selection, CINT7 suite
889c27e3 46 kMuonLikePB = BIT(8), // idem for PbPb
28cbc692 47 kMUU7 = BIT(9), // Muon trigger, unlike sign dimuon, offline V0 selection, CINT7 suite
889c27e3 48 kMuonUnlikePB = BIT(9), // idem for PbPb
28cbc692 49 kEMC7 = BIT(10), // EMCAL trigger, CINT7 suite
baf9cdf8 50 kMUS7 = BIT(11), // Muon trigger: low pt, single muon, offline V0 selection, CINT7 suite
a5770144 51 kPHI1 = BIT(12), // PHOS trigger, CINT1 suite
52 kPHI7 = BIT(13), // PHOS trigger, CINT7 suite
f4e3ff14 53 kPHOSPb = BIT(13), // idem for PbPb
889c27e3 54 kEMCEJE = BIT(14), // EMCAL jet patch trigger
55 kEMCEGA = BIT(15), // EMCAL gamma trigger
56 kCentral = BIT(16), // PbPb central collision trigger
57 kSemiCentral = BIT(17), // PbPb semicentral collision trigger
7a4eb25e 58 kDG5 = BIT(18), // Double gap diffractive
b0801932 59 kZED = BIT(19), // ZDC electromagnetic dissociation
ec078225 60 kUserDefined = BIT(27), // Set when custom trigger classes are set in AliPhysicsSelection, offline SPD or V0 selection
889c27e3 61 // Bits 28 and above are reserved for FLAGS
6340be16 62 kFastOnly = BIT(30), // The fast cluster fired. This bit is set in to addition another trigger bit, e.g. kMB
baf9cdf8 63 kAny = 0xffffffff, // to accept any trigger
1173a0c9 64 kAnyINT = kMB | kINT7 | kCINT5 // to accept any interaction (aka minimum bias) trigger
0c6c629b 65 };
6bc03c45 66
67 AliVEvent() { }
68 virtual ~AliVEvent() { }
69 AliVEvent(const AliVEvent& vEvnt);
70 AliVEvent& operator=(const AliVEvent& vEvnt);
71
72 // Services
73 virtual void AddObject(TObject* obj) = 0;
2811495d 74 virtual TObject* FindListObject(const char *name) const = 0;
6bc03c45 75 virtual TList* GetList() const = 0;
76
77 virtual void CreateStdContent() = 0;
78 virtual void GetStdContent() = 0;
79
1d0dd492 80 virtual void ReadFromTree(TTree *tree, Option_t* opt) = 0;
f12d42ce 81 virtual void WriteToTree(TTree* tree) const = 0;
6bc03c45 82
ec8aded8 83 virtual void Reset() = 0;
6bc03c45 84 //virtual void ResetStdContent() = 0;
85 virtual void SetStdNames() = 0;
86
87 virtual void Print(Option_t *option="") const = 0;
88
89 // Header
90 virtual AliVHeader* GetHeader() const = 0;
91
92 // Delegated methods for fESDRun or AODHeader
93
94 virtual void SetRunNumber(Int_t n) = 0;
95 virtual void SetPeriodNumber(UInt_t n) = 0;
96 virtual void SetMagneticField(Double_t mf) = 0;
97
98 virtual Int_t GetRunNumber() const = 0;
99 virtual UInt_t GetPeriodNumber() const = 0;
100 virtual Double_t GetMagneticField() const = 0;
101
5303c167 102 virtual Double_t GetDiamondX() const {return -999.;}
103 virtual Double_t GetDiamondY() const {return -999.;}
104 virtual void GetDiamondCovXY(Float_t cov[3]) const
105 {cov[0]=-999.; return;}
106
6bc03c45 107 // Delegated methods for fHeader
108 virtual void SetOrbitNumber(UInt_t n) = 0;
109 virtual void SetBunchCrossNumber(UShort_t n) = 0;
110 virtual void SetEventType(UInt_t eventType)= 0;
111 virtual void SetTriggerMask(ULong64_t n) = 0;
112 virtual void SetTriggerCluster(UChar_t n) = 0;
113
114 virtual UInt_t GetOrbitNumber() const = 0;
115 virtual UShort_t GetBunchCrossNumber() const = 0;
116 virtual UInt_t GetEventType() const = 0;
117 virtual ULong64_t GetTriggerMask() const = 0;
118 virtual UChar_t GetTriggerCluster() const = 0;
119
120 virtual Double_t GetZDCN1Energy() const = 0;
121 virtual Double_t GetZDCP1Energy() const = 0;
122 virtual Double_t GetZDCN2Energy() const = 0;
123 virtual Double_t GetZDCP2Energy() const = 0;
a85132e7 124 virtual Double_t GetZDCEMEnergy(Int_t i) const = 0;
6bc03c45 125
126 // Tracks
127 virtual AliVParticle *GetTrack(Int_t i) const = 0;
128 //virtual Int_t AddTrack(const AliVParticle *t) = 0;
129 virtual Int_t GetNumberOfTracks() const = 0;
c1b93f02 130 virtual Int_t GetNumberOfV0s() const = 0;
bc0379e5 131 virtual Int_t GetNumberOfCascades() const = 0;
6bc03c45 132
c8fe2783 133 // Calorimeter Clusters/Cells
134 virtual AliVCluster *GetCaloCluster(Int_t) const {return 0;}
135 virtual Int_t GetNumberOfCaloClusters() const {return 0;}
136 virtual Int_t GetEMCALClusters(TRefArray *) const {return 0;}
137 virtual Int_t GetPHOSClusters (TRefArray *) const {return 0;}
138 virtual AliVCaloCells *GetEMCALCells() const {return 0;}
139 virtual AliVCaloCells *GetPHOSCells() const {return 0;}
140 const TGeoHMatrix* GetPHOSMatrix(Int_t /*i*/) const {return NULL;}
141 const TGeoHMatrix* GetEMCALMatrix(Int_t /*i*/) const {return NULL;}
142
143
5303c167 144 // Primary vertex
145 virtual const AliVVertex *GetPrimaryVertex() const {return 0x0;}
a98c78e5 146 virtual Bool_t IsPileupFromSPD(Int_t /*minContributors*/,
147 Double_t /*minZdist*/,
148 Double_t /*nSigmaZdist*/,
149 Double_t /*nSigmaDiamXY*/,
150 Double_t /*nSigmaDiamZ*/)
151 const{
152 return kFALSE;
153 }
b46ff4b0 154
155 virtual Bool_t IsPileupFromSPDInMultBins() const {
156 return kFALSE;
157 }
befa9db4 158 virtual AliCentrality* GetCentrality() = 0;
ce7adfe9 159 virtual AliEventplane* GetEventplane() = 0;
befa9db4 160 virtual Int_t EventIndex(Int_t itrack) const = 0;
161 virtual Int_t EventIndexForCaloCluster(Int_t iclu) const = 0;
162 virtual Int_t EventIndexForPHOSCell(Int_t icell) const = 0;
163 virtual Int_t EventIndexForEMCALCell(Int_t icell) const = 0;
6bc03c45 164
16d867eb 165 virtual AliVVZERO *GetVZEROData() const = 0;
5e14e698 166 virtual const Float_t* GetVZEROEqFactors() const {return NULL;}
167 virtual Float_t GetVZEROEqMultiplicity(Int_t /* i */) const {return -1;}
16d867eb 168 virtual AliVZDC *GetZDCData() const = 0;
ae2bccf1 169
5e14e698 170 ClassDef(AliVEvent,2) // base class for AliEvent data
6bc03c45 171};
172#endif
173