]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG/EMCAL/AliEmcalTriggerSetupInfo.h
add qa check
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEmcalTriggerSetupInfo.h
CommitLineData
00c77045 1#ifndef ALIEMCALTRIGGERSETUPINFO_H
2#define ALIEMCALTRIGGERSETUPINFO_H
3
4// $Id$
5
6#include "TNamed.h"
7
8static const Double_t kEMCL1ADCtoGeV = 0.07874;
001765f7 9static const Double_t kEMCL1ADCtoADCSum = 3.40;
00c77045 10
11class AliEmcalTriggerSetupInfo: public TNamed {
12 public:
13 AliEmcalTriggerSetupInfo();
14 AliEmcalTriggerSetupInfo(const AliEmcalTriggerSetupInfo &p);
15 AliEmcalTriggerSetupInfo &operator=(const AliEmcalTriggerSetupInfo &p);
16 virtual ~AliEmcalTriggerSetupInfo();
17
18 Int_t GetThresholdJetLow() const { return fThresholds[2]; }
19 Int_t GetThresholdJetHigh() const { return fThresholds[0]; }
001765f7 20 Int_t GetThresholdJetLowSimple() const { return fThresholdsSimple[2]; }
21 Int_t GetThresholdJetHighSimple() const { return fThresholdsSimple[0]; }
00c77045 22
23 Double_t GetThresholdGeVRoughJetLow() const { return ((Double_t)fThresholds[2])*kEMCL1ADCtoGeV; }
24 Double_t GetThresholdGeVRoughJetHigh() const { return ((Double_t)fThresholds[0])*kEMCL1ADCtoGeV; }
001765f7 25 Double_t GetThresholdGeVRoughJetLowSimple() const { return ((Double_t)fThresholdsSimple[2])*kEMCL1ADCtoGeV; }
26 Double_t GetThresholdGeVRoughJetHighSimple() const { return ((Double_t)fThresholdsSimple[0])*kEMCL1ADCtoGeV; }
00c77045 27
28 void SetThresholds( Int_t i0, Int_t i1, Int_t i2, Int_t i3 ) {
29 fThresholds[0] = i0; fThresholds[1] = i1; fThresholds[2] = i2; fThresholds[3] = i3;}
001765f7 30 void SetThresholdsSimple( Int_t i0, Int_t i1, Int_t i2, Int_t i3 ) {
31 fThresholdsSimple[0] = i0; fThresholdsSimple[1] = i1; fThresholdsSimple[2] = i2; fThresholdsSimple[3] = i3;}
00c77045 32
33 void Clean();
34
35
36 protected:
37 Int_t fThresholds[4]; // per event L1 online thresholds in ADC counts
001765f7 38 Int_t fThresholdsSimple[4]; // per event L1 simple offline thresholds
00c77045 39
001765f7 40 ClassDef(AliEmcalTriggerSetupInfo, 2) // Emcal trigger setup class
00c77045 41};
42#endif