Line data Source code
1 : #ifndef ALILHCTAG_H
2 : #define ALILHCTAG_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 AliLHCTag
11 : // This is the class to deal with the tags for the LHC level
12 : //
13 : // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
14 : //-------------------------------------------------------------------------
15 :
16 : #include "TObject.h"
17 : #include "TString.h"
18 :
19 : //______________________________________________________________________________
20 : class AliLHCTag : public TObject {
21 : public:
22 : AliLHCTag();
23 : AliLHCTag(const AliLHCTag &tag);
24 : virtual ~AliLHCTag();
25 :
26 : AliLHCTag &operator=(const AliLHCTag &tag);
27 :
28 : //____________________________________________________//
29 : // void SetLHCTag(Float_t lumin, TString type) {fLHCLuminosity = lumin; fLHCState = type; }
30 : void UpdateFromRunTable(AliLHCTag &tag);
31 :
32 8 : void SetLHCState(TString type) {fLHCState = type;}
33 8 : void SetLuminosity(Float_t lumin) {fLHCLuminosity = lumin;}
34 0 : void SetNBunches(UShort_t nb) { fNBunches = nb; };
35 0 : void SetFillingScheme(TString sch) { fFillingScheme = sch; }
36 0 : void SetFillNo(Int_t fill) { fFillNo = fill; };
37 0 : void SetBeamEnergy(Float_t be) { fBeamEnergy = be; }
38 0 : void SetBunchIntensity(Float_t bi) { fBunchIntensity = bi; }
39 :
40 :
41 : //____________________________________________________//
42 4 : const char *GetLHCState() const {return fLHCState.Data();}
43 4 : Float_t GetLuminosity() const {return fLHCLuminosity;}
44 0 : UShort_t GetNBunches() const {return fNBunches; }
45 0 : TString GetFillingScheme() const {return fFillingScheme; }
46 0 : Int_t GetFillNo() const {return fFillNo; }
47 0 : Float_t GetBeamEnergy() const {return fBeamEnergy; }
48 0 : Float_t GetBunchIntensity() const {return fBunchIntensity; }
49 :
50 : //____________________________________________________//
51 : private:
52 : TString fLHCState; //LHC run conditions - comments
53 : Float_t fLHCLuminosity; //the value of the luminosity
54 : UShort_t fNBunches; //Number of bunches in beam
55 : TString fFillingScheme; //Filling scheme name
56 : Int_t fFillNo; //Fill number
57 : Float_t fBeamEnergy; //Beam energy
58 : Float_t fBunchIntensity;//Intensity per bunch
59 :
60 192 : ClassDef(AliLHCTag,2) //(ClassName, ClassVersion)
61 : };
62 : //______________________________________________________________________________
63 :
64 : #endif
|