AliPhysics  vAN-20150630 (513c479)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliEmcalTriggerSetupInfo.h
Go to the documentation of this file.
1 #ifndef ALIEMCALTRIGGERSETUPINFO_H
2 #define ALIEMCALTRIGGERSETUPINFO_H
3 
4 // $Id$
5 
6 #include "TNamed.h"
7 
8 static const Double_t kEMCL1ADCtoGeV = 0.07874;
9 static const Double_t kEMCL1ADCtoADCSum = 3.40;
10 
11 class AliEmcalTriggerSetupInfo: public TNamed {
12  public:
16  virtual ~AliEmcalTriggerSetupInfo();
17 
18  Int_t GetThresholdJetLow() const { return fThresholds[2]; }
19  Int_t GetThresholdJetHigh() const { return fThresholds[0]; }
20  Int_t GetThresholdJetLowSimple() const { return fThresholdsSimple[2]; }
21  Int_t GetThresholdJetHighSimple() const { return fThresholdsSimple[0]; }
22 
23  Int_t GetThresholdGammaLow() const { return fThresholds[3]; }
24  Int_t GetThresholdGammaHigh() const { return fThresholds[1]; }
25  Int_t GetThresholdGammaLowSimple() const { return fThresholdsSimple[3]; }
26  Int_t GetThresholdGammaHighSimple() const { return fThresholdsSimple[1]; }
27 
28 
29  Double_t GetThresholdGeVRoughJetLow() const { return ((Double_t)fThresholds[2])*kEMCL1ADCtoGeV; }
30  Double_t GetThresholdGeVRoughJetHigh() const { return ((Double_t)fThresholds[0])*kEMCL1ADCtoGeV; }
31  Double_t GetThresholdGeVRoughJetLowSimple() const { return ((Double_t)fThresholdsSimple[2])*kEMCL1ADCtoGeV; }
32  Double_t GetThresholdGeVRoughJetHighSimple() const { return ((Double_t)fThresholdsSimple[0])*kEMCL1ADCtoGeV; }
33 
34  void SetThresholds( Int_t i0, Int_t i1, Int_t i2, Int_t i3 ) {
35  fThresholds[0] = i0; fThresholds[1] = i1; fThresholds[2] = i2; fThresholds[3] = i3;}
36  void SetThresholdsSimple( Int_t i0, Int_t i1, Int_t i2, Int_t i3 ) {
37  fThresholdsSimple[0] = i0; fThresholdsSimple[1] = i1; fThresholdsSimple[2] = i2; fThresholdsSimple[3] = i3;}
38 
39  void Clean();
40 
41 
42  protected:
43  Int_t fThresholds[4]; // per event L1 online thresholds in ADC counts
44  Int_t fThresholdsSimple[4]; // per event L1 simple offline thresholds
45 
46  ClassDef(AliEmcalTriggerSetupInfo, 2) // Emcal trigger setup class
47 };
48 #endif
AliEmcalTriggerSetupInfo & operator=(const AliEmcalTriggerSetupInfo &p)
Double_t GetThresholdGeVRoughJetLow() const
Double_t GetThresholdGeVRoughJetLowSimple() const
Double_t GetThresholdGeVRoughJetHighSimple() const
Double_t GetThresholdGeVRoughJetHigh() const
static const Double_t kEMCL1ADCtoADCSum
static const Double_t kEMCL1ADCtoGeV
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)