]>
Commit | Line | Data |
---|---|---|
df9db588 | 1 | #ifndef AliAODHeader_H |
2 | #define AliAODHeader_H | |
3 | /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //------------------------------------------------------------------------- | |
9 | // AOD event base class | |
10 | // Author: Markus Oldenburg, CERN | |
11 | //------------------------------------------------------------------------- | |
12 | ||
13 | #include <TNamed.h> | |
14 | #include "AliAODVertex.h" | |
15 | ||
16 | class AliAODHeader : public TNamed { | |
17 | ||
18 | public : | |
31fd97b2 | 19 | AliAODHeader(); |
df9db588 | 20 | |
31fd97b2 | 21 | AliAODHeader(Int_t nRun, UShort_t nBunchX, UInt_t nOrbit,Char_t *title=""); |
22 | AliAODHeader(Int_t nRun, | |
23 | UShort_t nBunchX, | |
24 | UInt_t nOrbit, | |
25 | Int_t refMult, | |
26 | Int_t refMultPos, | |
27 | Int_t refMultNeg, | |
28 | Double_t magField, | |
29 | Double_t cent, | |
30 | ULong64_t fTriggerMask, | |
31 | UChar_t fTriggerCluster, | |
32 | UInt_t fEventType, | |
33 | Char_t *title=""); | |
34 | ||
df9db588 | 35 | virtual ~AliAODHeader(); |
36 | AliAODHeader(const AliAODHeader& evt); | |
37 | AliAODHeader& operator=(const AliAODHeader& evt); | |
38 | ||
df9db588 | 39 | Int_t GetRunNumber() const { return fRunNumber; } |
31fd97b2 | 40 | UShort_t GetBunchCrossNumber() const { return fBunchCrossNumber; } |
41 | UInt_t GetOrbitNumber() const { return fOrbitNumber; } | |
df9db588 | 42 | ULong64_t GetTriggerMask() const { return fTriggerMask; } |
43 | UChar_t GetTriggerCluster() const { return fTriggerCluster; } | |
44 | UInt_t GetEventType() const { return fEventType; } | |
45 | Double_t GetMagneticField() const { return fMagneticField; } | |
46 | ||
47 | Double_t GetCentrality() const { return fCentrality; } | |
48 | Int_t GetRefMultiplicity() const { return fRefMult; } | |
49 | Int_t GetRefMultiplicityPos() const { return fRefMultPos; } | |
50 | Int_t GetRefMultiplicityNeg() const { return fRefMultNeg; } | |
51 | ||
df9db588 | 52 | void SetRunNumber(Int_t nRun) { fRunNumber = nRun; } |
31fd97b2 | 53 | void SetBunchCrossNumber(UShort_t nBx) { fBunchCrossNumber = nBx; } |
54 | void SetOrbitNumber(Int_t nOr) { fOrbitNumber = nOr; } | |
df9db588 | 55 | void SetTriggerMask(ULong64_t trigMsk) { fTriggerMask = trigMsk; } |
56 | void SetTriggerCluster(UChar_t trigClus) { fTriggerCluster = trigClus; } | |
57 | void SetEventType(UInt_t evttype) { fEventType = evttype; } | |
58 | void SetMagneticField(Double_t magFld) { fMagneticField = magFld; } | |
59 | ||
60 | void SetCentrality(Double_t cent) { fCentrality = cent; } | |
61 | void SetRefMultiplicity(Int_t refMult) { fRefMult = refMult; } | |
62 | void SetRefMultiplicityPos(Int_t refMultPos) { fRefMultPos = refMultPos; } | |
63 | void SetRefMultiplicityNeg(Int_t refMultNeg) { fRefMultNeg = refMultNeg; } | |
64 | ||
65 | void Print(Option_t* option = "") const; | |
66 | ||
67 | ||
68 | private : | |
69 | ||
70 | Double32_t fMagneticField; // Solenoid Magnetic Field in kG | |
71 | Double32_t fCentrality; // Centrality | |
72 | ULong64_t fTriggerMask; // Trigger Type (mask) | |
73 | UInt_t fEventType; // Type of Event | |
31fd97b2 | 74 | UInt_t fOrbitNumber; // Orbit Number |
75 | UShort_t fBunchCrossNumber; // BunchCrossingNumber | |
df9db588 | 76 | Int_t fRunNumber; // Run Number |
77 | Int_t fRefMult; // reference multiplicity | |
78 | Int_t fRefMultPos; // reference multiplicity of positive particles | |
79 | Int_t fRefMultNeg; // reference multiplicity of negative particles | |
80 | UChar_t fTriggerCluster; // Trigger cluster (mask) | |
81 | ||
82 | ClassDef(AliAODHeader,1); | |
83 | }; | |
84 | ||
85 | #endif |