CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
DTConfigManager Class Reference

#include <DTConfigManager.h>

Public Types

typedef std::map< DTChamberId, innerBtiMapBtiMap
 
typedef std::map< DTBtiId, DTConfigBtiinnerBtiMap
 
typedef std::map< DTTracoId, DTConfigTracoinnerTracoMap
 
typedef std::map< DTChamberId, DTConfigLUTsLUTMap
 
typedef std::map< DTSectCollId, DTConfigSectCollSectCollMap
 
typedef std::map< DTChamberId, innerTracoMapTracoMap
 
typedef std::map< DTChamberId, DTConfigTrigUnitTrigUnitMap
 
typedef std::map< DTChamberId, DTConfigTSPhiTSPhiMap
 
typedef std::map< DTChamberId, DTConfigTSThetaTSThetaMap
 

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

◆ BtiMap

Definition at line 53 of file DTConfigManager.h.

◆ innerBtiMap

Definition at line 51 of file DTConfigManager.h.

◆ innerTracoMap

Definition at line 52 of file DTConfigManager.h.

◆ LUTMap

Definition at line 58 of file DTConfigManager.h.

◆ SectCollMap

Definition at line 59 of file DTConfigManager.h.

◆ TracoMap

Definition at line 54 of file DTConfigManager.h.

◆ TrigUnitMap

Definition at line 57 of file DTConfigManager.h.

◆ TSPhiMap

Definition at line 56 of file DTConfigManager.h.

◆ TSThetaMap

Definition at line 55 of file DTConfigManager.h.

Constructor & Destructor Documentation

◆ DTConfigManager()

DTConfigManager::DTConfigManager ( )

Constructor.

Definition at line 39 of file DTConfigManager.cc.

39 {}

◆ ~DTConfigManager()

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 }

Member Function Documentation

◆ CCBConfigValidity()

bool DTConfigManager::CCBConfigValidity ( ) const
inline

flag for CCB configuration validity

Definition at line 111 of file DTConfigManager.h.

111 { return my_CCBvalid; }

References my_CCBvalid.

Referenced by DTTrigProd::beginRun().

◆ dumpLUTParam()

void DTConfigManager::dumpLUTParam ( DTChamberId chambid) const

Dump luts string commands from configuration parameters.

Definition at line 188 of file DTConfigManager.cc.

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 }

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

Referenced by DTTrig::dumpLuts().

◆ getBXOffset()

int DTConfigManager::getBXOffset ( ) const

Get BX Offset for a given vdrift config.

Definition at line 173 of file DTConfigManager.cc.

173  {
174  int ST = static_cast<int>(getDTConfigBti(DTBtiId(1, 1, 1, 1, 1))->ST());
175  return (ST / 2 + ST % 2);
176 }

Referenced by DTTrig::getBXOffset().

◆ getDTConfigBti()

const DTConfigBti * DTConfigManager::getDTConfigBti ( DTBtiId  btiid) const

Get desired BTI configuration.

Definition at line 58 of file DTConfigManager.cc.

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 }

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().

Referenced by DTConfigTester::analyze().

◆ getDTConfigBtiMap()

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.

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 }

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

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

◆ getDTConfigLUTs()

const DTConfigLUTs * DTConfigManager::getDTConfigLUTs ( DTChamberId  chambid) const

Get desired LUT configuration.

Definition at line 149 of file DTConfigManager.cc.

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 }

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

Referenced by DTConfigTester::analyze(), and DTTracoCard::setConfig().

◆ getDTConfigPedestals()

const DTConfigPedestals * DTConfigManager::getDTConfigPedestals ( ) const

Get desired Pedestals configuration.

Definition at line 171 of file DTConfigManager.cc.

171 { return &my_pedestals; }

Referenced by DTConfigTester::analyze(), and DTBtiCard::setConfig().

◆ getDTConfigSectColl()

const DTConfigSectColl * DTConfigManager::getDTConfigSectColl ( DTSectCollId  scid) const

Get desired SectorCollector configuration.

Definition at line 160 of file DTConfigManager.cc.

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 }

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

Referenced by DTConfigTester::analyze(), and DTSectColl::setConfig().

◆ getDTConfigTraco()

const DTConfigTraco * DTConfigManager::getDTConfigTraco ( DTTracoId  tracoid) const

Get desired TRACO configuration.

Definition at line 87 of file DTConfigManager.cc.

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 }

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

Referenced by DTConfigTester::analyze().

◆ getDTConfigTracoMap()

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.

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 }

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

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

◆ getDTConfigTrigUnit()

const DTConfigTrigUnit * DTConfigManager::getDTConfigTrigUnit ( DTChamberId  chambid) const

Get desired Trigger Unit configuration.

Definition at line 138 of file DTConfigManager.cc.

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 }

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

Referenced by DTConfigTester::analyze().

◆ getDTConfigTSPhi()

const DTConfigTSPhi * DTConfigManager::getDTConfigTSPhi ( DTChamberId  chambid) const

Get desired Trigger Server Phi configuration.

Definition at line 127 of file DTConfigManager.cc.

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 }

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

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

◆ getDTConfigTSTheta()

const DTConfigTSTheta * DTConfigManager::getDTConfigTSTheta ( DTChamberId  chambid) const

Get desired Trigger Server Theta configuration.

Definition at line 116 of file DTConfigManager.cc.

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 }

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

Referenced by DTConfigTester::analyze(), and DTTSTheta::setConfig().

◆ getDTTPGDebug()

bool DTConfigManager::getDTTPGDebug ( ) const
inline

Get global debug flag.

Definition at line 99 of file DTConfigManager.h.

99 { return my_dttpgdebug; };

References my_dttpgdebug.

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

◆ lutFromDB()

bool DTConfigManager::lutFromDB ( ) const
inline

Lut from DB flag.

Definition at line 105 of file DTConfigManager.h.

105 { return my_lutfromdb; }

References my_lutfromdb.

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

◆ setCCBConfigValidity()

void DTConfigManager::setCCBConfigValidity ( bool  CCBValid)
inline

Set the flag for CCB configuration validity.

Definition at line 147 of file DTConfigManager.h.

147 { my_CCBvalid = CCBValid; }

References my_CCBvalid.

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

◆ setDTConfigBti()

void DTConfigManager::setDTConfigBti ( DTBtiId  btiid,
DTConfigBti  conf 
)

Set DTConfigBti for desired chip.

Definition at line 178 of file DTConfigManager.cc.

178  {
179  DTChamberId chambid = btiid.SLId().chamberId();
180  my_btimap[chambid][btiid] = conf;
181 }

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

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

◆ setDTConfigLUTs()

void DTConfigManager::setDTConfigLUTs ( DTChamberId  chambid,
DTConfigLUTs  conf 
)
inline

Set DTConfigLUTs for desired chamber.

Definition at line 129 of file DTConfigManager.h.

129 { my_lutmap[chambid] = conf; };

References my_lutmap.

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

◆ setDTConfigPedestals()

void DTConfigManager::setDTConfigPedestals ( DTConfigPedestals  pedestals)
inline

◆ setDTConfigSectColl()

void DTConfigManager::setDTConfigSectColl ( DTSectCollId  sectcollid,
DTConfigSectColl  conf 
)
inline

Set DTConfigSectColl for desired chip.

Definition at line 132 of file DTConfigManager.h.

132 { my_sectcollmap[sectcollid] = conf; };

References my_sectcollmap.

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

◆ setDTConfigTraco()

void DTConfigManager::setDTConfigTraco ( DTTracoId  tracoid,
DTConfigTraco  conf 
)

Set DTConfigTraco for desired chip.

Definition at line 183 of file DTConfigManager.cc.

183  {
184  DTChamberId chambid = tracoid.ChamberId();
185  my_tracomap[chambid][tracoid] = conf;
186 }

References DTTracoId::ChamberId().

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

◆ setDTConfigTrigUnit()

void DTConfigManager::setDTConfigTrigUnit ( DTChamberId  chambid,
DTConfigTrigUnit  conf 
)
inline

Set DTConfigTrigUnit for desired chamber.

Definition at line 126 of file DTConfigManager.h.

126 { my_trigunitmap[chambid] = conf; };

References my_trigunitmap.

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

◆ setDTConfigTSPhi()

void DTConfigManager::setDTConfigTSPhi ( DTChamberId  chambid,
DTConfigTSPhi  conf 
)
inline

Set DTConfigTSPhi for desired chip.

Definition at line 123 of file DTConfigManager.h.

123 { my_tsphimap[chambid] = conf; };

References my_tsphimap.

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

◆ setDTConfigTSTheta()

void DTConfigManager::setDTConfigTSTheta ( DTChamberId  chambid,
DTConfigTSTheta  conf 
)
inline

Set DTConfigTSTheta for desired chip.

Definition at line 120 of file DTConfigManager.h.

120 { my_tsthetamap[chambid] = conf; };

References my_tsthetamap.

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

◆ setDTTPGDebug()

void DTConfigManager::setDTTPGDebug ( bool  debug)
inline

SetGlobalDebug flag.

Definition at line 138 of file DTConfigManager.h.

138 { my_dttpgdebug = debug; }

References debug, and my_dttpgdebug.

Referenced by DTConfigTrivialProducer::DTConfigTrivialProducer(), and DTConfigDBProducer::produce().

◆ setLutFromDB()

void DTConfigManager::setLutFromDB ( bool  lutFromDB)
inline

◆ setUseAcceptParam()

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.

144 { my_acceptparam = acceptparam; }

References my_acceptparam.

Referenced by DTConfigTrivialProducer::DTConfigTrivialProducer(), and DTConfigDBProducer::produce().

◆ useAcceptParam()

bool DTConfigManager::useAcceptParam ( ) const
inline

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

Definition at line 108 of file DTConfigManager.h.

108 { return my_acceptparam; }

References my_acceptparam.

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

Member Data Documentation

◆ my_acceptparam

bool DTConfigManager::my_acceptparam
private

Definition at line 166 of file DTConfigManager.h.

Referenced by setUseAcceptParam(), and useAcceptParam().

◆ my_btimap

BtiMap DTConfigManager::my_btimap
private

Definition at line 154 of file DTConfigManager.h.

◆ my_CCBvalid

bool DTConfigManager::my_CCBvalid
private

Definition at line 167 of file DTConfigManager.h.

Referenced by CCBConfigValidity(), and setCCBConfigValidity().

◆ my_dttpgdebug

bool DTConfigManager::my_dttpgdebug
private

Definition at line 163 of file DTConfigManager.h.

Referenced by getDTTPGDebug(), and setDTTPGDebug().

◆ my_lutfromdb

bool DTConfigManager::my_lutfromdb
private

Definition at line 165 of file DTConfigManager.h.

Referenced by lutFromDB(), and setLutFromDB().

◆ my_lutmap

LUTMap DTConfigManager::my_lutmap
private

Definition at line 159 of file DTConfigManager.h.

Referenced by setDTConfigLUTs().

◆ my_pedestals

DTConfigPedestals DTConfigManager::my_pedestals
private

Definition at line 161 of file DTConfigManager.h.

Referenced by setDTConfigPedestals().

◆ my_sectcollmap

SectCollMap DTConfigManager::my_sectcollmap
private

Definition at line 160 of file DTConfigManager.h.

Referenced by setDTConfigSectColl().

◆ my_tracomap

TracoMap DTConfigManager::my_tracomap
private

Definition at line 155 of file DTConfigManager.h.

◆ my_trigunitmap

TrigUnitMap DTConfigManager::my_trigunitmap
private

Definition at line 158 of file DTConfigManager.h.

Referenced by setDTConfigTrigUnit().

◆ my_tsphimap

TSPhiMap DTConfigManager::my_tsphimap
private

Definition at line 157 of file DTConfigManager.h.

Referenced by setDTConfigTSPhi().

◆ my_tsthetamap

TSThetaMap DTConfigManager::my_tsthetamap
private

Definition at line 156 of file DTConfigManager.h.

Referenced by setDTConfigTSTheta().

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
DTConfigTraco::BTIC
int BTIC() const
BTIC traco parameter: must be equal to Btis ST parameter.
Definition: DTConfigTraco.h:68
DTTracoId
Definition: DTTracoId.h:34
DTConfigManager::getDTConfigLUTs
const DTConfigLUTs * getDTConfigLUTs(DTChamberId) const
Get desired LUT configuration.
Definition: DTConfigManager.cc:149
DTBtiId::wheel
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:55
DTConfigManager::lutFromDB
bool lutFromDB() const
Lut from DB flag.
Definition: DTConfigManager.h:105
DTConfigManager::my_btimap
BtiMap my_btimap
Definition: DTConfigManager.h:154
DTConfigManager::my_sectcollmap
SectCollMap my_sectcollmap
Definition: DTConfigManager.h:160
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTConfigManager::my_trigunitmap
TrigUnitMap my_trigunitmap
Definition: DTConfigManager.h:158
DTConfigManager::getDTConfigBti
const DTConfigBti * getDTConfigBti(DTBtiId) const
Get desired BTI configuration.
Definition: DTConfigManager.cc:58
DTTracoId::station
int station() const
Returns station number.
Definition: DTTracoId.h:55
DTConfigManager::my_pedestals
DTConfigPedestals my_pedestals
Definition: DTConfigManager.h:161
DTBtiId::sector
int sector() const
Returns sector number.
Definition: DTBtiId.h:59
debug
#define debug
Definition: HDRShower.cc:19
DTConfigLUTs::D
float D() const
d: distance vertex to normal, unit cm.
Definition: DTConfigLUTs.h:57
DTConfigManager::my_acceptparam
bool my_acceptparam
Definition: DTConfigManager.h:166
DTConfigLUTs::Wheel
int Wheel() const
wheel sign (-1 or +1)
Definition: DTConfigLUTs.h:63
DTSuperLayerId::chamberId
DTChamberId chamberId() const
Return the corresponding ChamberId.
Definition: DTSuperLayerId.h:45
DTConfigManager::my_CCBvalid
bool my_CCBvalid
Definition: DTConfigManager.h:167
groupFilesInBlocks.fout
fout
Definition: groupFilesInBlocks.py:162
DTSectCollId::wheel
int wheel() const
Definition: DTSectCollId.h:30
DTConfigLUTs::Xcn
float Xcn() const
Xcn: distance vertex to normal, unit cm.
Definition: DTConfigLUTs.h:60
DTBtiId
Definition: DTBtiId.h:32
DTBtiId::station
int station() const
Returns station number.
Definition: DTBtiId.h:57
DTConfigManager::my_tsthetamap
TSThetaMap my_tsthetamap
Definition: DTConfigManager.h:156
DTChamberId::sector
int sector() const
Definition: DTChamberId.h:49
DTConfigLUTs::IEEE32toDSP
void IEEE32toDSP(float f, short int &DSPmantissa, short int &DSPexp) const
IEEE32 to DSP conversion.
Definition: DTConfigLUTs.cc:115
DTConfigManager::my_tsphimap
TSPhiMap my_tsphimap
Definition: DTConfigManager.h:157
DTTracoId::ChamberId
DTChamberId ChamberId() const
Returns the chamber id.
Definition: DTTracoId.h:61
DTTracoId::traco
int traco() const
Returns the traco.
Definition: DTTracoId.h:59
DTSectCollId::sector
int sector() const
Definition: DTSectCollId.h:31
DTBtiId::SLId
DTSuperLayerId SLId() const
Returns the superlayer id.
Definition: DTBtiId.h:65
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
DTConfigManager::my_tracomap
TracoMap my_tracomap
Definition: DTConfigManager.h:155
ztail.d
d
Definition: ztail.py:151
DTTracoId::wheel
int wheel() const
Returns wheel number.
Definition: DTTracoId.h:53
DTChamberId
Definition: DTChamberId.h:14
DTConfigManager::my_dttpgdebug
bool my_dttpgdebug
Definition: DTConfigManager.h:163
DTBtiId::bti
int bti() const
Returns the bti.
Definition: DTBtiId.h:63
DTConfigLUTs
Definition: DTConfigLUTs.h:36
DTConfigManager::my_lutmap
LUTMap my_lutmap
Definition: DTConfigManager.h:159
DTTracoId::sector
int sector() const
Returns sector number.
Definition: DTTracoId.h:57
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142
DTChamberId::wheel
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
DTChamberId::station
int station() const
Return the station number.
Definition: DTChamberId.h:42
DTBtiId::superlayer
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:61