]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG/EMCAL/AliEmcalTriggerBitConfig.h
Adapt trigger patch maker to different bit settings:
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEmcalTriggerBitConfig.h
1 #ifndef ALIEMCALTRIGGERBITCONFIG_H
2 #define ALIEMCALTRIGGERBITCONFIG_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 // Author: Markus Fasel
7
8 #include "AliLog.h"
9
10 class AliEmcalTriggerBitConfig  : public TObject {
11 public:
12   AliEmcalTriggerBitConfig();
13   AliEmcalTriggerBitConfig(Int_t l0bit, Int_t j1bit, Int_t j2bit, Int_t g1bit, Int_t g2bit, Int_t mcoffset);
14   virtual ~AliEmcalTriggerBitConfig() {}
15
16   void Initialise(const AliEmcalTriggerBitConfig &ref);
17
18   Int_t GetLevel0Bit() const { if(fL0Bit < 0) AliFatal("Invalid trigger configuration: Level0 bit < 0"); return fL0Bit; }
19   Int_t GetJetHighBit() const { if(fJHighBit < 0) AliFatal("Invalid trigger configuration: Jet high bit < 0"); return fJHighBit; }
20   Int_t GetJetLowBit() const { if(fJLowBit < 0) AliFatal("Invalid trigger configuration: Jet low bit < 0"); return fJLowBit; }
21   Int_t GetGammaHighBit() const { if(fGHighBit < 0) AliFatal("Invalid trigger configuration: Gamma high bit < 0"); return fGHighBit; }
22   Int_t GetGammaLowBit() const { if(fGLowBit < 0) AliFatal("Invalid trigger configuration: Gamma low bit < 0"); return fGLowBit; }
23   Int_t GetTriggerTypesEnd() const {if(fTriggerTypesEnd < 0) AliFatal("Invalid trigger configuration: MC Offset bit < 0"); return fTriggerTypesEnd; }
24
25 protected:
26  Int_t fL0Bit;      // Level0 bit
27  Int_t fJHighBit;   // Jet High bit
28  Int_t fJLowBit;    // Jet Low bit
29  Int_t fGHighBit;   // Gamma High bit
30  Int_t fGLowBit;    // Gamma Low bit
31  Int_t fTriggerTypesEnd;   // Monte-Carlo offset
32
33  ClassDef(AliEmcalTriggerBitConfig, 1);
34 };
35
36 class AliEmcalTriggerBitConfigOld : public AliEmcalTriggerBitConfig{
37 public:
38   AliEmcalTriggerBitConfigOld();
39   virtual ~AliEmcalTriggerBitConfigOld() {}
40
41   ClassDef(AliEmcalTriggerBitConfigOld, 1);
42 };
43
44 class AliEmcalTriggerBitConfigNew : public AliEmcalTriggerBitConfig{
45 public:
46   AliEmcalTriggerBitConfigNew();
47   virtual ~AliEmcalTriggerBitConfigNew() {}
48
49   ClassDef(AliEmcalTriggerBitConfigNew, 1);
50 };
51
52 #endif /* ALIEMCALTRIGGERBITCONFIG_H */