CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
DTConfigManager Class Reference

#include <DTConfigManager.h>

Public Types

typedef std::map< DTChamberId,
innerBtiMap
BtiMap
 
typedef std::map< DTBtiId,
DTConfigBti
innerBtiMap
 
typedef std::map< DTTracoId,
DTConfigTraco
innerTracoMap
 
typedef std::map< DTChamberId,
DTConfigLUTs
LUTMap
 
typedef std::map< DTSectCollId,
DTConfigSectColl
SectCollMap
 
typedef std::map< DTChamberId,
innerTracoMap
TracoMap
 
typedef std::map< DTChamberId,
DTConfigTrigUnit
TrigUnitMap
 
typedef std::map< DTChamberId,
DTConfigTSPhi
TSPhiMap
 
typedef std::map< DTChamberId,
DTConfigTSTheta
TSThetaMap
 

Public Member Functions

bool CCBConfigValidity () const
 flag for CCB configuration validity More...
 
 DTConfigManager ()
 Constructor. More...
 
void dumpLUTParam (DTChamberId &chambid) const
 Dump luts string commands from configuration parameters. More...
 
int getBXOffset () const
 Get BX Offset for a given vdrift config. More...
 
const DTConfigBtigetDTConfigBti (DTBtiId) const
 Get desired BTI configuration. More...
 
const std::map< DTBtiId,
DTConfigBti > & 
getDTConfigBtiMap (DTChamberId) const
 Get desired BTI configuration map for a given DTChamber. More...
 
const DTConfigLUTsgetDTConfigLUTs (DTChamberId) const
 Get desired LUT configuration. More...
 
const DTConfigPedestalsgetDTConfigPedestals () const
 Get desired Pedestals configuration. More...
 
const DTConfigSectCollgetDTConfigSectColl (DTSectCollId) const
 Get desired SectorCollector configuration. More...
 
const DTConfigTracogetDTConfigTraco (DTTracoId) const
 Get desired TRACO configuration. More...
 
const std::map< DTTracoId,
DTConfigTraco > & 
getDTConfigTracoMap (DTChamberId) const
 Get desired TRACO configuration map for a given DTChamber. More...
 
const DTConfigTrigUnitgetDTConfigTrigUnit (DTChamberId) const
 Get desired Trigger Unit configuration. More...
 
const DTConfigTSPhigetDTConfigTSPhi (DTChamberId) const
 Get desired Trigger Server Phi configuration. More...
 
const DTConfigTSThetagetDTConfigTSTheta (DTChamberId) const
 Get desired Trigger Server Theta configuration. More...
 
bool getDTTPGDebug () const
 Get global debug flag. More...
 
bool lutFromDB () const
 Lut from DB flag. More...
 
void setCCBConfigValidity (bool CCBValid)
 Set the flag for CCB configuration validity. More...
 
void setDTConfigBti (DTBtiId, DTConfigBti)
 Set DTConfigBti for desired chip. More...
 
void setDTConfigLUTs (DTChamberId chambid, DTConfigLUTs conf)
 Set DTConfigLUTs for desired chamber. More...
 
void setDTConfigPedestals (DTConfigPedestals pedestals)
 Set DTConfigPedestals configuration. More...
 
void setDTConfigSectColl (DTSectCollId sectcollid, DTConfigSectColl conf)
 Set DTConfigSectColl for desired chip. More...
 
void setDTConfigTraco (DTTracoId, DTConfigTraco)
 Set DTConfigTraco for desired chip. More...
 
void setDTConfigTrigUnit (DTChamberId chambid, DTConfigTrigUnit conf)
 Set DTConfigTrigUnit for desired chamber. More...
 
void setDTConfigTSPhi (DTChamberId chambid, DTConfigTSPhi conf)
 Set DTConfigTSPhi for desired chip. More...
 
void setDTConfigTSTheta (DTChamberId chambid, DTConfigTSTheta conf)
 Set DTConfigTSTheta for desired chip. More...
 
void setDTTPGDebug (bool debug)
 SetGlobalDebug flag. More...
 
void setLutFromDB (bool lutFromDB)
 Set lut from DB flag. More...
 
void setUseAcceptParam (bool acceptparam)
 Set the use of Bti acceptance parameters (LL,LH,CL,CH,RL,RH) More...
 
bool useAcceptParam () const
 Use Bti acceptance parameters (LL,LH,CL,CH,RL,RH) More...
 
 ~DTConfigManager ()
 Destructor. More...
 

Private Attributes

bool my_acceptparam
 
BtiMap my_btimap
 
bool my_CCBvalid
 
bool my_dttpgdebug
 
bool my_lutfromdb
 
LUTMap my_lutmap
 
DTConfigPedestals my_pedestals
 
SectCollMap my_sectcollmap
 
TracoMap my_tracomap
 
TrigUnitMap my_trigunitmap
 
TSPhiMap my_tsphimap
 
TSThetaMap my_tsthetamap
 

Detailed Description

DTTPG Configuration manager Includes config classes for every single chip

Author
C. Battilana april 07 : SV DTConfigTrigUnit added april 07 : CB Removed DTGeometry dependecies september 08 : SV LUTs added 091106 SV flags for DB/geometry lut or bti acceptance compute

Definition at line 50 of file DTConfigManager.h.

Member Typedef Documentation

Definition at line 56 of file DTConfigManager.h.

Definition at line 54 of file DTConfigManager.h.

Definition at line 55 of file DTConfigManager.h.

Definition at line 61 of file DTConfigManager.h.

Definition at line 62 of file DTConfigManager.h.

Definition at line 57 of file DTConfigManager.h.

Definition at line 60 of file DTConfigManager.h.

Definition at line 59 of file DTConfigManager.h.

Definition at line 58 of file DTConfigManager.h.

Constructor & Destructor Documentation

DTConfigManager::DTConfigManager ( )

Constructor.

Definition at line 40 of file DTConfigManager.cc.

40  {
41 
42 }
DTConfigManager::~DTConfigManager ( )

Destructor.

Definition at line 48 of file DTConfigManager.cc.

48  {
49 
50  my_sectcollmap.clear();
51  my_trigunitmap.clear();
52  my_tsphimap.clear();
53  my_tsthetamap.clear();
54  my_tracomap.clear();
55  my_btimap.clear();
56 
57 }
TSThetaMap my_tsthetamap
TrigUnitMap my_trigunitmap
SectCollMap my_sectcollmap

Member Function Documentation

bool DTConfigManager::CCBConfigValidity ( ) const
inline

flag for CCB configuration validity

Definition at line 115 of file DTConfigManager.h.

References my_CCBvalid.

115 { return my_CCBvalid; }
void DTConfigManager::dumpLUTParam ( DTChamberId chambid) const

Dump luts string commands from configuration parameters.

Definition at line 243 of file DTConfigManager.cc.

References DTConfigLUTs::D(), TauDecayModes::dec, groupFilesInBlocks::fout, DTConfigLUTs::IEEE32toDSP(), mergeVDriftHistosByStation::name, DTChamberId::sector(), DTChamberId::station(), DTChamberId::wheel(), DTConfigLUTs::Wheel(), and DTConfigLUTs::Xcn().

Referenced by DTTrig::dumpLuts().

243  {
244 
245  // open txt file
246  string name = "Lut_from_param";
247  name += ".txt";
248 
249  ofstream fout;
250  fout.open(name.c_str(),ofstream::app);
251 
252  // get wheel, station, sector from chamber
253  int wh = chambid.wheel();
254  int st = chambid.station();
255  int se = chambid.sector();
256 
257  //cout << "Dumping lut command for wh " << wh << " st " << st << " se " << se << endl;
258 
259  fout << wh;
260  fout << "\t" << st;
261  fout << "\t" << se;
262 
263  // get parameters from configuration
264  // get DTConfigLUTs for this chamber
265  const DTConfigLUTs* _confLUTs = getDTConfigLUTs(chambid);
266  short int btic = getDTConfigTraco(DTTracoId(wh,st,se,1))->BTIC();
267  float d = _confLUTs->D();
268  float xcn = _confLUTs->Xcn();
269  //fout << "\td\t" << d << "\txcn\t" << xcn << "\t";
270  //fout << "btic\t" << btic << "\t";
271 
272  // *** dump TRACO LUT command
273  fout << "\tA8";
274  short int Low_byte = (btic & 0x00FF); // output in hex bytes format with zero padding
275  short int High_byte =( btic>>8 & 0x00FF);
276  fout << setw(2) << setfill('0') << hex << High_byte << setw(2) << setfill('0') << Low_byte;
277 
278  // convert parameters from IEE32 float to DSP float format
279  short int DSPmantissa = 0;
280  short int DSPexp = 0;
281 
282  // d parameter conversion and dump
283  _confLUTs->IEEE32toDSP(d, DSPmantissa, DSPexp);
284  Low_byte = (DSPmantissa & 0x00FF); // output in hex bytes format with zero padding
285  High_byte =( DSPmantissa>>8 & 0x00FF);
286  fout << setw(2) << setfill('0') << hex << High_byte << setw(2) << setfill('0') << Low_byte;
287  Low_byte = (DSPexp & 0x00FF);
288  High_byte =( DSPexp>>8 & 0x00FF);
289  fout << setw(2) << setfill('0') << High_byte << setw(2) << setfill('0') << Low_byte;
290 
291  // xnc parameter conversion and dump
292  DSPmantissa = 0;
293  DSPexp = 0;
294  _confLUTs->IEEE32toDSP(xcn, DSPmantissa, DSPexp);
295  Low_byte = (DSPmantissa & 0x00FF); // output in hex bytes format with zero padding
296  High_byte =( DSPmantissa>>8 & 0x00FF);
297  fout << setw(2) << setfill('0') << hex << High_byte << setw(2) << setfill('0') << Low_byte;
298  Low_byte = (DSPexp & 0x00FF);
299  High_byte =( DSPexp>>8 & 0x00FF);
300  fout << setw(2) << setfill('0') << High_byte << setw(2) << setfill('0') << Low_byte;
301 
302  // sign bits
303  short int xcn_sign = _confLUTs->Wheel();
304  Low_byte = (xcn_sign & 0x00FF); // output in hex bytes format with zero padding
305  High_byte =( xcn_sign>>8 & 0x00FF);
306  fout << setw(2) << setfill('0') << hex << High_byte << setw(2) << setfill('0') << Low_byte << dec << "\n";
307 
308  fout.close();
309 
310  return;
311 
312 }
const DTConfigLUTs * getDTConfigLUTs(DTChamberId) const
Get desired LUT configuration.
int Wheel() const
wheel sign (-1 or +1)
Definition: DTConfigLUTs.h:65
int BTIC() const
BTIC traco parameter: must be equal to Btis ST parameter.
Definition: DTConfigTraco.h:73
void IEEE32toDSP(float f, short int &DSPmantissa, short int &DSPexp) const
IEEE32 to DSP conversion.
const DTConfigTraco * getDTConfigTraco(DTTracoId) const
Get desired TRACO configuration.
int sector() const
Definition: DTChamberId.h:61
float Xcn() const
Xcn: distance vertex to normal, unit cm.
Definition: DTConfigLUTs.h:62
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
float D() const
d: distance vertex to normal, unit cm.
Definition: DTConfigLUTs.h:59
int DTConfigManager::getBXOffset ( ) const

Get BX Offset for a given vdrift config.

Definition at line 222 of file DTConfigManager.cc.

Referenced by DTTrig::getBXOffset().

222  {
223 
224  int ST = static_cast<int>(getDTConfigBti(DTBtiId(1,1,1,1,1))->ST());
225  return (ST/2 + ST%2);
226 
227 }
float ST() const
Max drift time in 12.5 ns steps.
Definition: DTConfigBti.h:65
const DTConfigBti * getDTConfigBti(DTBtiId) const
Get desired BTI configuration.
const DTConfigBti * DTConfigManager::getDTConfigBti ( DTBtiId  btiid) const

Get desired BTI configuration.

Definition at line 63 of file DTConfigManager.cc.

References DTBtiId::bti(), DTSuperLayerId::chamberId(), gather_cfg::cout, DTChamberId::sector(), DTBtiId::sector(), DTBtiId::SLId(), DTChamberId::station(), DTBtiId::station(), DTBtiId::superlayer(), DTChamberId::wheel(), and DTBtiId::wheel().

63  {
64 
65  DTChamberId chambid = btiid.SLId().chamberId();
66  BtiMap::const_iterator biter1 = my_btimap.find(chambid);
67  if (biter1 == my_btimap.end()){
68  std::cout << "DTConfigManager::getConfigBti : Chamber (" << chambid.wheel()
69  << "," << chambid.sector()
70  << "," << chambid.station()
71  << ") not found, return 0" << std::endl;
72  return 0;
73  }
74 
75  innerBtiMap::const_iterator biter2 = (*biter1).second.find(btiid);
76  if (biter2 == (*biter1).second.end()){
77  std::cout << "DTConfigManager::getConfigBti : BTI (" << btiid.wheel()
78  << "," << btiid.sector()
79  << "," << btiid.station()
80  << "," << btiid.superlayer()
81  << "," << btiid.bti()
82  << ") not found, return 0" << std::endl;
83  return 0;
84  }
85  return &(*biter2).second;
86 
87 }
DTChamberId chamberId() const
Return the corresponding ChamberId.
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:67
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:73
int sector() const
Returns sector number.
Definition: DTBtiId.h:71
int station() const
Returns station number.
Definition: DTBtiId.h:69
int bti() const
Returns the bti.
Definition: DTBtiId.h:75
int sector() const
Definition: DTChamberId.h:61
tuple cout
Definition: gather_cfg.py:121
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
DTSuperLayerId SLId() const
Returns the superlayer id.
Definition: DTBtiId.h:77
const std::map< DTBtiId, DTConfigBti > & DTConfigManager::getDTConfigBtiMap ( DTChamberId  chambid) const

Get desired BTI configuration map for a given DTChamber.

Definition at line 89 of file DTConfigManager.cc.

References gather_cfg::cout, DTChamberId::sector(), DTChamberId::station(), and DTChamberId::wheel().

Referenced by DTConfigDBProducer::checkDTCCBConfig(), and DTBtiCard::setConfig().

89  {
90 
91  BtiMap::const_iterator biter = my_btimap.find(chambid);
92  if (biter == my_btimap.end()){
93  std::cout << "DTConfigManager::getConfigBtiMap : Chamber (" << chambid.wheel()
94  << "," << chambid.sector()
95  << "," << chambid.station()
96  << ") not found, return a reference to the end of the map" << std::endl;
97  }
98 
99  return (*biter).second;
100 
101 }
int sector() const
Definition: DTChamberId.h:61
tuple cout
Definition: gather_cfg.py:121
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
const DTConfigLUTs * DTConfigManager::getDTConfigLUTs ( DTChamberId  chambid) const

Get desired LUT configuration.

Definition at line 187 of file DTConfigManager.cc.

References gather_cfg::cout, DTChamberId::sector(), DTChamberId::station(), and DTChamberId::wheel().

Referenced by DTTracoCard::setConfig().

187  {
188 
189  LUTMap::const_iterator lutiter = my_lutmap.find(chambid);
190  if (lutiter == my_lutmap.end()){
191  std::cout << "DTConfigManager::getConfigLUTs : Chamber (" << chambid.wheel()
192  << "," << chambid.sector()
193  << "," << chambid.station()
194  << ") not found, return 0" << std::endl;
195  return 0;
196  }
197 
198  return &(*lutiter).second;
199 
200 }
int sector() const
Definition: DTChamberId.h:61
tuple cout
Definition: gather_cfg.py:121
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
const DTConfigPedestals * DTConfigManager::getDTConfigPedestals ( ) const

Get desired Pedestals configuration.

Definition at line 216 of file DTConfigManager.cc.

Referenced by DTBtiCard::setConfig().

216  {
217 
218  return &my_pedestals;
219 
220 }
DTConfigPedestals my_pedestals
const DTConfigSectColl * DTConfigManager::getDTConfigSectColl ( DTSectCollId  scid) const

Get desired SectorCollector configuration.

Definition at line 202 of file DTConfigManager.cc.

References gather_cfg::cout, DTSectCollId::sector(), and DTSectCollId::wheel().

Referenced by DTSectColl::setConfig().

202  {
203 
204  SectCollMap::const_iterator sciter = my_sectcollmap.find(scid);
205  if (sciter == my_sectcollmap.end()){
206  std::cout << "DTConfigManager::getConfigSectColl : SectorCollector (" << scid.wheel()
207  << "," << scid.sector()
208  << ") not found, return 0" << std::endl;
209  return 0;
210  }
211 
212  return &(*sciter).second;
213 
214 }
int sector() const
Definition: DTSectCollId.h:41
int wheel() const
Definition: DTSectCollId.h:40
tuple cout
Definition: gather_cfg.py:121
SectCollMap my_sectcollmap
const DTConfigTraco * DTConfigManager::getDTConfigTraco ( DTTracoId  tracoid) const

Get desired TRACO configuration.

Definition at line 103 of file DTConfigManager.cc.

References DTTracoId::ChamberId(), gather_cfg::cout, DTChamberId::sector(), DTTracoId::sector(), DTChamberId::station(), DTTracoId::station(), DTTracoId::traco(), DTChamberId::wheel(), and DTTracoId::wheel().

103  {
104 
105  DTChamberId chambid = tracoid.ChamberId();
106  TracoMap::const_iterator titer1 = my_tracomap.find(chambid);
107  if (titer1 == my_tracomap.end()){
108  std::cout << "DTConfigManager::getConfigTraco : Chamber (" << chambid.wheel()
109  << "," << chambid.sector()
110  << "," << chambid.station()
111  << ") not found, return 0" << std::endl;
112  return 0;
113  }
114 
115  innerTracoMap::const_iterator titer2 = (*titer1).second.find(tracoid);
116  if (titer2 == (*titer1).second.end()){
117  std::cout << "DTConfigManager::getConfigTraco : TRACO (" << tracoid.wheel()
118  << "," << tracoid.sector()
119  << "," << tracoid.station()
120  << "," << tracoid.traco()
121  << ") not found, return a reference to the end of the map" << std::endl;
122  return 0;
123  }
124  return &(*titer2).second;
125 
126 }
int sector() const
Returns sector number.
Definition: DTTracoId.h:68
int traco() const
Returns the traco.
Definition: DTTracoId.h:70
int station() const
Returns station number.
Definition: DTTracoId.h:66
DTChamberId ChamberId() const
Returns the chamber id.
Definition: DTTracoId.h:72
int wheel() const
Returns wheel number.
Definition: DTTracoId.h:64
int sector() const
Definition: DTChamberId.h:61
tuple cout
Definition: gather_cfg.py:121
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
const std::map< DTTracoId, DTConfigTraco > & DTConfigManager::getDTConfigTracoMap ( DTChamberId  chambid) const

Get desired TRACO configuration map for a given DTChamber.

Definition at line 128 of file DTConfigManager.cc.

References gather_cfg::cout, DTChamberId::sector(), DTChamberId::station(), and DTChamberId::wheel().

Referenced by DTConfigDBProducer::checkDTCCBConfig(), and DTTracoCard::setConfig().

128  {
129 
130  TracoMap::const_iterator titer = my_tracomap.find(chambid);
131  if (titer == my_tracomap.end()){
132  std::cout << "DTConfigManager::getConfigTracoMap : Chamber (" << chambid.wheel()
133  << "," << chambid.sector()
134  << "," << chambid.station()
135  << ") not found, return 0" << std::endl;
136  }
137 
138  return (*titer).second;
139 
140 }
int sector() const
Definition: DTChamberId.h:61
tuple cout
Definition: gather_cfg.py:121
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
const DTConfigTrigUnit * DTConfigManager::getDTConfigTrigUnit ( DTChamberId  chambid) const

Get desired Trigger Unit configuration.

Definition at line 172 of file DTConfigManager.cc.

References gather_cfg::cout, DTChamberId::sector(), DTChamberId::station(), and DTChamberId::wheel().

172  {
173 
174  TrigUnitMap::const_iterator tuiter = my_trigunitmap.find(chambid);
175  if (tuiter == my_trigunitmap.end()){
176  std::cout << "DTConfigManager::getConfigTrigUnit : Chamber (" << chambid.wheel()
177  << "," << chambid.sector()
178  << "," << chambid.station()
179  << ") not found, return 0" << std::endl;
180  return 0;
181  }
182 
183  return &(*tuiter).second;
184 
185 }
TrigUnitMap my_trigunitmap
int sector() const
Definition: DTChamberId.h:61
tuple cout
Definition: gather_cfg.py:121
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
const DTConfigTSPhi * DTConfigManager::getDTConfigTSPhi ( DTChamberId  chambid) const

Get desired Trigger Server Phi configuration.

Definition at line 157 of file DTConfigManager.cc.

References gather_cfg::cout, DTChamberId::sector(), DTChamberId::station(), and DTChamberId::wheel().

Referenced by DTConfigDBProducer::checkDTCCBConfig(), and DTTSPhi::setConfig().

157  {
158 
159  TSPhiMap::const_iterator phiter = my_tsphimap.find(chambid);
160  if (phiter == my_tsphimap.end()){
161  std::cout << "DTConfigManager::getConfigTSPhi : Chamber (" << chambid.wheel()
162  << "," << chambid.sector()
163  << "," << chambid.station()
164  << ") not found, return 0" << std::endl;
165  return 0;
166  }
167 
168  return &(*phiter).second;
169 
170 }
int sector() const
Definition: DTChamberId.h:61
tuple cout
Definition: gather_cfg.py:121
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
const DTConfigTSTheta * DTConfigManager::getDTConfigTSTheta ( DTChamberId  chambid) const

Get desired Trigger Server Theta configuration.

Definition at line 142 of file DTConfigManager.cc.

References gather_cfg::cout, DTChamberId::sector(), DTChamberId::station(), and DTChamberId::wheel().

Referenced by DTTSTheta::setConfig().

142  {
143 
144  TSThetaMap::const_iterator thiter = my_tsthetamap.find(chambid);
145  if (thiter == my_tsthetamap.end()){
146  std::cout << "DTConfigManager::getConfigTSTheta : Chamber (" << chambid.wheel()
147  << "," << chambid.sector()
148  << "," << chambid.station()
149  << ") not found, return 0" << std::endl;
150  return 0;
151  }
152 
153  return &(*thiter).second;
154 
155 }
TSThetaMap my_tsthetamap
int sector() const
Definition: DTChamberId.h:61
tuple cout
Definition: gather_cfg.py:121
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
bool DTConfigManager::getDTTPGDebug ( ) const
inline

Get global debug flag.

Definition at line 103 of file DTConfigManager.h.

References my_dttpgdebug.

Referenced by DTBtiCard::setConfig(), and DTTracoCard::setConfig().

103 { return my_dttpgdebug; };
bool DTConfigManager::lutFromDB ( ) const
inline

Lut from DB flag.

Definition at line 109 of file DTConfigManager.h.

References my_lutfromdb.

Referenced by DTConfigDBProducer::readDTCCBConfig(), DTTracoCard::setConfig(), and setLutFromDB().

109 { return my_lutfromdb; }
void DTConfigManager::setCCBConfigValidity ( bool  CCBValid)
inline

Set the flag for CCB configuration validity.

Definition at line 152 of file DTConfigManager.h.

References my_CCBvalid.

Referenced by DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().

152 { my_CCBvalid = CCBValid; }
void DTConfigManager::setDTConfigBti ( DTBtiId  btiid,
DTConfigBti  conf 
)

Set DTConfigBti for desired chip.

Definition at line 229 of file DTConfigManager.cc.

References DTSuperLayerId::chamberId(), dbtoconf::conf, and DTBtiId::SLId().

Referenced by DTConfigTrivialProducer::buildManager(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().

229  {
230 
231  DTChamberId chambid = btiid.SLId().chamberId();
232  my_btimap[chambid][btiid] = conf;
233 
234 }
DTChamberId chamberId() const
Return the corresponding ChamberId.
tuple conf
Definition: dbtoconf.py:185
DTSuperLayerId SLId() const
Returns the superlayer id.
Definition: DTBtiId.h:77
void DTConfigManager::setDTConfigLUTs ( DTChamberId  chambid,
DTConfigLUTs  conf 
)
inline

Set DTConfigLUTs for desired chamber.

Definition at line 134 of file DTConfigManager.h.

References dbtoconf::conf, and my_lutmap.

Referenced by DTConfigTrivialProducer::buildManager(), and DTConfigDBProducer::readDTCCBConfig().

134 { my_lutmap[chambid] = conf; };
tuple conf
Definition: dbtoconf.py:185
void DTConfigManager::setDTConfigPedestals ( DTConfigPedestals  pedestals)
inline

Set DTConfigPedestals configuration.

Definition at line 140 of file DTConfigManager.h.

References my_pedestals.

Referenced by DTConfigTrivialProducer::buildManager(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDBPedestalsConfig().

140 { my_pedestals = pedestals; };
DTConfigPedestals my_pedestals
void DTConfigManager::setDTConfigSectColl ( DTSectCollId  sectcollid,
DTConfigSectColl  conf 
)
inline

Set DTConfigSectColl for desired chip.

Definition at line 137 of file DTConfigManager.h.

References dbtoconf::conf, and my_sectcollmap.

Referenced by DTConfigTrivialProducer::buildManager(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().

137 { my_sectcollmap[sectcollid] = conf; };
tuple conf
Definition: dbtoconf.py:185
SectCollMap my_sectcollmap
void DTConfigManager::setDTConfigTraco ( DTTracoId  tracoid,
DTConfigTraco  conf 
)

Set DTConfigTraco for desired chip.

Definition at line 236 of file DTConfigManager.cc.

References DTTracoId::ChamberId(), and dbtoconf::conf.

Referenced by DTConfigTrivialProducer::buildManager(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().

236  {
237 
238  DTChamberId chambid = tracoid.ChamberId();
239  my_tracomap[chambid][tracoid] = conf;
240 
241 }
DTChamberId ChamberId() const
Returns the chamber id.
Definition: DTTracoId.h:72
tuple conf
Definition: dbtoconf.py:185
void DTConfigManager::setDTConfigTrigUnit ( DTChamberId  chambid,
DTConfigTrigUnit  conf 
)
inline

Set DTConfigTrigUnit for desired chamber.

Definition at line 131 of file DTConfigManager.h.

References dbtoconf::conf, and my_trigunitmap.

Referenced by DTConfigTrivialProducer::buildManager(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().

131 { my_trigunitmap[chambid] = conf; };
tuple conf
Definition: dbtoconf.py:185
TrigUnitMap my_trigunitmap
void DTConfigManager::setDTConfigTSPhi ( DTChamberId  chambid,
DTConfigTSPhi  conf 
)
inline

Set DTConfigTSPhi for desired chip.

Definition at line 128 of file DTConfigManager.h.

References dbtoconf::conf, and my_tsphimap.

Referenced by DTConfigTrivialProducer::buildManager(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().

128 { my_tsphimap[chambid] = conf; };
tuple conf
Definition: dbtoconf.py:185
void DTConfigManager::setDTConfigTSTheta ( DTChamberId  chambid,
DTConfigTSTheta  conf 
)
inline

Set DTConfigTSTheta for desired chip.

Definition at line 125 of file DTConfigManager.h.

References dbtoconf::conf, and my_tsthetamap.

Referenced by DTConfigTrivialProducer::buildManager(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().

125 { my_tsthetamap[chambid] = conf; };
TSThetaMap my_tsthetamap
tuple conf
Definition: dbtoconf.py:185
void DTConfigManager::setDTTPGDebug ( bool  debug)
inline

SetGlobalDebug flag.

Definition at line 143 of file DTConfigManager.h.

References debug, and my_dttpgdebug.

Referenced by DTConfigTrivialProducer::DTConfigTrivialProducer().

143 { my_dttpgdebug = debug; }
#define debug
Definition: HDRShower.cc:19
void DTConfigManager::setLutFromDB ( bool  lutFromDB)
inline

Set lut from DB flag.

Definition at line 146 of file DTConfigManager.h.

References lutFromDB(), and my_lutfromdb.

Referenced by DTConfigTrivialProducer::buildManager(), and DTConfigTrivialProducer::DTConfigTrivialProducer().

146 { my_lutfromdb = lutFromDB; }
bool lutFromDB() const
Lut from DB flag.
void DTConfigManager::setUseAcceptParam ( bool  acceptparam)
inline

Set the use of Bti acceptance parameters (LL,LH,CL,CH,RL,RH)

Definition at line 149 of file DTConfigManager.h.

References my_acceptparam.

Referenced by DTConfigTrivialProducer::DTConfigTrivialProducer().

149 { my_acceptparam = acceptparam; }
bool DTConfigManager::useAcceptParam ( ) const
inline

Use Bti acceptance parameters (LL,LH,CL,CH,RL,RH)

Definition at line 112 of file DTConfigManager.h.

References my_acceptparam.

Referenced by DTBtiCard::setConfig(), and DTTracoCard::setConfig().

112 { return my_acceptparam; }

Member Data Documentation

bool DTConfigManager::my_acceptparam
private

Definition at line 173 of file DTConfigManager.h.

Referenced by setUseAcceptParam(), and useAcceptParam().

BtiMap DTConfigManager::my_btimap
private

Definition at line 161 of file DTConfigManager.h.

bool DTConfigManager::my_CCBvalid
private

Definition at line 174 of file DTConfigManager.h.

Referenced by CCBConfigValidity(), and setCCBConfigValidity().

bool DTConfigManager::my_dttpgdebug
private

Definition at line 170 of file DTConfigManager.h.

Referenced by getDTTPGDebug(), and setDTTPGDebug().

bool DTConfigManager::my_lutfromdb
private

Definition at line 172 of file DTConfigManager.h.

Referenced by lutFromDB(), and setLutFromDB().

LUTMap DTConfigManager::my_lutmap
private

Definition at line 166 of file DTConfigManager.h.

Referenced by setDTConfigLUTs().

DTConfigPedestals DTConfigManager::my_pedestals
private

Definition at line 168 of file DTConfigManager.h.

Referenced by setDTConfigPedestals().

SectCollMap DTConfigManager::my_sectcollmap
private

Definition at line 167 of file DTConfigManager.h.

Referenced by setDTConfigSectColl().

TracoMap DTConfigManager::my_tracomap
private

Definition at line 162 of file DTConfigManager.h.

TrigUnitMap DTConfigManager::my_trigunitmap
private

Definition at line 165 of file DTConfigManager.h.

Referenced by setDTConfigTrigUnit().

TSPhiMap DTConfigManager::my_tsphimap
private

Definition at line 164 of file DTConfigManager.h.

Referenced by setDTConfigTSPhi().

TSThetaMap DTConfigManager::my_tsthetamap
private

Definition at line 163 of file DTConfigManager.h.

Referenced by setDTConfigTSTheta().