AliPhysics  7b9e818 (7b9e818)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalTriggerOfflineSelection.h
Go to the documentation of this file.
1 #ifndef ALIEMCALTRIGGEROFFLINESELECTION_H
2 #define ALIEMCALTRIGGEROFFLINESELECTION_H
3 /* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 #include <TObject.h>
7 #include <TString.h>
8 
9 class TClonesArray;
10 class TH2;
11 class AliVEvent;
12 
13 namespace EMCalTriggerPtAnalysis {
14 
48 public:
54  kTrgEL0 = 0,
65  };
66 
78  };
79 
84 
89 
96  void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold) { fOfflineEnergyThreshold[trgcls] = threshold; }
97 
104 
111  void SetAcceptanceMap(EmcalTriggerClass trgcls, const TH2 *accmap) { fAcceptanceMaps[trgcls] = accmap; }
112 
117  void SetClusterContainer(const TString &clustercont) { fNameClusterContainer = clustercont; }
118 
134  Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const AliVEvent * const data) const;
135 
142 
148 
155 
161  static Bool_t IsDCAL(EmcalTriggerClass cls);
162 
168  static const TString &GetTriggerName(EmcalTriggerClass cls) { return fgkTriggerNames[cls]; }
169 
170 
171 protected:
172 
173  bool ApplyPatchTrigger(EmcalTriggerClass trgcls, const TClonesArray * const triggerpatches) const;
174 
175  bool ApplyClusterTrigger(EmcalTriggerClass trgcls, const AliVEvent * const triggerpatches) const;
176 
177  bool UseClusters() const;
178 
179  bool UsePatches() const;
180 
181  static const TString fgkTriggerNames[kTrgn];
186 
188  ClassDef(AliEmcalTriggerOfflineSelection, 1);
190 };
191 
192 } /* namespace EMCalTriggerPtAnalysis */
193 
194 #endif /* ALIEMCALTRIGGEROFFLINESELECTION_H */
Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const AliVEvent *const data) const
double Double_t
Definition: External.C:58
static const TString fgkTriggerNames[kTrgn]
Names of the various trigger classes.
static const TString & GetTriggerName(EmcalTriggerClass cls)
Helper class selecting events on the presence of a trigger patch for the given type above threshold...
Double_t fOfflineEnergyThreshold[kTrgn]
Thresholds applied on offline energy.
void SetAcceptanceMap(EmcalTriggerClass trgcls, const TH2 *accmap)
EmcalTriggerClass
Definition of the various supported trigger types.
void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold)
Definition: External.C:220
EmcalEnergyDefinition_t
Definition of EMCAL patch energy measurements.
bool ApplyPatchTrigger(EmcalTriggerClass trgcls, const TClonesArray *const triggerpatches) const
EmcalEnergyDefinition_t fEnergyDefinition
Define type of energy to be use for the patch selection.
const TH2 * fAcceptanceMaps[kTrgn]
! Online acceptance distribution
bool Bool_t
Definition: External.C:53
bool ApplyClusterTrigger(EmcalTriggerClass trgcls, const AliVEvent *const triggerpatches) const