AliPhysics  e59a9ba (e59a9ba)
 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 
9 namespace EMCalTriggerPtAnalysis {
10 
12 public:
14 
19 
24  void SetSwapThresholds(Bool_t doSwap = kTRUE) { fSwapThresholds = doSwap;}
25 
30  void SetUseOfflinePatches(Bool_t doUse = kTRUE ) { fUseOfflinePatches = doUse; }
31 
37  void SetEnergyThreshold(ETATriggerType trigger, double threshold){
38  fEnergyThresholds[trigger] = threshold;
39  }
40 
45  void SetPatchEnergyType(EPatchEnergyType_t energyType) { fEnergyType = energyType; }
46 
51  Bool_t IsSwapThresholds() const { return fSwapThresholds; }
52 
57  Bool_t IsUsingOfflinePatches() const { return fUseOfflinePatches; }
58 
64  Double_t GetEnergyThreshold(ETATriggerType trigger) const {
65  return fEnergyThresholds[trigger];
66  }
67 
73  Bool_t HasEnergyThreshold(ETATriggerType trigger) const {
74  return fEnergyThresholds[trigger] > 0;
75  }
76 
82 
83 private:
84  Bool_t fSwapThresholds;
86  Double_t fEnergyThresholds[4];
88 
92 };
93 
94 }
95 #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.