AliRoot Core  3dc7879 (3dc7879)
AliEMCALTriggerSTU.h
Go to the documentation of this file.
1 #ifndef ALIEMCALTRIGGERSTU_H
2 #define ALIEMCALTRIGGERSTU_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 //________________________________________________
14 //________________________________________________
15 
16 #include <AliEMCALTriggerTypes.h>
17 #include <AliEMCALTriggerBoard.h>
18 
19 class TTree;
21 
23 {
24 public:
25 
27  AliEMCALTriggerSTU(AliEMCALTriggerSTUDCSConfig *dcsConf, const TVector2& rsize);
28  virtual ~AliEMCALTriggerSTU();
29 
30  virtual void Build(TString& str, Int_t i, Int_t** Map, const TVector2* rSize, Int_t triggerMapping);
31  virtual void L1(int type);
32 
33  virtual void ComputeThFromV0(int type, const Int_t M[]);
34 
35  virtual void SetThreshold(int type, Int_t v);
36  virtual Int_t GetThreshold(int type);
37  void SetActive(Bool_t active) { fActive = active; }
38 
39  virtual Int_t GetMedianEnergy();
40  bool IsActive() const { return fActive; }
41  virtual void SetBkgRho(Int_t fRho) { fBkgRho = fRho; }
42 
43  virtual void Reset();
44 
46 
47 protected:
48 
51 
52 private:
53 
54  Int_t fGammaTh[2];
55  Int_t fJetTh[2];
56  Int_t fBkgRho;
57  Bool_t fActive;
58 
60 
62  ClassDef(AliEMCALTriggerSTU, 2) ;
64 
65 };
66 
67 #endif //ALIEMCALTRIGGERSTU_H
virtual AliEMCALTriggerSTUDCSConfig * GetDCSConfig() const
virtual void SetBkgRho(Int_t fRho)
Int_t fGammaTh[2]
Gamma threshold.
virtual ~AliEMCALTriggerSTU()
Destructor.
virtual Int_t ** Map()
Bool_t fActive
Active status for STU, if inactive the L1 trigger will not be simulated.
AliEMCALTriggerSTUDCSConfig * fDCSConfig
Int_t fJetTh[2]
Jet threshold.
EMCal trigger board super class.
#define M(PID)
Definition: AliPID.cxx:49
bool IsActive() const
virtual void Build(TString &str, Int_t i, Int_t **Map, const TVector2 *rSize, Int_t triggerMapping)
Build.
AliEMCALTriggerSTU()
Default constructor.
EMCal trigger STU handling.
virtual Int_t GetMedianEnergy()
Calculate median energy of patches.
EMCal trigger STU DCS Config.
AliEMCALTriggerSTU & operator=(const AliEMCALTriggerSTU &rhs)
Int_t fBkgRho
BkgRho for L1 calculation. Calculated from the other STU.
virtual void ComputeThFromV0(int type, const Int_t M[])
Compute threshold from V0.
virtual Int_t GetThreshold(int type)
virtual void Reset()
Reset.
void SetActive(Bool_t active)
virtual void SetThreshold(int type, Int_t v)
Set threshold.
virtual void L1(int type)
L1.