CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 49 of file DTConfigManager.h.

Member Typedef Documentation

Definition at line 53 of file DTConfigManager.h.

Definition at line 51 of file DTConfigManager.h.

Definition at line 52 of file DTConfigManager.h.

Definition at line 58 of file DTConfigManager.h.

Definition at line 59 of file DTConfigManager.h.

Definition at line 54 of file DTConfigManager.h.

Definition at line 57 of file DTConfigManager.h.

Definition at line 56 of file DTConfigManager.h.

Definition at line 55 of file DTConfigManager.h.

Constructor & Destructor Documentation

DTConfigManager::DTConfigManager ( )

Constructor.

Definition at line 39 of file DTConfigManager.cc.

39 {}
DTConfigManager::~DTConfigManager ( )

Destructor.

Definition at line 45 of file DTConfigManager.cc.

45  {
46  my_sectcollmap.clear();
47  my_trigunitmap.clear();
48  my_tsphimap.clear();
49  my_tsthetamap.clear();
50  my_tracomap.clear();
51  my_btimap.clear();
52 }
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 111 of file DTConfigManager.h.

References my_CCBvalid.

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

Dump luts string commands from configuration parameters.

Definition at line 188 of file DTConfigManager.cc.

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

Referenced by DTTrig::dumpLuts().

188  {
189  // open txt file
190  string name = "Lut_from_param";
191  name += ".txt";
192 
193  ofstream fout;
194  fout.open(name.c_str(), ofstream::app);
195 
196  // get wheel, station, sector from chamber
197  int wh = chambid.wheel();
198  int st = chambid.station();
199  int se = chambid.sector();
200 
201  //cout << "Dumping lut command for wh " << wh << " st " << st << " se " << se << endl;
202 
203  fout << wh;
204  fout << "\t" << st;
205  fout << "\t" << se;
206 
207  // get parameters from configuration
208  // get DTConfigLUTs for this chamber
209  const DTConfigLUTs* _confLUTs = getDTConfigLUTs(chambid);
210  short int btic = getDTConfigTraco(DTTracoId(wh, st, se, 1))->BTIC();
211  float d = _confLUTs->D();
212  float xcn = _confLUTs->Xcn();
213  //fout << "\td\t" << d << "\txcn\t" << xcn << "\t";
214  //fout << "btic\t" << btic << "\t";
215 
216  // *** dump TRACO LUT command
217  fout << "\tA8";
218  short int Low_byte = (btic & 0x00FF); // output in hex bytes format with zero padding
219  short int High_byte = (btic >> 8 & 0x00FF);
220  fout << setw(2) << setfill('0') << hex << High_byte << setw(2) << setfill('0') << Low_byte;
221 
222  // convert parameters from IEE32 float to DSP float format
223  short int DSPmantissa = 0;
224  short int DSPexp = 0;
225 
226  // d parameter conversion and dump
227  _confLUTs->IEEE32toDSP(d, DSPmantissa, DSPexp);
228  Low_byte = (DSPmantissa & 0x00FF); // output in hex bytes format with zero padding
229  High_byte = (DSPmantissa >> 8 & 0x00FF);
230  fout << setw(2) << setfill('0') << hex << High_byte << setw(2) << setfill('0') << Low_byte;
231  Low_byte = (DSPexp & 0x00FF);
232  High_byte = (DSPexp >> 8 & 0x00FF);
233  fout << setw(2) << setfill('0') << High_byte << setw(2) << setfill('0') << Low_byte;
234 
235  // xnc parameter conversion and dump
236  DSPmantissa = 0;
237  DSPexp = 0;
238  _confLUTs->IEEE32toDSP(xcn, DSPmantissa, DSPexp);
239  Low_byte = (DSPmantissa & 0x00FF); // output in hex bytes format with zero padding
240  High_byte = (DSPmantissa >> 8 & 0x00FF);
241  fout << setw(2) << setfill('0') << hex << High_byte << setw(2) << setfill('0') << Low_byte;
242  Low_byte = (DSPexp & 0x00FF);
243  High_byte = (DSPexp >> 8 & 0x00FF);
244  fout << setw(2) << setfill('0') << High_byte << setw(2) << setfill('0') << Low_byte;
245 
246  // sign bits
247  short int xcn_sign = _confLUTs->Wheel();
248  Low_byte = (xcn_sign & 0x00FF); // output in hex bytes format with zero padding
249  High_byte = (xcn_sign >> 8 & 0x00FF);
250  fout << setw(2) << setfill('0') << hex << High_byte << setw(2) << setfill('0') << Low_byte << dec << "\n";
251 
252  fout.close();
253 
254  return;
255 }
const DTConfigLUTs * getDTConfigLUTs(DTChamberId) const
Get desired LUT configuration.
int Wheel() const
wheel sign (-1 or +1)
Definition: DTConfigLUTs.h:63
tuple d
Definition: ztail.py:151
int BTIC() const
BTIC traco parameter: must be equal to Btis ST parameter.
Definition: DTConfigTraco.h:68
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:49
float Xcn() const
Xcn: distance vertex to normal, unit cm.
Definition: DTConfigLUTs.h:60
int station() const
Return the station number.
Definition: DTChamberId.h:42
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
float D() const
d: distance vertex to normal, unit cm.
Definition: DTConfigLUTs.h:57
int DTConfigManager::getBXOffset ( ) const

Get BX Offset for a given vdrift config.

Definition at line 173 of file DTConfigManager.cc.

Referenced by DTTrig::getBXOffset().

173  {
174  int ST = static_cast<int>(getDTConfigBti(DTBtiId(1, 1, 1, 1, 1))->ST());
175  return (ST / 2 + ST % 2);
176 }
float ST() const
Max drift time in 12.5 ns steps.
Definition: DTConfigBti.h:61
const DTConfigBti * getDTConfigBti(DTBtiId) const
Get desired BTI configuration.
const DTConfigBti * DTConfigManager::getDTConfigBti ( DTBtiId  btiid) const

Get desired BTI configuration.

Definition at line 58 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().

58  {
59  DTChamberId chambid = btiid.SLId().chamberId();
60  BtiMap::const_iterator biter1 = my_btimap.find(chambid);
61  if (biter1 == my_btimap.end()) {
62  std::cout << "DTConfigManager::getConfigBti : Chamber (" << chambid.wheel() << "," << chambid.sector() << ","
63  << chambid.station() << ") not found, return 0" << std::endl;
64  return nullptr;
65  }
66 
67  innerBtiMap::const_iterator biter2 = (*biter1).second.find(btiid);
68  if (biter2 == (*biter1).second.end()) {
69  std::cout << "DTConfigManager::getConfigBti : BTI (" << btiid.wheel() << "," << btiid.sector() << ","
70  << btiid.station() << "," << btiid.superlayer() << "," << btiid.bti() << ") not found, return 0"
71  << std::endl;
72  return nullptr;
73  }
74  return &(*biter2).second;
75 }
DTChamberId chamberId() const
Return the corresponding ChamberId.
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:55
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:61
int sector() const
Returns sector number.
Definition: DTBtiId.h:59
int station() const
Returns station number.
Definition: DTBtiId.h:57
int bti() const
Returns the bti.
Definition: DTBtiId.h:63
int sector() const
Definition: DTChamberId.h:49
tuple cout
Definition: gather_cfg.py:144
int station() const
Return the station number.
Definition: DTChamberId.h:42
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
DTSuperLayerId SLId() const
Returns the superlayer id.
Definition: DTBtiId.h:65
const std::map< DTBtiId, DTConfigBti > & DTConfigManager::getDTConfigBtiMap ( DTChamberId  chambid) const

Get desired BTI configuration map for a given DTChamber.

Definition at line 77 of file DTConfigManager.cc.

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

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

77  {
78  BtiMap::const_iterator biter = my_btimap.find(chambid);
79  if (biter == my_btimap.end()) {
80  std::cout << "DTConfigManager::getConfigBtiMap : Chamber (" << chambid.wheel() << "," << chambid.sector() << ","
81  << chambid.station() << ") not found, return a reference to the end of the map" << std::endl;
82  }
83 
84  return (*biter).second;
85 }
int sector() const
Definition: DTChamberId.h:49
tuple cout
Definition: gather_cfg.py:144
int station() const
Return the station number.
Definition: DTChamberId.h:42
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
const DTConfigLUTs * DTConfigManager::getDTConfigLUTs ( DTChamberId  chambid) const

Get desired LUT configuration.

Definition at line 149 of file DTConfigManager.cc.

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

Referenced by DTTracoCard::setConfig().

149  {
150  LUTMap::const_iterator lutiter = my_lutmap.find(chambid);
151  if (lutiter == my_lutmap.end()) {
152  std::cout << "DTConfigManager::getConfigLUTs : Chamber (" << chambid.wheel() << "," << chambid.sector() << ","
153  << chambid.station() << ") not found, return 0" << std::endl;
154  return nullptr;
155  }
156 
157  return &(*lutiter).second;
158 }
int sector() const
Definition: DTChamberId.h:49
tuple cout
Definition: gather_cfg.py:144
int station() const
Return the station number.
Definition: DTChamberId.h:42
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
const DTConfigPedestals * DTConfigManager::getDTConfigPedestals ( ) const

Get desired Pedestals configuration.

Definition at line 171 of file DTConfigManager.cc.

Referenced by DTBtiCard::setConfig().

171 { return &my_pedestals; }
DTConfigPedestals my_pedestals
const DTConfigSectColl * DTConfigManager::getDTConfigSectColl ( DTSectCollId  scid) const

Get desired SectorCollector configuration.

Definition at line 160 of file DTConfigManager.cc.

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

Referenced by DTSectColl::setConfig().

160  {
161  SectCollMap::const_iterator sciter = my_sectcollmap.find(scid);
162  if (sciter == my_sectcollmap.end()) {
163  std::cout << "DTConfigManager::getConfigSectColl : SectorCollector (" << scid.wheel() << "," << scid.sector()
164  << ") not found, return 0" << std::endl;
165  return nullptr;
166  }
167 
168  return &(*sciter).second;
169 }
int sector() const
Definition: DTSectCollId.h:31
int wheel() const
Definition: DTSectCollId.h:30
tuple cout
Definition: gather_cfg.py:144
SectCollMap my_sectcollmap
const DTConfigTraco * DTConfigManager::getDTConfigTraco ( DTTracoId  tracoid) const

Get desired TRACO configuration.

Definition at line 87 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().

87  {
88  DTChamberId chambid = tracoid.ChamberId();
89  TracoMap::const_iterator titer1 = my_tracomap.find(chambid);
90  if (titer1 == my_tracomap.end()) {
91  std::cout << "DTConfigManager::getConfigTraco : Chamber (" << chambid.wheel() << "," << chambid.sector() << ","
92  << chambid.station() << ") not found, return 0" << std::endl;
93  return nullptr;
94  }
95 
96  innerTracoMap::const_iterator titer2 = (*titer1).second.find(tracoid);
97  if (titer2 == (*titer1).second.end()) {
98  std::cout << "DTConfigManager::getConfigTraco : TRACO (" << tracoid.wheel() << "," << tracoid.sector() << ","
99  << tracoid.station() << "," << tracoid.traco() << ") not found, return a reference to the end of the map"
100  << std::endl;
101  return nullptr;
102  }
103  return &(*titer2).second;
104 }
int sector() const
Returns sector number.
Definition: DTTracoId.h:57
int traco() const
Returns the traco.
Definition: DTTracoId.h:59
int station() const
Returns station number.
Definition: DTTracoId.h:55
DTChamberId ChamberId() const
Returns the chamber id.
Definition: DTTracoId.h:61
int wheel() const
Returns wheel number.
Definition: DTTracoId.h:53
int sector() const
Definition: DTChamberId.h:49
tuple cout
Definition: gather_cfg.py:144
int station() const
Return the station number.
Definition: DTChamberId.h:42
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
const std::map< DTTracoId, DTConfigTraco > & DTConfigManager::getDTConfigTracoMap ( DTChamberId  chambid) const

Get desired TRACO configuration map for a given DTChamber.

Definition at line 106 of file DTConfigManager.cc.

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

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

106  {
107  TracoMap::const_iterator titer = my_tracomap.find(chambid);
108  if (titer == my_tracomap.end()) {
109  std::cout << "DTConfigManager::getConfigTracoMap : Chamber (" << chambid.wheel() << "," << chambid.sector() << ","
110  << chambid.station() << ") not found, return 0" << std::endl;
111  }
112 
113  return (*titer).second;
114 }
int sector() const
Definition: DTChamberId.h:49
tuple cout
Definition: gather_cfg.py:144
int station() const
Return the station number.
Definition: DTChamberId.h:42
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
const DTConfigTrigUnit * DTConfigManager::getDTConfigTrigUnit ( DTChamberId  chambid) const

Get desired Trigger Unit configuration.

Definition at line 138 of file DTConfigManager.cc.

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

138  {
139  TrigUnitMap::const_iterator tuiter = my_trigunitmap.find(chambid);
140  if (tuiter == my_trigunitmap.end()) {
141  std::cout << "DTConfigManager::getConfigTrigUnit : Chamber (" << chambid.wheel() << "," << chambid.sector() << ","
142  << chambid.station() << ") not found, return 0" << std::endl;
143  return nullptr;
144  }
145 
146  return &(*tuiter).second;
147 }
TrigUnitMap my_trigunitmap
int sector() const
Definition: DTChamberId.h:49
tuple cout
Definition: gather_cfg.py:144
int station() const
Return the station number.
Definition: DTChamberId.h:42
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
const DTConfigTSPhi * DTConfigManager::getDTConfigTSPhi ( DTChamberId  chambid) const

Get desired Trigger Server Phi configuration.

Definition at line 127 of file DTConfigManager.cc.

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

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

127  {
128  TSPhiMap::const_iterator phiter = my_tsphimap.find(chambid);
129  if (phiter == my_tsphimap.end()) {
130  std::cout << "DTConfigManager::getConfigTSPhi : Chamber (" << chambid.wheel() << "," << chambid.sector() << ","
131  << chambid.station() << ") not found, return 0" << std::endl;
132  return nullptr;
133  }
134 
135  return &(*phiter).second;
136 }
int sector() const
Definition: DTChamberId.h:49
tuple cout
Definition: gather_cfg.py:144
int station() const
Return the station number.
Definition: DTChamberId.h:42
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
const DTConfigTSTheta * DTConfigManager::getDTConfigTSTheta ( DTChamberId  chambid) const

Get desired Trigger Server Theta configuration.

Definition at line 116 of file DTConfigManager.cc.

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

Referenced by DTTSTheta::setConfig().

116  {
117  TSThetaMap::const_iterator thiter = my_tsthetamap.find(chambid);
118  if (thiter == my_tsthetamap.end()) {
119  std::cout << "DTConfigManager::getConfigTSTheta : Chamber (" << chambid.wheel() << "," << chambid.sector() << ","
120  << chambid.station() << ") not found, return 0" << std::endl;
121  return nullptr;
122  }
123 
124  return &(*thiter).second;
125 }
TSThetaMap my_tsthetamap
int sector() const
Definition: DTChamberId.h:49
tuple cout
Definition: gather_cfg.py:144
int station() const
Return the station number.
Definition: DTChamberId.h:42
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
bool DTConfigManager::getDTTPGDebug ( ) const
inline

Get global debug flag.

Definition at line 99 of file DTConfigManager.h.

References my_dttpgdebug.

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

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

Lut from DB flag.

Definition at line 105 of file DTConfigManager.h.

References my_lutfromdb.

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

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

Set the flag for CCB configuration validity.

Definition at line 147 of file DTConfigManager.h.

References my_CCBvalid.

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

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

Set DTConfigBti for desired chip.

Definition at line 178 of file DTConfigManager.cc.

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

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

178  {
179  DTChamberId chambid = btiid.SLId().chamberId();
180  my_btimap[chambid][btiid] = conf;
181 }
DTChamberId chamberId() const
Return the corresponding ChamberId.
DTSuperLayerId SLId() const
Returns the superlayer id.
Definition: DTBtiId.h:65
void DTConfigManager::setDTConfigLUTs ( DTChamberId  chambid,
DTConfigLUTs  conf 
)
inline

Set DTConfigLUTs for desired chamber.

Definition at line 129 of file DTConfigManager.h.

References my_lutmap.

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

129 { my_lutmap[chambid] = conf; };
void DTConfigManager::setDTConfigPedestals ( DTConfigPedestals  pedestals)
inline

Set DTConfigPedestals configuration.

Definition at line 135 of file DTConfigManager.h.

References my_pedestals.

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

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

Set DTConfigSectColl for desired chip.

Definition at line 132 of file DTConfigManager.h.

References my_sectcollmap.

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

132 { my_sectcollmap[sectcollid] = conf; };
SectCollMap my_sectcollmap
void DTConfigManager::setDTConfigTraco ( DTTracoId  tracoid,
DTConfigTraco  conf 
)

Set DTConfigTraco for desired chip.

Definition at line 183 of file DTConfigManager.cc.

References DTTracoId::ChamberId().

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

183  {
184  DTChamberId chambid = tracoid.ChamberId();
185  my_tracomap[chambid][tracoid] = conf;
186 }
DTChamberId ChamberId() const
Returns the chamber id.
Definition: DTTracoId.h:61
void DTConfigManager::setDTConfigTrigUnit ( DTChamberId  chambid,
DTConfigTrigUnit  conf 
)
inline

Set DTConfigTrigUnit for desired chamber.

Definition at line 126 of file DTConfigManager.h.

References my_trigunitmap.

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

126 { my_trigunitmap[chambid] = conf; };
TrigUnitMap my_trigunitmap
void DTConfigManager::setDTConfigTSPhi ( DTChamberId  chambid,
DTConfigTSPhi  conf 
)
inline

Set DTConfigTSPhi for desired chip.

Definition at line 123 of file DTConfigManager.h.

References my_tsphimap.

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

123 { my_tsphimap[chambid] = conf; };
void DTConfigManager::setDTConfigTSTheta ( DTChamberId  chambid,
DTConfigTSTheta  conf 
)
inline

Set DTConfigTSTheta for desired chip.

Definition at line 120 of file DTConfigManager.h.

References my_tsthetamap.

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

120 { my_tsthetamap[chambid] = conf; };
TSThetaMap my_tsthetamap
void DTConfigManager::setDTTPGDebug ( bool  debug)
inline

SetGlobalDebug flag.

Definition at line 138 of file DTConfigManager.h.

References debug, and my_dttpgdebug.

Referenced by DTConfigTrivialProducer::DTConfigTrivialProducer().

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

Set lut from DB flag.

Definition at line 141 of file DTConfigManager.h.

References lutFromDB(), and my_lutfromdb.

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

141 { 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 144 of file DTConfigManager.h.

References my_acceptparam.

Referenced by DTConfigTrivialProducer::DTConfigTrivialProducer().

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

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

Definition at line 108 of file DTConfigManager.h.

References my_acceptparam.

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

108 { return my_acceptparam; }

Member Data Documentation

bool DTConfigManager::my_acceptparam
private

Definition at line 166 of file DTConfigManager.h.

Referenced by setUseAcceptParam(), and useAcceptParam().

BtiMap DTConfigManager::my_btimap
private

Definition at line 154 of file DTConfigManager.h.

bool DTConfigManager::my_CCBvalid
private

Definition at line 167 of file DTConfigManager.h.

Referenced by CCBConfigValidity(), and setCCBConfigValidity().

bool DTConfigManager::my_dttpgdebug
private

Definition at line 163 of file DTConfigManager.h.

Referenced by getDTTPGDebug(), and setDTTPGDebug().

bool DTConfigManager::my_lutfromdb
private

Definition at line 165 of file DTConfigManager.h.

Referenced by lutFromDB(), and setLutFromDB().

LUTMap DTConfigManager::my_lutmap
private

Definition at line 159 of file DTConfigManager.h.

Referenced by setDTConfigLUTs().

DTConfigPedestals DTConfigManager::my_pedestals
private

Definition at line 161 of file DTConfigManager.h.

Referenced by setDTConfigPedestals().

SectCollMap DTConfigManager::my_sectcollmap
private

Definition at line 160 of file DTConfigManager.h.

Referenced by setDTConfigSectColl().

TracoMap DTConfigManager::my_tracomap
private

Definition at line 155 of file DTConfigManager.h.

TrigUnitMap DTConfigManager::my_trigunitmap
private

Definition at line 158 of file DTConfigManager.h.

Referenced by setDTConfigTrigUnit().

TSPhiMap DTConfigManager::my_tsphimap
private

Definition at line 157 of file DTConfigManager.h.

Referenced by setDTConfigTSPhi().

TSThetaMap DTConfigManager::my_tsthetamap
private

Definition at line 156 of file DTConfigManager.h.

Referenced by setDTConfigTSTheta().