AliPhysics  56f1704 (56f1704)
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 
98  void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold) { fOfflineEnergyThreshold[trgcls] = threshold; }
99 
108 
118  void SetAcceptanceMap(EmcalTriggerClass trgcls, const TH2 *accmap) { fAcceptanceMaps[trgcls] = accmap; }
119 
124  void SetClusterContainer(const TString &clustercont) { fNameClusterContainer = clustercont; }
125 
143  Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const AliVEvent * const data) const;
144 
151 
157 
164 
170  static Bool_t IsDCAL(EmcalTriggerClass cls);
171 
177  static const TString &GetTriggerName(EmcalTriggerClass cls) { return fgkTriggerNames[cls]; }
178 
187  void SetEnergyResolution(Double_t resolution) { fResolution = resolution; }
188 
194 
195 
196 protected:
197 
219  bool ApplyPatchTrigger(EmcalTriggerClass trgcls, const TClonesArray * const triggerpatches) const;
220 
235  bool ApplyClusterTrigger(EmcalTriggerClass trgcls, const AliVEvent * const event) const;
236 
241  bool UseClusters() const;
242 
247  bool UsePatches() const;
248 
249  static const TString fgkTriggerNames[kTrgn];
256 
258  ClassDef(AliEmcalTriggerOfflineSelection, 1);
260 };
261 
262 } /* namespace EMCalTriggerPtAnalysis */
263 
264 #endif /* ALIEMCALTRIGGEROFFLINESELECTION_H */
Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const AliVEvent *const data) const
Select event as triggered event.
double Double_t
Definition: External.C:58
static const TString fgkTriggerNames[kTrgn]
Names of the various trigger classes.
static const TString & GetTriggerName(EmcalTriggerClass cls)
Get the name of the trigger class as string representation.
Helper class selecting events on the presence of a trigger patch for the given type above threshold...
bool ApplyClusterTrigger(EmcalTriggerClass trgcls, const AliVEvent *const event) const
Run event selection using a EMCAL clusters.
Double_t fOfflineEnergyThreshold[kTrgn]
Thresholds applied on offline energy.
void SetAcceptanceMap(EmcalTriggerClass trgcls, const TH2 *accmap)
Set acceptance map for a given trigger class.
Bool_t fUseSmearedEnergy
Switch whether to use smeared or original energy.
EmcalTriggerClass
Definition of the various supported trigger types.
static Bool_t IsSingleShower(EmcalTriggerClass cls)
Checks if the trigger class is a single shower patch trigger class.
Double_t GetThresholdForTrigger(EmcalTriggerClass trgcls) const
Get the offline trigger threshold (on energy) for a given trigger class.
void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold)
Specify threshold for a given offline trigger class.
void SetEnergyResolution(Double_t resolution)
Set the energy resolution used to smear the threshold.
const TString & GetNameClusterContainer() const
Get the name of the cluster container.
bool UseClusters() const
Check whether the trigger observable is based on clusters.
void SetUseSmearedEnergy(Bool_t doUse)
Switch whether to use original or smeared energy.
Definition: External.C:220
Analysis of high- tracks in triggered events.
EmcalEnergyDefinition_t
Definition of EMCAL patch energy measurements.
bool ApplyPatchTrigger(EmcalTriggerClass trgcls, const TClonesArray *const triggerpatches) const
Run event selection using trigger patches.
static Bool_t IsDCAL(EmcalTriggerClass cls)
Checks if the trigger class is a jet patch trigger class.
EmcalEnergyDefinition_t fEnergyDefinition
Define type of energy to be use for the patch selection.
const TH2 * fAcceptanceMaps[kTrgn]
! Online acceptance distribution
void SetEnergyDefinition(EmcalEnergyDefinition_t endef)
Define according to which energy measurement a patch is selected as trigger patch.
bool UsePatches() const
Check whether the trigger observable is based on trigger patches.
bool Bool_t
Definition: External.C:53