CMS 3D CMS Logo

DTConfigManager.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
14 //
15 //--------------------------------------------------
16 #ifndef DT_CONFIG_MANAGER_H
17 #define DT_CONFIG_MANAGER_H
18 
19 //---------------
20 // C++ Headers --
21 //---------------
22 #include <map>
23 
24 //----------------------
25 // Base Class Headers --
26 //----------------------
38 
40 
41 //------------------------------------
42 // Collaborating Class Declarations --
43 //------------------------------------
44 
45 // ---------------------
46 // -- Class Interface --
47 // ---------------------
48 
50 public:
51  typedef std::map<DTBtiId, DTConfigBti> innerBtiMap;
52  typedef std::map<DTTracoId, DTConfigTraco> innerTracoMap;
53  typedef std::map<DTChamberId, innerBtiMap> BtiMap;
54  typedef std::map<DTChamberId, innerTracoMap> TracoMap;
55  typedef std::map<DTChamberId, DTConfigTSTheta> TSThetaMap;
56  typedef std::map<DTChamberId, DTConfigTSPhi> TSPhiMap;
57  typedef std::map<DTChamberId, DTConfigTrigUnit> TrigUnitMap;
58  typedef std::map<DTChamberId, DTConfigLUTs> LUTMap;
59  typedef std::map<DTSectCollId, DTConfigSectColl> SectCollMap;
60 
61 public:
64 
67 
69  const DTConfigBti* getDTConfigBti(DTBtiId) const;
70 
72  const std::map<DTBtiId, DTConfigBti>& getDTConfigBtiMap(DTChamberId) const;
73 
76 
78  const std::map<DTTracoId, DTConfigTraco>& getDTConfigTracoMap(DTChamberId) const;
79 
82 
85 
88 
91 
94 
97 
99  inline bool getDTTPGDebug() const { return my_dttpgdebug; };
100 
102  int getBXOffset() const;
103 
105  inline bool lutFromDB() const { return my_lutfromdb; }
106 
108  inline bool useAcceptParam() const { return my_acceptparam; }
109 
111  inline bool CCBConfigValidity() const { return my_CCBvalid; }
112 
115 
118 
120  inline void setDTConfigTSTheta(DTChamberId chambid, DTConfigTSTheta conf) { my_tsthetamap[chambid] = conf; };
121 
123  inline void setDTConfigTSPhi(DTChamberId chambid, DTConfigTSPhi conf) { my_tsphimap[chambid] = conf; };
124 
126  void setDTConfigTrigUnit(DTChamberId chambid, DTConfigTrigUnit conf) { my_trigunitmap[chambid] = conf; };
127 
129  void setDTConfigLUTs(DTChamberId chambid, DTConfigLUTs conf) { my_lutmap[chambid] = conf; };
130 
132  void setDTConfigSectColl(DTSectCollId sectcollid, DTConfigSectColl conf) { my_sectcollmap[sectcollid] = conf; };
133 
135  void setDTConfigPedestals(DTConfigPedestals pedestals) { my_pedestals = pedestals; };
136 
138  inline void setDTTPGDebug(bool debug) { my_dttpgdebug = debug; }
139 
141  inline void setLutFromDB(bool lutFromDB) { my_lutfromdb = lutFromDB; }
142 
144  inline void setUseAcceptParam(bool acceptparam) { my_acceptparam = acceptparam; }
145 
147  inline void setCCBConfigValidity(bool CCBValid) { my_CCBvalid = CCBValid; }
148 
150  void dumpLUTParam(DTChamberId& chambid) const; /* SV 091111 */
151 
152 private:
153  // maps for the whole config structure
154  BtiMap my_btimap;
155  TracoMap my_tracomap;
156  TSThetaMap my_tsthetamap;
157  TSPhiMap my_tsphimap;
158  TrigUnitMap my_trigunitmap;
159  LUTMap my_lutmap;
160  SectCollMap my_sectcollmap;
162 
164 
168 };
169 
170 #endif
const DTConfigLUTs * getDTConfigLUTs(DTChamberId) const
Get desired LUT configuration.
std::map< DTBtiId, DTConfigBti > innerBtiMap
void setLutFromDB(bool lutFromDB)
Set lut from DB flag.
void dumpLUTParam(DTChamberId &chambid) const
Dump luts string commands from configuration parameters.
void setDTTPGDebug(bool debug)
SetGlobalDebug flag.
void setDTConfigTSTheta(DTChamberId chambid, DTConfigTSTheta conf)
Set DTConfigTSTheta for desired chip.
void setUseAcceptParam(bool acceptparam)
Set the use of Bti acceptance parameters (LL,LH,CL,CH,RL,RH)
const DTConfigSectColl * getDTConfigSectColl(DTSectCollId) const
Get desired SectorCollector configuration.
TSThetaMap my_tsthetamap
int getBXOffset() const
Get BX Offset for a given vdrift config.
DTConfigPedestals my_pedestals
void setDTConfigTraco(DTTracoId, DTConfigTraco)
Set DTConfigTraco for desired chip.
void setDTConfigBti(DTBtiId, DTConfigBti)
Set DTConfigBti for desired chip.
const DTConfigTraco * getDTConfigTraco(DTTracoId) const
Get desired TRACO configuration.
const std::map< DTBtiId, DTConfigBti > & getDTConfigBtiMap(DTChamberId) const
Get desired BTI configuration map for a given DTChamber.
std::map< DTChamberId, DTConfigTrigUnit > TrigUnitMap
std::map< DTChamberId, innerTracoMap > TracoMap
void setDTConfigTSPhi(DTChamberId chambid, DTConfigTSPhi conf)
Set DTConfigTSPhi for desired chip.
std::map< DTChamberId, DTConfigLUTs > LUTMap
std::map< DTSectCollId, DTConfigSectColl > SectCollMap
bool getDTTPGDebug() const
Get global debug flag.
bool CCBConfigValidity() const
flag for CCB configuration validity
const std::map< DTTracoId, DTConfigTraco > & getDTConfigTracoMap(DTChamberId) const
Get desired TRACO configuration map for a given DTChamber.
void setDTConfigLUTs(DTChamberId chambid, DTConfigLUTs conf)
Set DTConfigLUTs for desired chamber.
const DTConfigBti * getDTConfigBti(DTBtiId) const
Get desired BTI configuration.
void setDTConfigPedestals(DTConfigPedestals pedestals)
Set DTConfigPedestals configuration.
void setDTConfigSectColl(DTSectCollId sectcollid, DTConfigSectColl conf)
Set DTConfigSectColl for desired chip.
#define debug
Definition: HDRShower.cc:19
std::map< DTChamberId, DTConfigTSPhi > TSPhiMap
bool lutFromDB() const
Lut from DB flag.
TrigUnitMap my_trigunitmap
void setCCBConfigValidity(bool CCBValid)
Set the flag for CCB configuration validity.
std::map< DTTracoId, DTConfigTraco > innerTracoMap
DTConfigManager()
Constructor.
const DTConfigTSPhi * getDTConfigTSPhi(DTChamberId) const
Get desired Trigger Server Phi configuration.
~DTConfigManager()
Destructor.
void setDTConfigTrigUnit(DTChamberId chambid, DTConfigTrigUnit conf)
Set DTConfigTrigUnit for desired chamber.
std::map< DTChamberId, DTConfigTSTheta > TSThetaMap
const DTConfigTSTheta * getDTConfigTSTheta(DTChamberId) const
Get desired Trigger Server Theta configuration.
SectCollMap my_sectcollmap
bool useAcceptParam() const
Use Bti acceptance parameters (LL,LH,CL,CH,RL,RH)
std::map< DTChamberId, innerBtiMap > BtiMap
const DTConfigPedestals * getDTConfigPedestals() const
Get desired Pedestals configuration.
const DTConfigTrigUnit * getDTConfigTrigUnit(DTChamberId) const
Get desired Trigger Unit configuration.