AliPhysics  775474e (775474e)
 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 
75  };
76 
81 
86 
93  void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold) { fOfflineEnergyThreshold[trgcls] = threshold; }
94 
101 
108  void SetAcceptanceMap(EmcalTriggerClass trgcls, const TH2 *accmap) { fAcceptanceMaps[trgcls] = accmap; }
109 
125  Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray * const triggerpatches) const;
126 
133 
140 
146  static Bool_t IsDCAL(EmcalTriggerClass cls);
147 
153  static const TString &GetTriggerName(EmcalTriggerClass cls) { return fgkTriggerNames[cls]; }
154 
155 protected:
156  static const TString fgkTriggerNames[kTrgn];
160 
162  ClassDef(AliEmcalTriggerOfflineSelection, 1);
164 };
165 
166 } /* namespace EMCalTriggerPtAnalysis */
167 
168 #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
EmcalEnergyDefinition_t
Definition of EMCAL patch energy measurements.
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