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