3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 //-------------------------------------------------------------------------
11 // This is the class to deal with the tags for the run level
13 // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
14 //-------------------------------------------------------------------------
18 #include <TClonesArray.h>
19 #include "AliLHCTag.h"
20 #include "AliDetectorTag.h"
23 //class AliDetectorTag;
26 //___________________________________________________________________________
27 class AliRunTag : public TObject {
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; }
46 void SetLHCTag(Float_t Plumin, TString type);
47 void SetDetectorTag(UInt_t mask);
48 void AddEventTag(const AliEventTag &t);
49 void Clear(const char * opt = "");
51 //____________________________________________________//
52 Int_t GetRunId() const {return fAliceRunId;}
53 Float_t GetMagneticField() const {return fAliceMagneticField;}
54 Int_t GetRunStartTime() const {return fAliceRunStartTime;}
55 Int_t GetRunStopTime() const {return fAliceRunStopTime;}
56 const char* GetAlirootVersion() const {return fAlirootVersion.Data();}
57 const char* GetRootVersion() const {return fRootVersion.Data();}
58 const char* GetGeant3Version() const {return fGeant3Version.Data();}
59 Int_t GetRunQuality() const {return fAliceRunQuality;}
60 Float_t GetBeamEnergy() const {return fAliceBeamEnergy;}
61 const char *GetBeamType() const {return fAliceBeamType.Data();}
62 Int_t GetCalibVersion() const {return fAliceCalibrationVersion;}
63 Int_t GetDataType() const {return fAliceDataType;}
64 Int_t GetNEvents() const {return fNumEvents;}
65 AliLHCTag *GetLHCTag() {return &fLHCTag; }
66 AliDetectorTag *GetDetectorTags() {return &fDetectorTag;}
67 const TClonesArray *GetEventTags() const {return &fEventTag;}
69 //____________________________________________________//
71 Int_t fAliceRunId; //the run id
72 Float_t fAliceMagneticField; //value of the magnetic field
73 Int_t fAliceRunStartTime; //run start date
74 Int_t fAliceRunStopTime; //run stop date
75 TString fAlirootVersion; //aliroot version
76 TString fRootVersion; //root version
77 TString fGeant3Version; //geant3 version
78 Bool_t fAliceRunQuality; //validation script
79 Float_t fAliceBeamEnergy; //beam energy cm
80 TString fAliceBeamType; //run type (pp, AA, pA)
81 Int_t fAliceCalibrationVersion; //calibration version
82 Int_t fAliceDataType; //0: simulation -- 1: data
83 Int_t fNumEvents; //number of events per file
84 Int_t fNumDetectors; //number of detector configs per file
85 TClonesArray fEventTag; //array with all event tags
86 AliDetectorTag fDetectorTag; //array with all the detector tags
87 AliLHCTag fLHCTag; //LHC tag object
89 ClassDef(AliRunTag,3) //(ClassName, ClassVersion)
91 //___________________________________________________________________________