ROOT logo
#ifndef ALIEMCALTRIGGERSETUPINFO_H
#define ALIEMCALTRIGGERSETUPINFO_H

// $Id$

#include "TNamed.h"

static const Double_t kEMCL1ADCtoGeV = 0.07874;
static const Double_t kEMCL1ADCtoADCSum = 3.40;

class AliEmcalTriggerSetupInfo: public TNamed {
 public:
  AliEmcalTriggerSetupInfo();
  AliEmcalTriggerSetupInfo(const AliEmcalTriggerSetupInfo &p); 
  AliEmcalTriggerSetupInfo &operator=(const AliEmcalTriggerSetupInfo &p);
  virtual ~AliEmcalTriggerSetupInfo();

  Int_t GetThresholdJetLow() const { return fThresholds[2]; }
  Int_t GetThresholdJetHigh() const { return fThresholds[0]; }
  Int_t GetThresholdJetLowSimple() const { return fThresholdsSimple[2]; }
  Int_t GetThresholdJetHighSimple() const { return fThresholdsSimple[0]; }
  
  Int_t GetThresholdGammaLow() const { return fThresholds[3]; }
  Int_t GetThresholdGammaHigh() const { return fThresholds[1]; }
  Int_t GetThresholdGammaLowSimple() const { return fThresholdsSimple[3]; }
  Int_t GetThresholdGammaHighSimple() const { return fThresholdsSimple[1]; }


   Double_t GetThresholdGeVRoughJetLow() const { return ((Double_t)fThresholds[2])*kEMCL1ADCtoGeV; }
   Double_t GetThresholdGeVRoughJetHigh() const { return ((Double_t)fThresholds[0])*kEMCL1ADCtoGeV; }
   Double_t GetThresholdGeVRoughJetLowSimple() const { return ((Double_t)fThresholdsSimple[2])*kEMCL1ADCtoGeV; }
   Double_t GetThresholdGeVRoughJetHighSimple() const { return ((Double_t)fThresholdsSimple[0])*kEMCL1ADCtoGeV; }
  
  void SetThresholds( Int_t i0, Int_t i1, Int_t i2, Int_t i3 ) {
            fThresholds[0] = i0; fThresholds[1] = i1; fThresholds[2] = i2; fThresholds[3] = i3;}
  void SetThresholdsSimple( Int_t i0, Int_t i1, Int_t i2, Int_t i3 ) {
            fThresholdsSimple[0] = i0; fThresholdsSimple[1] = i1; fThresholdsSimple[2] = i2; fThresholdsSimple[3] = i3;}
            
  void Clean();


 protected:
  Int_t             fThresholds[4];                 // per event L1 online thresholds in ADC counts
  Int_t             fThresholdsSimple[4];           // per event L1 simple offline thresholds

  ClassDef(AliEmcalTriggerSetupInfo, 2) // Emcal trigger setup class
};
#endif
 AliEmcalTriggerSetupInfo.h:1
 AliEmcalTriggerSetupInfo.h:2
 AliEmcalTriggerSetupInfo.h:3
 AliEmcalTriggerSetupInfo.h:4
 AliEmcalTriggerSetupInfo.h:5
 AliEmcalTriggerSetupInfo.h:6
 AliEmcalTriggerSetupInfo.h:7
 AliEmcalTriggerSetupInfo.h:8
 AliEmcalTriggerSetupInfo.h:9
 AliEmcalTriggerSetupInfo.h:10
 AliEmcalTriggerSetupInfo.h:11
 AliEmcalTriggerSetupInfo.h:12
 AliEmcalTriggerSetupInfo.h:13
 AliEmcalTriggerSetupInfo.h:14
 AliEmcalTriggerSetupInfo.h:15
 AliEmcalTriggerSetupInfo.h:16
 AliEmcalTriggerSetupInfo.h:17
 AliEmcalTriggerSetupInfo.h:18
 AliEmcalTriggerSetupInfo.h:19
 AliEmcalTriggerSetupInfo.h:20
 AliEmcalTriggerSetupInfo.h:21
 AliEmcalTriggerSetupInfo.h:22
 AliEmcalTriggerSetupInfo.h:23
 AliEmcalTriggerSetupInfo.h:24
 AliEmcalTriggerSetupInfo.h:25
 AliEmcalTriggerSetupInfo.h:26
 AliEmcalTriggerSetupInfo.h:27
 AliEmcalTriggerSetupInfo.h:28
 AliEmcalTriggerSetupInfo.h:29
 AliEmcalTriggerSetupInfo.h:30
 AliEmcalTriggerSetupInfo.h:31
 AliEmcalTriggerSetupInfo.h:32
 AliEmcalTriggerSetupInfo.h:33
 AliEmcalTriggerSetupInfo.h:34
 AliEmcalTriggerSetupInfo.h:35
 AliEmcalTriggerSetupInfo.h:36
 AliEmcalTriggerSetupInfo.h:37
 AliEmcalTriggerSetupInfo.h:38
 AliEmcalTriggerSetupInfo.h:39
 AliEmcalTriggerSetupInfo.h:40
 AliEmcalTriggerSetupInfo.h:41
 AliEmcalTriggerSetupInfo.h:42
 AliEmcalTriggerSetupInfo.h:43
 AliEmcalTriggerSetupInfo.h:44
 AliEmcalTriggerSetupInfo.h:45
 AliEmcalTriggerSetupInfo.h:46
 AliEmcalTriggerSetupInfo.h:47
 AliEmcalTriggerSetupInfo.h:48