]>
Commit | Line | Data |
---|---|---|
541c65eb | 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" | |
acad44c5 | 9 | #include <TNamed.h> |
541c65eb | 10 | |
acad44c5 | 11 | class AliEmcalTriggerBitConfig : public TNamed { |
541c65eb | 12 | public: |
13 | AliEmcalTriggerBitConfig(); | |
14 | AliEmcalTriggerBitConfig(Int_t l0bit, Int_t j1bit, Int_t j2bit, Int_t g1bit, Int_t g2bit, Int_t mcoffset); | |
15 | virtual ~AliEmcalTriggerBitConfig() {} | |
16 | ||
17 | void Initialise(const AliEmcalTriggerBitConfig &ref); | |
18 | ||
19 | Int_t GetLevel0Bit() const { if(fL0Bit < 0) AliFatal("Invalid trigger configuration: Level0 bit < 0"); return fL0Bit; } | |
20 | Int_t GetJetHighBit() const { if(fJHighBit < 0) AliFatal("Invalid trigger configuration: Jet high bit < 0"); return fJHighBit; } | |
21 | Int_t GetJetLowBit() const { if(fJLowBit < 0) AliFatal("Invalid trigger configuration: Jet low bit < 0"); return fJLowBit; } | |
22 | Int_t GetGammaHighBit() const { if(fGHighBit < 0) AliFatal("Invalid trigger configuration: Gamma high bit < 0"); return fGHighBit; } | |
23 | Int_t GetGammaLowBit() const { if(fGLowBit < 0) AliFatal("Invalid trigger configuration: Gamma low bit < 0"); return fGLowBit; } | |
24 | Int_t GetTriggerTypesEnd() const {if(fTriggerTypesEnd < 0) AliFatal("Invalid trigger configuration: MC Offset bit < 0"); return fTriggerTypesEnd; } | |
25 | ||
26 | protected: | |
27 | Int_t fL0Bit; // Level0 bit | |
28 | Int_t fJHighBit; // Jet High bit | |
29 | Int_t fJLowBit; // Jet Low bit | |
30 | Int_t fGHighBit; // Gamma High bit | |
31 | Int_t fGLowBit; // Gamma Low bit | |
32 | Int_t fTriggerTypesEnd; // Monte-Carlo offset | |
33 | ||
34 | ClassDef(AliEmcalTriggerBitConfig, 1); | |
35 | }; | |
36 | ||
37 | class AliEmcalTriggerBitConfigOld : public AliEmcalTriggerBitConfig{ | |
38 | public: | |
39 | AliEmcalTriggerBitConfigOld(); | |
40 | virtual ~AliEmcalTriggerBitConfigOld() {} | |
41 | ||
42 | ClassDef(AliEmcalTriggerBitConfigOld, 1); | |
43 | }; | |
44 | ||
45 | class AliEmcalTriggerBitConfigNew : public AliEmcalTriggerBitConfig{ | |
46 | public: | |
47 | AliEmcalTriggerBitConfigNew(); | |
48 | virtual ~AliEmcalTriggerBitConfigNew() {} | |
49 | ||
50 | ClassDef(AliEmcalTriggerBitConfigNew, 1); | |
51 | }; | |
52 | ||
53 | #endif /* ALIEMCALTRIGGERBITCONFIG_H */ |