AliPhysics  vAN-20150827 (3e81cbb)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliEmcalTriggerSetupInfo.h
Go to the documentation of this file.
1 
8 #ifndef ALIEMCALTRIGGERSETUPINFO_H
9 #define ALIEMCALTRIGGERSETUPINFO_H
10 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
11  * See cxx source for full Copyright notice */
12 
13 #include "TNamed.h"
14 
15 static const Double_t kEMCL1ADCtoGeV = 0.07874;
16 static const Double_t kEMCL1ADCtoADCSum = 3.40;
17 
25 class AliEmcalTriggerSetupInfo: public TNamed {
26  public:
30  virtual ~AliEmcalTriggerSetupInfo();
31 
36  Int_t GetThresholdJetLow() const { return fThresholds[2]; }
41  Int_t GetThresholdJetHigh() const { return fThresholds[0]; }
46  Int_t GetThresholdJetLowSimple() const { return fThresholdsSimple[2]; }
51  Int_t GetThresholdJetHighSimple() const { return fThresholdsSimple[0]; }
52 
57  Int_t GetThresholdGammaLow() const { return fThresholds[3]; }
62  Int_t GetThresholdGammaHigh() const { return fThresholds[1]; }
67  Int_t GetThresholdGammaLowSimple() const { return fThresholdsSimple[3]; }
72  Int_t GetThresholdGammaHighSimple() const { return fThresholdsSimple[1]; }
73 
78  Double_t GetThresholdGeVRoughJetLow() const { return ((Double_t)fThresholds[2])*kEMCL1ADCtoGeV; }
83  Double_t GetThresholdGeVRoughJetHigh() const { return ((Double_t)fThresholds[0])*kEMCL1ADCtoGeV; }
88  Double_t GetThresholdGeVRoughJetLowSimple() const { return ((Double_t)fThresholdsSimple[2])*kEMCL1ADCtoGeV; }
93  Double_t GetThresholdGeVRoughJetHighSimple() const { return ((Double_t)fThresholdsSimple[0])*kEMCL1ADCtoGeV; }
94 
102  void SetThresholds( Int_t i0, Int_t i1, Int_t i2, Int_t i3 ) {
103  fThresholds[0] = i0; fThresholds[1] = i1; fThresholds[2] = i2; fThresholds[3] = i3;}
111  void SetThresholdsSimple( Int_t i0, Int_t i1, Int_t i2, Int_t i3 ) {
112  fThresholdsSimple[0] = i0; fThresholdsSimple[1] = i1; fThresholdsSimple[2] = i2; fThresholdsSimple[3] = i3;}
113 
114  void Clean();
115 
116 
117  protected:
118  Int_t fThresholds[4];
119  Int_t fThresholdsSimple[4];
120 
122  ClassDef(AliEmcalTriggerSetupInfo, 2) // Emcal trigger setup class
124 };
125 #endif
AliEmcalTriggerSetupInfo & operator=(const AliEmcalTriggerSetupInfo &p)
Double_t GetThresholdGeVRoughJetLow() const
Double_t GetThresholdGeVRoughJetLowSimple() const
Int_t fThresholds[4]
per event L1 online thresholds in ADC counts
Double_t GetThresholdGeVRoughJetHighSimple() const
Double_t GetThresholdGeVRoughJetHigh() const
static const Double_t kEMCL1ADCtoADCSum
static const Double_t kEMCL1ADCtoGeV
Conversion from EMCAL Level1 ADC to energy.
Int_t fThresholdsSimple[4]
per event L1 simple offline thresholds
Settings manager for the trigger patch algorithm.
void SetThresholdsSimple(Int_t i0, Int_t i1, Int_t i2, Int_t i3)
void SetThresholds(Int_t i0, Int_t i1, Int_t i2, Int_t i3)