AliPhysics  251aa1e (251aa1e)
 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 
12 namespace EMCalTriggerPtAnalysis {
13 
47 public:
53  kTrgEL0 = 0,
64  };
65 
70 
75 
82  void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold) { fOfflineEnergyThreshold[trgcls] = threshold; }
83 
90  void SetAcceptanceMap(EmcalTriggerClass trgcls, const TH2 *accmap) { fAcceptanceMaps[trgcls] = accmap; }
91 
107  Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray * const triggerpatches) const;
108 
115 
122 
128  static Bool_t IsDCAL(EmcalTriggerClass cls);
129 
135  static const TString &GetTriggerName(EmcalTriggerClass cls) { return fgkTriggerNames[cls]; }
136 
137 protected:
138  static const TString fgkTriggerNames[kTrgn];
141 
143  ClassDef(AliEmcalTriggerOfflineSelection, 1);
145 };
146 
147 } /* namespace EMCalTriggerPtAnalysis */
148 
149 #endif /* ALIEMCALTRIGGEROFFLINESELECTION_H */
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)
Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray *const triggerpatches) const
Definition: External.C:220
const TH2 * fAcceptanceMaps[kTrgn]
! Online acceptance distribution
bool Bool_t
Definition: External.C:53