AliPhysics  d009c82 (d009c82)
AliEmcalTriggerEmulation.h
Go to the documentation of this file.
1 #ifndef ALIEMCALTRIGGEREMULATION_H
2 #define ALIEMCALTRIGGEREMULATION_H
3 /* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 #include <TF1.h>
7 #include <TObject.h>
8 
9 class AliEmcalContainer;
10 
11 namespace EMCalTriggerPtAnalysis {
12 
28 public:
39  AliEmcalTriggerEmulation(double energy, double resolution);
44 
55  bool SelectEvent(const AliEmcalContainer * const cont) const;
56 
61  void SetEnergy(double energy) { fThresholdEngine.SetParameter(1, energy); }
66  void SetResolution(double resolution) { fThresholdEngine.SetParameter(2, resolution); }
72  void Set(double energy, double resolution) {
73  fThresholdEngine.SetParameter(1, energy);
74  fThresholdEngine.SetParameter(2, resolution);
75  }
76 
77 protected:
79 
81  ClassDef(AliEmcalTriggerEmulation, 1);
83 };
84 
85 } /* namespace EMCalTriggerPtAnalysis */
86 
87 #endif /* ALIEMCALTRIGGEREMULATION_H */
energy
Definition: HFPtSpectrum.C:44
bool SelectEvent(const AliEmcalContainer *const cont) const
Analysis of high- tracks in triggered events.
TF1 fThresholdEngine
Engine for energy threshold calculation.