]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliRunTag.h
Obsolete.
[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"
46af88be 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();
32
bec9a2e7 33 //____________________________________________________//
34 void SetRunId(Int_t Pid) {fAliceRunId = Pid;}
35 void SetMagneticField(Float_t Pmag) {fAliceMagneticField = Pmag;}
36 void SetRunStartTime(Int_t Pt0) {fAliceRunStartTime = Pt0;}
37 void SetRunStopTime(Int_t Pt1) {fAliceRunStopTime = Pt1;}
38 void SetAlirootVersion(TString v) {fAlirootVersion = v;}
39 void SetRootVersion(TString v) {fRootVersion = v;}
40 void SetGeant3Version(TString v) {fGeant3Version = v;}
41 void SetRunQuality(Int_t Pn) {fAliceRunQuality = Pn;}
42 void SetBeamEnergy(Float_t PE) {fAliceBeamEnergy = PE;}
43 void SetBeamType(TString Ptype) {fAliceBeamType = Ptype;}
44 void SetCalibVersion(Int_t Pn) {fAliceCalibrationVersion = Pn;}
45 void SetDataType(Int_t i) {fAliceDataType = i;}
46 void SetNEvents(Int_t Pn) { fNumEvents = Pn; }
c5caed45 47 void SetLHCTag(Float_t Plumin, TString type);
48 void SetDetectorTag(UInt_t mask);
46af88be 49 void SetQA(const AliQA &qa) { fQA=qa; }
bec9a2e7 50 void AddEventTag(const AliEventTag &t);
51 void Clear(const char * opt = "");
4c117ffd 52
53 void CopyStandardContent(AliRunTag *oldtag);
f3a97c86 54
bec9a2e7 55 //____________________________________________________//
56 Int_t GetRunId() const {return fAliceRunId;}
57 Float_t GetMagneticField() const {return fAliceMagneticField;}
58 Int_t GetRunStartTime() const {return fAliceRunStartTime;}
59 Int_t GetRunStopTime() const {return fAliceRunStopTime;}
60 const char* GetAlirootVersion() const {return fAlirootVersion.Data();}
61 const char* GetRootVersion() const {return fRootVersion.Data();}
62 const char* GetGeant3Version() const {return fGeant3Version.Data();}
63 Int_t GetRunQuality() const {return fAliceRunQuality;}
64 Float_t GetBeamEnergy() const {return fAliceBeamEnergy;}
65 const char *GetBeamType() const {return fAliceBeamType.Data();}
66 Int_t GetCalibVersion() const {return fAliceCalibrationVersion;}
67 Int_t GetDataType() const {return fAliceDataType;}
68 Int_t GetNEvents() const {return fNumEvents;}
69 AliLHCTag *GetLHCTag() {return &fLHCTag; }
c5caed45 70 AliDetectorTag *GetDetectorTags() {return &fDetectorTag;}
17a9d008 71 const TClonesArray *GetEventTags() const {return &fEventTag;}
46af88be 72 const AliQA *GetQA() const {return &fQA;}
73
bec9a2e7 74 //____________________________________________________//
e16601cf 75 private:
bec9a2e7 76 Int_t fAliceRunId; //the run id
77 Float_t fAliceMagneticField; //value of the magnetic field
78 Int_t fAliceRunStartTime; //run start date
79 Int_t fAliceRunStopTime; //run stop date
80 TString fAlirootVersion; //aliroot version
81 TString fRootVersion; //root version
82 TString fGeant3Version; //geant3 version
83 Bool_t fAliceRunQuality; //validation script
84 Float_t fAliceBeamEnergy; //beam energy cm
85 TString fAliceBeamType; //run type (pp, AA, pA)
86 Int_t fAliceCalibrationVersion; //calibration version
87 Int_t fAliceDataType; //0: simulation -- 1: data
88 Int_t fNumEvents; //number of events per file
89 Int_t fNumDetectors; //number of detector configs per file
90 TClonesArray fEventTag; //array with all event tags
46af88be 91 AliDetectorTag fDetectorTag; //array with all the detector tags
bec9a2e7 92 AliLHCTag fLHCTag; //LHC tag object
46af88be 93 AliQA fQA ; //QA
e16601cf 94
c67bacfc 95 ClassDef(AliRunTag,4) //(ClassName, ClassVersion)
f3a97c86 96};
bec9a2e7 97//___________________________________________________________________________
f3a97c86 98
99#endif