]>
Commit | Line | Data |
---|---|---|
f3a97c86 | 1 | #ifndef ALIRUNTAG_H |
2 | #define ALIRUNTAG_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | //------------------------------------------------------------------------- | |
10 | // Class AliRunTag | |
11 | // This is the class to deal with the tags for the run level | |
12 | // | |
13 | // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch | |
14 | //------------------------------------------------------------------------- | |
15 | ||
17a9d008 | 16 | #include <TObject.h> |
17 | #include <TString.h> | |
18 | #include <TClonesArray.h> | |
f3a97c86 | 19 | #include "AliLHCTag.h" |
c5caed45 | 20 | #include "AliDetectorTag.h" |
e16601cf | 21 | |
22 | class AliEventTag; | |
c5caed45 | 23 | //class AliDetectorTag; |
f3a97c86 | 24 | |
25 | ||
bec9a2e7 | 26 | //___________________________________________________________________________ |
27 | class AliRunTag : public TObject { | |
f3a97c86 | 28 | public: |
29 | AliRunTag(); | |
30 | virtual ~AliRunTag(); | |
31 | ||
bec9a2e7 | 32 | //____________________________________________________// |
33 | void SetRunId(Int_t Pid) {fAliceRunId = Pid;} | |
34 | void SetMagneticField(Float_t Pmag) {fAliceMagneticField = Pmag;} | |
35 | void SetRunStartTime(Int_t Pt0) {fAliceRunStartTime = Pt0;} | |
36 | void SetRunStopTime(Int_t Pt1) {fAliceRunStopTime = Pt1;} | |
37 | void SetAlirootVersion(TString v) {fAlirootVersion = v;} | |
38 | void SetRootVersion(TString v) {fRootVersion = v;} | |
39 | void SetGeant3Version(TString v) {fGeant3Version = v;} | |
40 | void SetRunQuality(Int_t Pn) {fAliceRunQuality = Pn;} | |
41 | void SetBeamEnergy(Float_t PE) {fAliceBeamEnergy = PE;} | |
42 | void SetBeamType(TString Ptype) {fAliceBeamType = Ptype;} | |
43 | void SetCalibVersion(Int_t Pn) {fAliceCalibrationVersion = Pn;} | |
44 | void SetDataType(Int_t i) {fAliceDataType = i;} | |
45 | void SetNEvents(Int_t Pn) { fNumEvents = Pn; } | |
c5caed45 | 46 | void SetLHCTag(Float_t Plumin, TString type); |
47 | void SetDetectorTag(UInt_t mask); | |
bec9a2e7 | 48 | void AddEventTag(const AliEventTag &t); |
49 | void Clear(const char * opt = ""); | |
4c117ffd | 50 | |
51 | void CopyStandardContent(AliRunTag *oldtag); | |
f3a97c86 | 52 | |
bec9a2e7 | 53 | //____________________________________________________// |
54 | Int_t GetRunId() const {return fAliceRunId;} | |
55 | Float_t GetMagneticField() const {return fAliceMagneticField;} | |
56 | Int_t GetRunStartTime() const {return fAliceRunStartTime;} | |
57 | Int_t GetRunStopTime() const {return fAliceRunStopTime;} | |
58 | const char* GetAlirootVersion() const {return fAlirootVersion.Data();} | |
59 | const char* GetRootVersion() const {return fRootVersion.Data();} | |
60 | const char* GetGeant3Version() const {return fGeant3Version.Data();} | |
61 | Int_t GetRunQuality() const {return fAliceRunQuality;} | |
62 | Float_t GetBeamEnergy() const {return fAliceBeamEnergy;} | |
63 | const char *GetBeamType() const {return fAliceBeamType.Data();} | |
64 | Int_t GetCalibVersion() const {return fAliceCalibrationVersion;} | |
65 | Int_t GetDataType() const {return fAliceDataType;} | |
66 | Int_t GetNEvents() const {return fNumEvents;} | |
67 | AliLHCTag *GetLHCTag() {return &fLHCTag; } | |
c5caed45 | 68 | AliDetectorTag *GetDetectorTags() {return &fDetectorTag;} |
17a9d008 | 69 | const TClonesArray *GetEventTags() const {return &fEventTag;} |
f3a97c86 | 70 | |
bec9a2e7 | 71 | //____________________________________________________// |
e16601cf | 72 | private: |
bec9a2e7 | 73 | Int_t fAliceRunId; //the run id |
74 | Float_t fAliceMagneticField; //value of the magnetic field | |
75 | Int_t fAliceRunStartTime; //run start date | |
76 | Int_t fAliceRunStopTime; //run stop date | |
77 | TString fAlirootVersion; //aliroot version | |
78 | TString fRootVersion; //root version | |
79 | TString fGeant3Version; //geant3 version | |
80 | Bool_t fAliceRunQuality; //validation script | |
81 | Float_t fAliceBeamEnergy; //beam energy cm | |
82 | TString fAliceBeamType; //run type (pp, AA, pA) | |
83 | Int_t fAliceCalibrationVersion; //calibration version | |
84 | Int_t fAliceDataType; //0: simulation -- 1: data | |
85 | Int_t fNumEvents; //number of events per file | |
86 | Int_t fNumDetectors; //number of detector configs per file | |
87 | TClonesArray fEventTag; //array with all event tags | |
c5caed45 | 88 | AliDetectorTag fDetectorTag; //array with all the detector tags |
bec9a2e7 | 89 | AliLHCTag fLHCTag; //LHC tag object |
e16601cf | 90 | |
c67bacfc | 91 | ClassDef(AliRunTag,4) //(ClassName, ClassVersion) |
f3a97c86 | 92 | }; |
bec9a2e7 | 93 | //___________________________________________________________________________ |
f3a97c86 | 94 | |
95 | #endif |