AliRoot Core  3dc7879 (3dc7879)
AliEMCALTriggerDCSConfig.h
Go to the documentation of this file.
1 #ifndef ALIEMCALTRIGGERDCSCONFIG_H
2 #define ALIEMCALTRIGGERDCSCONFIG_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 "TObject.h"
17 #include "TClonesArray.h"
18 #include <iosfwd>
19 #include <string>
20 
23 
24 class AliEMCALTriggerDCSConfig : public TObject
25 {
26 
27 public:
28 
30  virtual ~AliEMCALTriggerDCSConfig();
31 
38  bool operator==(const AliEMCALTriggerDCSConfig &other) const;
39 
49  friend std::ostream &operator<<(std::ostream &stream, const AliEMCALTriggerDCSConfig &config);
50 
56  std::string ToJSON() const;
57 
58  void SetTRUArr(TClonesArray* const ta) { fTRUArr = ta; }
59  inline void SetSTUObj(AliEMCALTriggerSTUDCSConfig* so, Bool_t isDCAL = false);
60 
61  TClonesArray* GetTRUArr() const { return fTRUArr; }
62 
63  inline AliEMCALTriggerSTUDCSConfig* GetSTUDCSConfig(Bool_t isDCAL = false) const;
65 
76  bool IsTRUEnabled(int iTRU) const;
77 
78 private:
79 
80  AliEMCALTriggerDCSConfig (const AliEMCALTriggerDCSConfig &cd); // Not implemented
81  AliEMCALTriggerDCSConfig &operator=(const AliEMCALTriggerDCSConfig &cd); // Not implemented
82 
83  TClonesArray* fTRUArr;
86 
88  ClassDef(AliEMCALTriggerDCSConfig,2) ;
90 
91 };
92 
94  if(isDCAL) fSTUDCAL = so;
95  else fSTUObj = so; }
96 
98  if(isDCAL) return fSTUDCAL;
99  return fSTUObj; }
100 
101 #endif //ALIEMCALTRIGGERDCSCONFIG_H
102 
TClonesArray * GetTRUArr() const
AliEMCALTriggerSTUDCSConfig * GetSTUDCSConfig(Bool_t isDCAL=false) const
AliEMCALTriggerTRUDCSConfig * GetTRUDCSConfig(Int_t iTRU) const
AliEMCALTriggerDCSConfig & operator=(const AliEMCALTriggerDCSConfig &cd)
TClonesArray * fTRUArr
TRU array.
bool IsTRUEnabled(int iTRU) const
Check whether TRU is enabled.
void SetSTUObj(AliEMCALTriggerSTUDCSConfig *so, Bool_t isDCAL=false)
EMCal trigger STU DCS Config.
virtual ~AliEMCALTriggerDCSConfig()
Destructor.
void SetTRUArr(TClonesArray *const ta)
AliEMCALTriggerSTUDCSConfig * fSTUDCAL
STU of DCAL.
friend std::ostream & operator<<(std::ostream &stream, const AliEMCALTriggerDCSConfig &config)
Streaming operator for trigger DCS config.
bool operator==(const AliEMCALTriggerDCSConfig &other) const
Equalty operator.
std::string ToJSON() const
Serialize object to JSON format.
AliEMCALTriggerSTUDCSConfig * fSTUObj
STU.
AliEMCALTriggerDCSConfig()
Default constructor.