AliRoot Core  3dc7879 (3dc7879)
AliEMCALTriggerTRUDCSConfig.h
Go to the documentation of this file.
1 #ifndef ALIEMCALTRIGGERTRUDCSCONFIG_H
2 #define ALIEMCALTRIGGERTRUDCSCONFIG_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 //________________________________________________
15 //________________________________________________
16 
17 #include "TObject.h"
18 #include <iosfwd>
19 
20 class AliEMCALTriggerTRUDCSConfig : public TObject
21 {
22 
23 public:
24 
27 
34  bool operator==(const AliEMCALTriggerTRUDCSConfig &other) const;
35 
41  friend std::ostream &operator<<(std::ostream &stream, const AliEMCALTriggerTRUDCSConfig &other);
42 
48  std::string ToJSON() const;
49 
50  void SetSELPF( UInt_t pf) { fSELPF = pf; }
51  void SetL0SEL( UInt_t la) { fL0SEL = la; }
52  void SetL0COSM( UInt_t lc) { fL0COSM = lc; }
53  void SetGTHRL0( UInt_t lg) { fGTHRL0 = lg; }
54  void SetMaskReg(UInt_t msk, Int_t pos) { fMaskReg[pos] = msk; }
55  void SetRLBKSTU(UInt_t rb) { fRLBKSTU = rb; }
56  void SetFw( UInt_t fw) { fFw = fw; }
57 
58  UInt_t GetSELPF() const { return fSELPF; }
59  UInt_t GetL0SEL() const { return fL0SEL; }
60  UInt_t GetL0COSM() const { return fL0COSM; }
61  UInt_t GetGTHRL0() const { return fGTHRL0; }
62  UInt_t GetMaskReg(Int_t pos) const { return fMaskReg[pos];}
63  UInt_t GetRLBKSTU() const { return fRLBKSTU; }
64  UInt_t GetFw() const { return fFw; }
65 
66  Int_t GetSegmentation();
67 
68 protected:
69 
72 
73 private:
74 
75  UInt_t fSELPF;
76  UInt_t fL0SEL;
77  UInt_t fL0COSM;
78  UInt_t fGTHRL0;
79  UInt_t fMaskReg[6];
80  UInt_t fRLBKSTU;
81  UInt_t fFw;
82 
84  ClassDef(AliEMCALTriggerTRUDCSConfig,4) ;
86 
87 };
88 
89 #endif // ALIEMCALTRIGGERTRUDCSCONFIG_H
void SetMaskReg(UInt_t msk, Int_t pos)
friend std::ostream & operator<<(std::ostream &stream, const AliEMCALTriggerTRUDCSConfig &other)
Streaming operator.
AliEMCALTriggerTRUDCSConfig()
Default constructor.
bool operator==(const AliEMCALTriggerTRUDCSConfig &other) const
equalty operator
UInt_t fRLBKSTU
TRU circular buffer rollback.
AliEMCALTriggerTRUDCSConfig & operator=(const AliEMCALTriggerTRUDCSConfig &cd)
UInt_t fMaskReg[6]
6*16 = 96 mask bits per TRU
std::string ToJSON() const
Serialize object to JSON format.