AliPhysics  b43479f (b43479f)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEMCalTriggerAnaTriggerDecisionConfig.h
Go to the documentation of this file.
1 #ifndef ALIEMCALTRIGGERANATRIGGERDECISIONCONFIG_H
2 #define ALIEMCALTRIGGERANATRIGGERDECISIONCONFIG_H
3 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 #include <TObject.h>
8 
16 namespace EMCalTriggerPtAnalysis {
17 
19 public:
21 
26 
31  void SetSwapThresholds(Bool_t doSwap = kTRUE) { fSwapThresholds = doSwap;}
32 
37  void SetUseOfflinePatches(Bool_t doUse = kTRUE ) { fUseOfflinePatches = doUse; }
38 
44  void SetEnergyThreshold(ETATriggerType trigger, double threshold){
45  fEnergyThresholds[trigger] = threshold;
46  }
47 
52  void SetPatchEnergyType(EPatchEnergyType_t energyType) { fEnergyType = energyType; }
53 
58  Bool_t IsSwapThresholds() const { return fSwapThresholds; }
59 
64  Bool_t IsUsingOfflinePatches() const { return fUseOfflinePatches; }
65 
71  Double_t GetEnergyThreshold(ETATriggerType trigger) const {
72  return fEnergyThresholds[trigger];
73  }
74 
80  Bool_t HasEnergyThreshold(ETATriggerType trigger) const {
81  return fEnergyThresholds[trigger] > 0;
82  }
83 
89 
90 private:
91  Bool_t fSwapThresholds;
93  Double_t fEnergyThresholds[4];
95 
99 };
100 
101 }
102 #endif /* */
Bool_t fUseOfflinePatches
Switch for using offline patches for event selection.
ETATriggerType
Trigger types defined for this analysis.
EPatchEnergyType_t fEnergyType
Energy type from patch used for the patch energy selection.
Bool_t fSwapThresholds
Flag for swapping high and low energy threshold.
Double_t fEnergyThresholds[4]
Energy thresholds applied in the analysis.