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