]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliRunTag.h
Added possibility to invert the sign of the parametization
[u/mrichter/AliRoot.git] / STEER / AliRunTag.h
CommitLineData
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"
9ee5d033 21#include "AliQA.h"
e16601cf 22
23class AliEventTag;
c5caed45 24//class AliDetectorTag;
f3a97c86 25
26
bec9a2e7 27//___________________________________________________________________________
28class AliRunTag : public TObject {
f3a97c86 29 public:
30 AliRunTag();
31 virtual ~AliRunTag();
27293674 32 AliRunTag(const AliRunTag& qa) ;
33 AliRunTag& operator = (const AliRunTag& tag) ;
bec9a2e7 34 //____________________________________________________//
35 void SetRunId(Int_t Pid) {fAliceRunId = Pid;}
36 void SetMagneticField(Float_t Pmag) {fAliceMagneticField = Pmag;}
850d5792 37 void SetDipoleField(Float_t Pmag) {fAliceDipoleField = Pmag;}
bec9a2e7 38 void SetRunStartTime(Int_t Pt0) {fAliceRunStartTime = Pt0;}
39 void SetRunStopTime(Int_t Pt1) {fAliceRunStopTime = Pt1;}
40 void SetAlirootVersion(TString v) {fAlirootVersion = v;}
41 void SetRootVersion(TString v) {fRootVersion = v;}
42 void SetGeant3Version(TString v) {fGeant3Version = v;}
850d5792 43 void SetLHCPeriod(TString v) {fLHCPeriod = v; }
44 void SetReconstructionPass(TString v) {fRecPass = v; }
45 void SetProductionName(TString v) {fProductionName = v; }
bec9a2e7 46 void SetRunQuality(Int_t Pn) {fAliceRunQuality = Pn;}
47 void SetBeamEnergy(Float_t PE) {fAliceBeamEnergy = PE;}
48 void SetBeamType(TString Ptype) {fAliceBeamType = Ptype;}
49 void SetCalibVersion(Int_t Pn) {fAliceCalibrationVersion = Pn;}
50 void SetDataType(Int_t i) {fAliceDataType = i;}
51 void SetNEvents(Int_t Pn) { fNumEvents = Pn; }
c5caed45 52 void SetLHCTag(Float_t Plumin, TString type);
53 void SetDetectorTag(UInt_t mask);
9ee5d033 54 void SetQA(const AliQA &qa) { fQA=qa; }
55 void SetQAArray(ULong_t * qa, Int_t qalength) ;
27293674 56 void SetEventSpecies(Bool_t * es, Int_t eslength) ;
bec9a2e7 57 void AddEventTag(const AliEventTag &t);
58 void Clear(const char * opt = "");
4c117ffd 59
60 void CopyStandardContent(AliRunTag *oldtag);
f3a97c86 61
bec9a2e7 62 //____________________________________________________//
63 Int_t GetRunId() const {return fAliceRunId;}
64 Float_t GetMagneticField() const {return fAliceMagneticField;}
850d5792 65 Float_t GetDipoleField() const {return fAliceDipoleField;}
bec9a2e7 66 Int_t GetRunStartTime() const {return fAliceRunStartTime;}
67 Int_t GetRunStopTime() const {return fAliceRunStopTime;}
68 const char* GetAlirootVersion() const {return fAlirootVersion.Data();}
69 const char* GetRootVersion() const {return fRootVersion.Data();}
70 const char* GetGeant3Version() const {return fGeant3Version.Data();}
850d5792 71 const char* GetLHCPeriod() const {return fLHCPeriod.Data();}
72 const char* GetReconstructionPass() const {return fRecPass.Data();}
73 const char* GetProductionName() const {return fProductionName.Data();}
bec9a2e7 74 Int_t GetRunQuality() const {return fAliceRunQuality;}
75 Float_t GetBeamEnergy() const {return fAliceBeamEnergy;}
76 const char *GetBeamType() const {return fAliceBeamType.Data();}
77 Int_t GetCalibVersion() const {return fAliceCalibrationVersion;}
78 Int_t GetDataType() const {return fAliceDataType;}
79 Int_t GetNEvents() const {return fNumEvents;}
80 AliLHCTag *GetLHCTag() {return &fLHCTag; }
c5caed45 81 AliDetectorTag *GetDetectorTags() {return &fDetectorTag;}
17a9d008 82 const TClonesArray *GetEventTags() const {return &fEventTag;}
9ee5d033 83 const AliQA *GetQA() const {return &fQA;}
84 ULong_t * GetQAArray() const {return fQAArray;}
27293674 85 Int_t GetQALength() const { return fQALength ; }
86 Bool_t * GetEventSpecies() const {return fEventSpecies;}
87 Int_t GetESLength() const { return fESLength ; }
46af88be 88
bec9a2e7 89 //____________________________________________________//
e16601cf 90 private:
bec9a2e7 91 Int_t fAliceRunId; //the run id
92 Float_t fAliceMagneticField; //value of the magnetic field
850d5792 93 Float_t fAliceDipoleField; //value of the magnetic field in dipole
bec9a2e7 94 Int_t fAliceRunStartTime; //run start date
95 Int_t fAliceRunStopTime; //run stop date
96 TString fAlirootVersion; //aliroot version
97 TString fRootVersion; //root version
98 TString fGeant3Version; //geant3 version
850d5792 99 TString fLHCPeriod; //datataking period
100 TString fRecPass; //Reconstruction pass number
101 TString fProductionName; //production name
bec9a2e7 102 Bool_t fAliceRunQuality; //validation script
103 Float_t fAliceBeamEnergy; //beam energy cm
104 TString fAliceBeamType; //run type (pp, AA, pA)
105 Int_t fAliceCalibrationVersion; //calibration version
106 Int_t fAliceDataType; //0: simulation -- 1: data
107 Int_t fNumEvents; //number of events per file
108 Int_t fNumDetectors; //number of detector configs per file
109 TClonesArray fEventTag; //array with all event tags
46af88be 110 AliDetectorTag fDetectorTag; //array with all the detector tags
bec9a2e7 111 AliLHCTag fLHCTag; //LHC tag object
9ee5d033 112 AliQA fQA; //needed for backward compaibility
27293674 113 Int_t fQALength; // Length of the fQA array
9ee5d033 114 ULong_t * fQAArray ; //[fQALength] QA objects's data
27293674 115 Int_t fESLength; // Length of the Event Specie Length
116 Bool_t * fEventSpecies; //[fESLength] EventSpecies in this run
e16601cf 117
850d5792 118 ClassDef(AliRunTag,7) //(ClassName, ClassVersion)
f3a97c86 119};
bec9a2e7 120//___________________________________________________________________________
f3a97c86 121
122#endif