]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliLHCTag.h
Changes for #81817: Fixes relatedto the trigger bits treatment in AliReconstruction
[u/mrichter/AliRoot.git] / STEER / AliLHCTag.h
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   void SetLHCState(TString type) {fLHCState = type;}
33   void SetLuminosity(Float_t lumin) {fLHCLuminosity = lumin;}
34   void SetNBunches(UShort_t nb) { fNBunches = nb; };
35   void SetFillingScheme(TString sch) { fFillingScheme = sch; }
36   void SetFillNo(Int_t fill) { fFillNo = fill; };
37   void SetBeamEnergy(Float_t be) { fBeamEnergy = be; }
38   void SetBunchIntensity(Float_t bi) { fBunchIntensity = bi; }
39   
40   
41   //____________________________________________________//
42   const char *GetLHCState() const {return fLHCState.Data();}
43   Float_t     GetLuminosity() const {return fLHCLuminosity;}
44   UShort_t    GetNBunches() const {return fNBunches; }
45   TString     GetFillingScheme() const {return fFillingScheme; }
46   Int_t       GetFillNo() const {return fFillNo; }
47   Float_t     GetBeamEnergy() const {return fBeamEnergy; }
48   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   ClassDef(AliLHCTag,2)   //(ClassName, ClassVersion)
61 };
62 //______________________________________________________________________________
63
64 #endif