AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONGlobalCrateConfig.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 // $Id$
5 
11 
12 #ifndef ALI_MUON_GLOBAL_CRATE_CONFIG_H
13 #define ALI_MUON_GLOBAL_CRATE_CONFIG_H
14 
15 #include <TNamed.h>
16 #include <TString.h>
17 
18 class AliMUONGlobalCrateConfig : public TNamed {
19 
20  public:
22  virtual ~AliMUONGlobalCrateConfig();
23 
24  // methods
25  Int_t ReadData(const TString& fileName = "");
26 
27  // global crate enable
29  void SetGlobalCrateEnable(UInt_t enable) {fGlobalCrateEnable = enable;}
31  UInt_t GetGlobalCrateEnable() const {return fGlobalCrateEnable;}
32 
33  // Jtag
35  ULong_t GetJtagVmeAddr() const {return fJtagVmeAddr;}
37  void SetJtagVmeAddr(ULong_t addr) {fJtagVmeAddr = addr;}
38 
40  UInt_t GetJtagClockDiv() const {return fJtagClockDiv;}
42  void SetJtagClockDiv(UInt_t clk) {fJtagClockDiv = clk;}
43 
45  UInt_t GetJtagRxPhase() const {return fJtagRxPhase;}
47  void SetJtagRxPhase(UInt_t rx) {fJtagRxPhase = rx;}
48 
50  UInt_t GetJtagRdDelay() const {return fJtagRdDelay;}
52  void SetJtagRdDelay(UInt_t rd) {fJtagRdDelay = rd;}
53 
55  Bool_t GetEnableJtag(Int_t index) const;
57  void SetEnableJtag(UChar_t en) {fEnableJtag = en;}
59  UChar_t GetEnableJtag() const {return fEnableJtag;}
60 
62  TString GetJtagCrateName(Int_t jtagLine, Int_t index) const;
64  void SetJtagCrateName(Int_t index, TString name);
65 
66  // first Darc Board
68  ULong_t GetFirstDarcVmeAddr() const {return fFirstDarcVmeAddr;}
70  void SetFirstDarcVmeAddr(ULong_t addr) {fFirstDarcVmeAddr = addr;}
71 
73  Int_t GetFirstDarcType() const {return fFirstDarcType;}
75  void SetFirstDarcType(Int_t type) {fFirstDarcType = type;}
76 
78  UChar_t GetFirstDarcDisable() const {return fFirstDarcDisable;}
80  Bool_t GetFirstDarcDisable(Int_t iCrate) const {return !((fFirstDarcDisable >> iCrate) & 0x1);}
82  void SetFirstDarcDisable(UChar_t en) {fFirstDarcDisable = en;}
83 
85  UInt_t GetFirstDarcL0Delay() const {return fFirstDarcL0Delay;}
87  void SetFirstDarcL0Delay(UInt_t delay) {fFirstDarcL0Delay = delay;}
88 
90  UInt_t GetFirstDarcL1TimeOut() const {return fFirstDarcL1TimeOut;}
92  void SetFirstDarcL1TimeOut(UInt_t time) {fFirstDarcL1TimeOut = time;}
93 
95  UInt_t GetFirstDarcGlobalL0() const {return fFirstDarcGlobalL0;}
97  void SetFirstDarcGlobalL0(UInt_t time) {fFirstDarcGlobalL0 = time;}
98 
100  UInt_t GetFirstDarcConfig() const {return fFirstDarcConfig;}
102  void SetFirstDarcConfig(UInt_t conf) {fFirstDarcConfig = conf;}
103 
104  // second Darc Board
106  ULong_t GetSecondDarcVmeAddr() const {return fSecondDarcVmeAddr;}
108  void SetSecondDarcVmeAddr(ULong_t addr) {fSecondDarcVmeAddr = addr;}
109 
111  Int_t GetSecondDarcType() const {return fSecondDarcType;}
113  void SetSecondDarcType(Int_t type) {fSecondDarcType = type;}
114 
116  UChar_t GetSecondDarcDisable() const {return fSecondDarcDisable;}
118  Bool_t GetSecondDarcDisable(Int_t iCrate) const {return !((fSecondDarcDisable >> iCrate) & 0x1);}
120  void SetSecondDarcDisable(UChar_t en) {fSecondDarcDisable = en;}
121 
123  UInt_t GetSecondDarcL0Delay() const {return fSecondDarcL0Delay;}
125  void SetSecondDarcL0Delay(UInt_t delay) {fSecondDarcL0Delay = delay;}
129  void SetSecondDarcL1TimeOut(UInt_t time) {fSecondDarcL1TimeOut = time;}
130 
134  void SetSecondDarcGlobalL0(UInt_t time) {fSecondDarcGlobalL0 = time;}
135 
137  UInt_t GetSecondDarcConfig() const {return fSecondDarcConfig;}
139  void SetSecondDarcConfig(UInt_t conf) {fSecondDarcConfig = conf;}
140 
141 
142  // global board
144  ULong_t GetGlobalVmeAddr() const {return fGlobalVmeAddr;}
146  void SetGlobalVmeAddr(ULong_t addr) {fGlobalVmeAddr = addr;}
147 
149  UInt_t GetGlobalRegister(Int_t index) const;
151  void SetGlobalRegister(Int_t index, UInt_t reg);
155  void SetGlobalMask(Int_t index, UInt_t mask);
157  UInt_t GetGlobalMask(Int_t index) const;
159  Bool_t GetMasksOn() const;
160 
161  // fet board
163  ULong_t GetFetVmeAddr() const {return fFetVmeAddr;}
165  void SetFetVmeAddr(ULong_t addr) {fFetVmeAddr = addr;}
166 
168  UInt_t GetFetRegister(Int_t index) const;
170  void SetFetRegister(Int_t index, UInt_t reg);
172  UInt_t* GetFetRegister() {return fFetRegisters;}
173 
174  //static members
176  const Char_t* GetJtagName() const {return fgkJtagName;}
178  const Char_t* GetFirstDarcName() const {return fgkFirstDarcName;}
180  const Char_t* GetSecondDarcName() const {return fgkSecondDarcName;}
182  const Char_t* GetGlobalName() const {return fgkGlobalName;}
184  const Char_t* GetFetName() const {return fgkFetName;}
185 
189  Int_t GetFetNofRegisters() const {return fgkFetNofRegisters;}
191  Int_t GetJtagNofLines() const {return fgkJtagNofLines;}
192 
193  private:
198 
199  // data members
201  ULong_t fJtagVmeAddr;
202  UInt_t fJtagClockDiv;
203  UInt_t fJtagRxPhase;
204  UInt_t fJtagRdDelay;
205  UChar_t fEnableJtag;
206  TString fJtagCrateName[16];
207 
215 
223 
224  ULong_t fGlobalVmeAddr;
225  UInt_t fGlobalRegisters[13];
226 
227  ULong_t fFetVmeAddr;
228  UInt_t fFetRegisters[7];
229 
230  static const Char_t* fgkJtagName;
231  static const Char_t* fgkFirstDarcName;
232  static const Char_t* fgkSecondDarcName;
233  static const Char_t* fgkGlobalName;
234  static const Char_t* fgkFetName;
235 
236  static const Int_t fgkGlobalNofRegisters;
237  static const Int_t fgkFetNofRegisters;
238  static const Int_t fgkJtagNofLines;
239 
240  ClassDef(AliMUONGlobalCrateConfig,3)
241 };
242 
243 #endif
244 
245 
246 
247 
248 
249 
250 
251 
252 
253 
254 
255 
256 
257 
void SetEnableJtag(UChar_t en)
Set Jtag enable word.
void SetJtagVmeAddr(ULong_t addr)
Set Jtag board VME address.
UChar_t GetFirstDarcDisable() const
Get disable word for First Darc board.
void SetFirstDarcDisable(UChar_t en)
Set disable word for First Darc board.
void SetFirstDarcType(Int_t type)
Get type for First Darc board.
TString GetJtagCrateName(Int_t jtagLine, Int_t index) const
Get Jtag Crate names.
The class defines the configuration of global crate.
static const Char_t * fgkFetName
FET Board name.
UInt_t fJtagRdDelay
Read delay for JTag.
ULong_t fSecondDarcVmeAddr
Second Darc Board VME Address.
ULong_t GetSecondDarcVmeAddr() const
Get Second Darc board VME address.
void SetSecondDarcGlobalL0(UInt_t time)
set global L0 delay for Second Darc board
UInt_t GetJtagClockDiv() const
Get Jtag board Clock Divider.
UInt_t GetGlobalMask(Int_t index) const
Get mask for the global input.
Int_t GetSecondDarcType() const
Get type for Second Darc board.
UChar_t GetSecondDarcDisable() const
Get disable word for Second Darc board.
UInt_t GetJtagRxPhase() const
Get Jtag board Rx Phase.
const Char_t * GetFetName() const
Get Global Name identifier.
void SetFirstDarcVmeAddr(ULong_t addr)
Get First Darc board VME address.
ULong_t GetJtagVmeAddr() const
Get Jtag board VME address.
void SetJtagClockDiv(UInt_t clk)
Set Jtag board Clock Divider.
void SetSecondDarcConfig(UInt_t conf)
set configuration for Second Darc board
static const Int_t fgkFetNofRegisters
Number of registers for Fet.
UInt_t fSecondDarcGlobalL0
Global L0 delay for this board.
UChar_t fFirstDarcDisable
disable the readout of the 8 crates connected to this board
Int_t GetJtagNofLines() const
Get number of JTag lines.
void SetSecondDarcType(Int_t type)
Set type for Second Darc board.
UInt_t GetGlobalCrateEnable() const
Get global crate enbale.
void SetFetRegister(Int_t index, UInt_t reg)
Set register for FET.
Bool_t GetFirstDarcDisable(Int_t iCrate) const
Get disable per regional crate for First Darc board.
Int_t GetFirstDarcType() const
Get type for First Darc board.
ULong_t fFirstDarcVmeAddr
First Darc Board VME Address.
UInt_t GetSecondDarcConfig() const
Get configuration for Second Darc board.
void SetFirstDarcL0Delay(UInt_t delay)
Set L0 Delay for First Darc board.
UInt_t GetJtagRdDelay() const
Get Jtag board Read out Delay.
void SetSecondDarcL1TimeOut(UInt_t time)
Set L1 Time Out for Second Darc board.
Bool_t GetSecondDarcDisable(Int_t iCrate) const
Get disable per regional crate for Second Darc board.
void SetSecondDarcL0Delay(UInt_t delay)
Set L0 Delay for Second Darc board.
ULong_t GetGlobalVmeAddr() const
Get Global board VME address.
UInt_t fFirstDarcL1TimeOut
L1 time out for this board.
static const Char_t * fgkFirstDarcName
First DARC board name.
ULong_t fJtagVmeAddr
JTag VME address.
Int_t GetFetNofRegisters() const
Get number of registers for FET.
void SetJtagRdDelay(UInt_t rd)
Set Jtag board Read out Delay.
UInt_t fJtagClockDiv
Clock Divider number for JTag.
static const Char_t * fgkSecondDarcName
Second DARC board name.
static const Char_t * fgkGlobalName
Global Board name.
UInt_t fFirstDarcConfig
Trigger configuration this board.
void SetFirstDarcGlobalL0(UInt_t time)
set global L0 delay for First Darc board
UInt_t fJtagRxPhase
Rx phase number for JTag.
UInt_t GetSecondDarcL1TimeOut() const
Get L1 Time Out for Second Darc board.
ULong_t fFetVmeAddr
Fet Board VME Address.
UInt_t GetFirstDarcL1TimeOut() const
Get L1 Time Out for First Darc board.
UInt_t fGlobalRegisters[13]
Global registers.
void SetFirstDarcL1TimeOut(UInt_t time)
Set L1 Time Out for First Darc board.
void SetGlobalVmeAddr(ULong_t addr)
Set Global board VME address.
UInt_t GetFirstDarcL0Delay() const
Get L0 Delay for First Darc board.
Bool_t GetMasksOn() const
Indicates if global masks are active on global inputs.
ULong_t fGlobalVmeAddr
Global Board VME Address.
Int_t fFirstDarcType
Type of the first Darc Board.
void SetFetVmeAddr(ULong_t addr)
Set FET board VME address.
const Char_t * GetSecondDarcName() const
Get Second Darc Name identifier.
static const Int_t fgkJtagNofLines
Number of lines for Jtag.
ULong_t GetFirstDarcVmeAddr() const
Get First Darc board VME address.
UInt_t fFirstDarcL0Delay
L0 delay for this board.
void SetFirstDarcConfig(UInt_t conf)
set configuration for First Darc board
void SetSecondDarcDisable(UChar_t en)
Set disable word for Second Darc board.
UInt_t fSecondDarcL0Delay
L0 delay for this board.
UInt_t GetFirstDarcConfig() const
Get configuration for First Darc board.
static const Int_t fgkGlobalNofRegisters
Number of registers for Global Board.
const Char_t * GetFirstDarcName() const
Get First Darc Name identifier.
void SetJtagCrateName(Int_t index, TString name)
Set Jtag Crate names.
UInt_t fFetRegisters[7]
Fet registers.
UInt_t fGlobalCrateEnable
Global Crate Enable.
UInt_t fFirstDarcGlobalL0
L0 global l0 delay this board.
const Char_t * GetJtagName() const
Get Jtag Name identifier.
UChar_t fSecondDarcDisable
disable the readout of the 8 crates connected to this board
UChar_t GetEnableJtag() const
Get Jtag enable word.
UInt_t GetSecondDarcL0Delay() const
Get L0 Delay for Second Darc board.
UInt_t fSecondDarcL1TimeOut
L1 time out for this board.
Int_t GetGlobalNofRegisters() const
Get number of registers for Global.
const Char_t * GetGlobalName() const
Get Global Name identifier.
UInt_t * GetFetRegister()
Set register word for FET.
TString fJtagCrateName[16]
Crate name for the Jtag lines.
void SetJtagRxPhase(UInt_t rx)
Set Jtag board Rx Phase.
void SetGlobalCrateEnable(UInt_t enable)
set global crate enbale
AliMUONGlobalCrateConfig & operator=(const AliMUONGlobalCrateConfig &rhs)
Not implemented.
static const Char_t * fgkJtagName
JTag Board name.
void SetSecondDarcVmeAddr(ULong_t addr)
Set Second Darc board VME address.
UInt_t fSecondDarcConfig
Trigger configuration this board.
Int_t ReadData(const TString &fileName="")
void SetGlobalMask(Int_t index, UInt_t mask)
Set mask for the global input.
UInt_t GetFirstDarcGlobalL0() const
Get global L0 delay for First Darc board.
UChar_t fEnableJtag
Enable mask for JTag lines.
UInt_t * GetGlobalRegister()
Get register word for Global.
void SetGlobalRegister(Int_t index, UInt_t reg)
Set register for Global.
UInt_t GetSecondDarcGlobalL0() const
Get global L0 delay for Second Darc board.
ULong_t GetFetVmeAddr() const
Get FET board VME address.
Int_t fSecondDarcType
Type of the first Darc Board.