]>
Commit | Line | Data |
---|---|---|
d824c93c | 1 | #ifndef ALIEMCALTRIGGERANATRIGGERDECISION_H |
2 | #define ALIEMCALTRIGGERANATRIGGERDECISION_H | |
08f5b3a3 | 3 | /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | // Author: Markus Fasel | |
7 | #include <TObject.h> | |
d824c93c | 8 | |
9 | class TClonesArray; | |
10 | class TString; | |
11 | ||
12 | namespace EMCalTriggerPtAnalysis { | |
13 | ||
14 | class AliEMCalTriggerEventData; | |
15 | ||
16 | class AliEMCalTriggerAnaTriggerDecision : public TObject { | |
17 | public: | |
18 | enum ETATriggerType{ | |
19 | kTAEMCJHigh = 0, | |
20 | kTAEMCJLow = 1, | |
21 | kTAEMCGHigh = 2, | |
22 | kTAEMCGLow = 3 | |
23 | }; | |
24 | AliEMCalTriggerAnaTriggerDecision(); | |
25 | virtual ~AliEMCalTriggerAnaTriggerDecision(){} | |
26 | ||
27 | void Create(const AliEMCalTriggerEventData * const data); | |
28 | Bool_t IsTriggered(ETATriggerType trigger, Bool_t fromPatches = kFALSE) const { | |
29 | if(fromPatches) return fDecisionFromPatches[trigger]; | |
30 | return fDecisionFromString[trigger]; | |
31 | } | |
32 | void SetSwapThresholds(Bool_t doSwap = kTRUE) { fSwapThresholds = doSwap; } | |
33 | void SetIsMinBias(Bool_t isMB = kTRUE) { fIsMinBias = isMB; } | |
34 | void Reset(); | |
35 | ||
36 | Bool_t IsMinBias() const { return fIsMinBias; } | |
37 | ||
38 | protected: | |
39 | void MakeDecisionFromString(const TString &triggerstring); | |
40 | void MakeDecisionFromPatches(const TClonesArray &listOfPatches); | |
41 | ||
42 | Bool_t fSwapThresholds; | |
43 | Bool_t fIsMinBias; | |
44 | Bool_t fDecisionFromPatches[4]; | |
45 | Bool_t fDecisionFromString[4]; | |
46 | ||
47 | ClassDef(AliEMCalTriggerAnaTriggerDecision, 1); // EMCal trigger decision | |
48 | }; | |
49 | ||
50 | } /* namespace EMCalTriggerPtAnalysis */ | |
51 | ||
52 | #endif /* ALIEMCALTRIGGERANATRIGGERDECISION_H */ |