AliPhysics  8bb951a (8bb951a)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEMCalTriggerAnaTriggerDecision.h
Go to the documentation of this file.
1 
10 #ifndef ALIEMCALTRIGGERANATRIGGERDECISION_H
11 #define ALIEMCALTRIGGERANATRIGGERDECISION_H
12 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
13  * See cxx source for full Copyright notice */
14 
15 #include <TObject.h>
16 
19 
20 class TClonesArray;
21 class TString;
22 class AliEMCALTriggerPatchInfo;
23 
31 namespace EMCalTriggerPtAnalysis {
32 
33 class AliEMCalTriggerEventData;
34 
47 class AliEMCalTriggerAnaTriggerDecision : public TObject {
48 public:
49 
50 
52 
57 
58  void Create(const AliEMCalTriggerEventData * const data);
59 
70  Bool_t IsTriggered(ETATriggerType trigger, ETriggerMethod_t method = kTriggerString) const {
71  Bool_t result = kFALSE;
72  switch(method){
73  case kTriggerString: result = fDecisionFromString[trigger]; break;
74  case kTriggerPatches: result = fDecisionFromPatches[trigger]; break;
75  case kTriggerMixed: result = fDecisionFromPatches[trigger] && fDecisionFromString[trigger]; break;
76  };
77  return result;
78  }
79 
85 
91 
92  void Reset();
93 
94  void Print(Option_t * opt = NULL) const;
95 
100  void SetDebugMode(Bool_t doDebug = true) { fDoDebug = doDebug; }
101 
102  bool CheckConsistency() const;
103 
104 protected:
105  void MakeDecisionFromString(const TString &triggerstring);
106  void MakeDecisionFromPatches(const TClonesArray &listOfPatches);
107 
108  Bool_t SelectTriggerPatch(ETATriggerType trigger, const AliEMCALTriggerPatchInfo * const recpatch) const;
109  Double_t GetPatchEnergy(EPatchEnergyType_t energytype, const AliEMCALTriggerPatchInfo *const patch) const;
110 
114 
115  Bool_t fDoDebug;
116 
118  ClassDef(AliEMCalTriggerAnaTriggerDecision, 1); // EMCal trigger decision
120 };
121 
122 } /* namespace EMCalTriggerPtAnalysis */
123 
124 #endif /* ALIEMCALTRIGGERANATRIGGERDECISION_H */
ETriggerMethod_t
Methods available to select event as triggered events.
Class performing the selection of triggered events.
void ConfigureTriggerDecision(const AliEMCalTriggerAnaTriggerDecisionConfig &conf)
const AliEMCalTriggerAnaTriggerDecisionConfig * GetConfiguration() const
Bool_t IsTriggered(ETATriggerType trigger, ETriggerMethod_t method=kTriggerString) const
ETATriggerType
Trigger types defined for this analysis.
Bool_t fDecisionFromPatches[4]
Storage for result from trigger string.
AliEMCalTriggerAnaTriggerDecisionConfig fConfiguration
Configuration for the trigger decision handler.
Double_t GetPatchEnergy(EPatchEnergyType_t energytype, const AliEMCALTriggerPatchInfo *const patch) const
Simple event container within the high- track analysis.
Bool_t fDecisionFromString[4]
Storage for result from trigger patches.
Bool_t SelectTriggerPatch(ETATriggerType trigger, const AliEMCALTriggerPatchInfo *const recpatch) const