AliPhysics  775474e (775474e)
 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 
24 namespace EMCalTriggerPtAnalysis {
25 
26 class AliEMCalTriggerEventData;
27 
41 public:
42 
43 
45 
50 
51  void Create(const AliEMCalTriggerEventData * const data);
52 
64  Bool_t result = kFALSE;
65  switch(method){
66  case kTriggerString: result = fDecisionFromString[trigger]; break;
67  case kTriggerPatches: result = fDecisionFromPatches[trigger]; break;
68  case kTriggerMixed: result = fDecisionFromPatches[trigger] && fDecisionFromString[trigger]; break;
69  };
70  return result;
71  }
72 
78 
84 
85  void Reset();
86 
87  void Print(Option_t * opt = NULL) const;
88 
93  void SetDebugMode(Bool_t doDebug = true) { fDoDebug = doDebug; }
94 
95  bool CheckConsistency() const;
96 
97 protected:
98  void MakeDecisionFromString(const TString &triggerstring);
99  void MakeDecisionFromPatches(const TClonesArray &listOfPatches);
100 
101  Bool_t SelectTriggerPatch(ETATriggerType trigger, const AliEMCALTriggerPatchInfo * const recpatch) const;
102  Double_t GetPatchEnergy(EPatchEnergyType_t energytype, const AliEMCALTriggerPatchInfo *const patch) const;
103 
107 
109 
111  ClassDef(AliEMCalTriggerAnaTriggerDecision, 1); // EMCal trigger decision
113 };
114 
115 } /* namespace EMCalTriggerPtAnalysis */
116 
117 #endif /* ALIEMCALTRIGGERANATRIGGERDECISION_H */
ETriggerMethod_t
Methods available to select event as triggered events.
Class performing the selection of triggered events.
double Double_t
Definition: External.C:58
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.
Int_t method
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.
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
Bool_t fDecisionFromString[4]
Storage for result from trigger patches.
Bool_t SelectTriggerPatch(ETATriggerType trigger, const AliEMCALTriggerPatchInfo *const recpatch) const