Line data Source code
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 : /*
7 :
8 :
9 :
10 :
11 : Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
12 : */
13 :
14 : #include "TObject.h"
15 : #include "TClonesArray.h"
16 :
17 : class AliEMCALTriggerSTUDCSConfig;
18 : class AliEMCALTriggerTRUDCSConfig;
19 :
20 : class AliEMCALTriggerDCSConfig : public TObject
21 : {
22 : public:
23 :
24 : AliEMCALTriggerDCSConfig();
25 : virtual ~AliEMCALTriggerDCSConfig();
26 :
27 0 : void SetTRUArr(TClonesArray* const ta) { fTRUArr = ta; }
28 : inline void SetSTUObj(AliEMCALTriggerSTUDCSConfig* so, Bool_t isDCAL = false);
29 :
30 0 : TClonesArray* GetTRUArr() const { return fTRUArr; }
31 : inline AliEMCALTriggerSTUDCSConfig* GetSTUDCSConfig(Bool_t isDCAL = false) const;
32 120 : AliEMCALTriggerTRUDCSConfig* GetTRUDCSConfig(Int_t iTRU) const { return (AliEMCALTriggerTRUDCSConfig*)fTRUArr->At(iTRU); }
33 :
34 : private:
35 :
36 : AliEMCALTriggerDCSConfig(const AliEMCALTriggerDCSConfig &cd); // Not implemented
37 : AliEMCALTriggerDCSConfig &operator=(const AliEMCALTriggerDCSConfig &cd); // Not implemented
38 :
39 : TClonesArray* fTRUArr; // TRU array
40 : AliEMCALTriggerSTUDCSConfig* fSTUObj; // STU
41 : AliEMCALTriggerSTUDCSConfig* fSTUDCAL; // STU of DCAL
42 :
43 58 : ClassDef(AliEMCALTriggerDCSConfig,2) //
44 : };
45 :
46 : void AliEMCALTriggerDCSConfig::SetSTUObj(AliEMCALTriggerSTUDCSConfig* so, Bool_t isDCAL) {
47 0 : if(isDCAL)
48 0 : fSTUDCAL = so;
49 : else
50 0 : fSTUObj = so;
51 0 : }
52 :
53 : AliEMCALTriggerSTUDCSConfig* AliEMCALTriggerDCSConfig::GetSTUDCSConfig(Bool_t isDCAL) const{
54 2 : if(isDCAL)
55 0 : return fSTUDCAL;
56 2 : return fSTUObj;
57 2 : }
58 :
59 : #endif
60 :
|