AliPhysics  d2444a6 (d2444a6)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalTriggerOfflineSelection.h
Go to the documentation of this file.
1 /*
2  * AliEmcalTriggerOfflineSelection.h
3  *
4  * Created on: Feb 23, 2016
5  * Author: markus
6  */
7 
8 #ifndef ALIEMCALTRIGGEROFFLINESELECTION_H
9 #define ALIEMCALTRIGGEROFFLINESELECTION_H
10 
11 #include <TObject.h>
12 
13 class TClonesArray;
14 
15 namespace EMCalTriggerPtAnalysis {
16 
18 public:
20  kTrgEL0 = 0,
31  };
32 
35 
36  void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold) { fOfflineEnergyThreshold[trgcls] = threshold; }
37  Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray * const triggerpatches) const;
38  Double_t GetThresholdForTrigger(EmcalTriggerClass trgcls) const {return fOfflineEnergyThreshold[trgcls]; }
39 
40  static Bool_t IsSingleShower(EmcalTriggerClass cls);
41  static Bool_t IsDCAL(EmcalTriggerClass cls);
42 
43 protected:
45 
47 };
48 
49 } /* namespace EMCalTriggerPtAnalysis */
50 
51 #endif /* ALIEMCALTRIGGEROFFLINESELECTION_H */
ClassDef(AliEmcalTriggerOfflineSelection, 1)
static Bool_t IsDCAL(EmcalTriggerClass cls)
void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold)
Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray *const triggerpatches) const
static Bool_t IsSingleShower(EmcalTriggerClass cls)