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
162 
164 
168 };
169 
170 #endif
DTConfigManager::CCBConfigValidity
bool CCBConfigValidity() const
flag for CCB configuration validity
Definition: DTConfigManager.h:111
DTConfigManager::my_lutfromdb
bool my_lutfromdb
Definition: DTConfigManager.h:165
DTConfigManager::getDTConfigTraco
const DTConfigTraco * getDTConfigTraco(DTTracoId) const
Get desired TRACO configuration.
Definition: DTConfigManager.cc:87
DTTracoId
Definition: DTTracoId.h:34
DTConfigManager::getDTConfigLUTs
const DTConfigLUTs * getDTConfigLUTs(DTChamberId) const
Get desired LUT configuration.
Definition: DTConfigManager.cc:149
DTConfigSectColl
Definition: DTConfigSectColl.h:37
DTConfigManager::getDTTPGDebug
bool getDTTPGDebug() const
Get global debug flag.
Definition: DTConfigManager.h:99
DTConfigTraco
Definition: DTConfigTraco.h:37
DTConfigManager::lutFromDB
bool lutFromDB() const
Lut from DB flag.
Definition: DTConfigManager.h:105
DTConfigManager::my_btimap
BtiMap my_btimap
Definition: DTConfigManager.h:154
DTConfigManager::setDTConfigLUTs
void setDTConfigLUTs(DTChamberId chambid, DTConfigLUTs conf)
Set DTConfigLUTs for desired chamber.
Definition: DTConfigManager.h:129
DTConfigManager::my_sectcollmap
SectCollMap my_sectcollmap
Definition: DTConfigManager.h:160
DTConfigManager::TSThetaMap
std::map< DTChamberId, DTConfigTSTheta > TSThetaMap
Definition: DTConfigManager.h:55
DTBtiId.h
DTConfigManager::setDTConfigPedestals
void setDTConfigPedestals(DTConfigPedestals pedestals)
Set DTConfigPedestals configuration.
Definition: DTConfigManager.h:135
DTConfigTrigUnit.h
DTTracoId.h
DTConfigTSPhi.h
DTConfigManager::dumpLUTParam
void dumpLUTParam(DTChamberId &chambid) const
Dump luts string commands from configuration parameters.
Definition: DTConfigManager.cc:188
DTConfigBti
Definition: DTConfigBti.h:36
DTConfigManager::my_trigunitmap
TrigUnitMap my_trigunitmap
Definition: DTConfigManager.h:158
DTSectCollId.h
DTConfigManager::getDTConfigBti
const DTConfigBti * getDTConfigBti(DTBtiId) const
Get desired BTI configuration.
Definition: DTConfigManager.cc:58
DTConfigManager::innerTracoMap
std::map< DTTracoId, DTConfigTraco > innerTracoMap
Definition: DTConfigManager.h:52
DTConfigManager::TracoMap
std::map< DTChamberId, innerTracoMap > TracoMap
Definition: DTConfigManager.h:54
DTConfigManager::my_pedestals
DTConfigPedestals my_pedestals
Definition: DTConfigManager.h:161
DTConfigManager::setDTConfigTSTheta
void setDTConfigTSTheta(DTChamberId chambid, DTConfigTSTheta conf)
Set DTConfigTSTheta for desired chip.
Definition: DTConfigManager.h:120
DTConfigManager::setDTConfigTSPhi
void setDTConfigTSPhi(DTChamberId chambid, DTConfigTSPhi conf)
Set DTConfigTSPhi for desired chip.
Definition: DTConfigManager.h:123
DTConfigManager::setDTConfigTrigUnit
void setDTConfigTrigUnit(DTChamberId chambid, DTConfigTrigUnit conf)
Set DTConfigTrigUnit for desired chamber.
Definition: DTConfigManager.h:126
DTConfigTraco.h
debug
#define debug
Definition: HDRShower.cc:19
DTConfigTrigUnit
Definition: DTConfigTrigUnit.h:36
DTConfigManager::setDTTPGDebug
void setDTTPGDebug(bool debug)
SetGlobalDebug flag.
Definition: DTConfigManager.h:138
DTConfigManager::getDTConfigTSTheta
const DTConfigTSTheta * getDTConfigTSTheta(DTChamberId) const
Get desired Trigger Server Theta configuration.
Definition: DTConfigManager.cc:116
DTConfigManager::setUseAcceptParam
void setUseAcceptParam(bool acceptparam)
Set the use of Bti acceptance parameters (LL,LH,CL,CH,RL,RH)
Definition: DTConfigManager.h:144
DTConfigManager::LUTMap
std::map< DTChamberId, DTConfigLUTs > LUTMap
Definition: DTConfigManager.h:58
DTSectCollId
Definition: DTSectCollId.h:18
DTConfigManager::useAcceptParam
bool useAcceptParam() const
Use Bti acceptance parameters (LL,LH,CL,CH,RL,RH)
Definition: DTConfigManager.h:108
DTConfigManager::SectCollMap
std::map< DTSectCollId, DTConfigSectColl > SectCollMap
Definition: DTConfigManager.h:59
DTConfigManager::getDTConfigBtiMap
const std::map< DTBtiId, DTConfigBti > & getDTConfigBtiMap(DTChamberId) const
Get desired BTI configuration map for a given DTChamber.
Definition: DTConfigManager.cc:77
DTChamberId.h
DTConfigManager::setDTConfigTraco
void setDTConfigTraco(DTTracoId, DTConfigTraco)
Set DTConfigTraco for desired chip.
Definition: DTConfigManager.cc:183
DTConfigManager::setDTConfigBti
void setDTConfigBti(DTBtiId, DTConfigBti)
Set DTConfigBti for desired chip.
Definition: DTConfigManager.cc:178
DTConfigManager::setLutFromDB
void setLutFromDB(bool lutFromDB)
Set lut from DB flag.
Definition: DTConfigManager.h:141
DTConfigManager::my_acceptparam
bool my_acceptparam
Definition: DTConfigManager.h:166
DTConfigManager::getBXOffset
int getBXOffset() const
Get BX Offset for a given vdrift config.
Definition: DTConfigManager.cc:173
DTConfigManager::TSPhiMap
std::map< DTChamberId, DTConfigTSPhi > TSPhiMap
Definition: DTConfigManager.h:56
DTConfigManager::my_CCBvalid
bool my_CCBvalid
Definition: DTConfigManager.h:167
DTConfigManager::~DTConfigManager
~DTConfigManager()
Destructor.
Definition: DTConfigManager.cc:45
DTConfigLUTs.h
DTConfigManager::getDTConfigTrigUnit
const DTConfigTrigUnit * getDTConfigTrigUnit(DTChamberId) const
Get desired Trigger Unit configuration.
Definition: DTConfigManager.cc:138
DTConfigManager::getDTConfigPedestals
const DTConfigPedestals * getDTConfigPedestals() const
Get desired Pedestals configuration.
Definition: DTConfigManager.cc:171
DTBtiId
Definition: DTBtiId.h:32
DTConfigManager::setDTConfigSectColl
void setDTConfigSectColl(DTSectCollId sectcollid, DTConfigSectColl conf)
Set DTConfigSectColl for desired chip.
Definition: DTConfigManager.h:132
DTConfigTSPhi
Definition: DTConfigTSPhi.h:36
DTConfigManager
Definition: DTConfigManager.h:49
DTConfigPedestals
Definition: DTConfigPedestals.h:36
DTConfigManager::getDTConfigTracoMap
const std::map< DTTracoId, DTConfigTraco > & getDTConfigTracoMap(DTChamberId) const
Get desired TRACO configuration map for a given DTChamber.
Definition: DTConfigManager.cc:106
DTConfigManager::my_tsthetamap
TSThetaMap my_tsthetamap
Definition: DTConfigManager.h:156
DTConfigManager::innerBtiMap
std::map< DTBtiId, DTConfigBti > innerBtiMap
Definition: DTConfigManager.h:51
DTConfigTSTheta
Definition: DTConfigTSTheta.h:35
DTConfigManager::my_tsphimap
TSPhiMap my_tsphimap
Definition: DTConfigManager.h:157
DTConfigManager::DTConfigManager
DTConfigManager()
Constructor.
Definition: DTConfigManager.cc:39
DTConfigManager::BtiMap
std::map< DTChamberId, innerBtiMap > BtiMap
Definition: DTConfigManager.h:53
DTConfigManager::setCCBConfigValidity
void setCCBConfigValidity(bool CCBValid)
Set the flag for CCB configuration validity.
Definition: DTConfigManager.h:147
DTConfigManager::my_tracomap
TracoMap my_tracomap
Definition: DTConfigManager.h:155
DTConfigManager::getDTConfigTSPhi
const DTConfigTSPhi * getDTConfigTSPhi(DTChamberId) const
Get desired Trigger Server Phi configuration.
Definition: DTConfigManager.cc:127
DTChamberId
Definition: DTChamberId.h:14
DTConfigBti.h
DTConfigManager::my_dttpgdebug
bool my_dttpgdebug
Definition: DTConfigManager.h:163
DTConfigPedestals.h
DTConfigLUTs
Definition: DTConfigLUTs.h:36
DTConfigTSTheta.h
DTConfigManager::my_lutmap
LUTMap my_lutmap
Definition: DTConfigManager.h:159
DTConfigManager::getDTConfigSectColl
const DTConfigSectColl * getDTConfigSectColl(DTSectCollId) const
Get desired SectorCollector configuration.
Definition: DTConfigManager.cc:160
DTConfigSectColl.h
DTConfigManager::TrigUnitMap
std::map< DTChamberId, DTConfigTrigUnit > TrigUnitMap
Definition: DTConfigManager.h:57