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