#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 DTConfigBti * | getDTConfigBti (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 DTConfigLUTs * | getDTConfigLUTs (DTChamberId) const |
Get desired LUT configuration. More... | |
const DTConfigPedestals * | getDTConfigPedestals () const |
Get desired Pedestals configuration. More... | |
const DTConfigSectColl * | getDTConfigSectColl (DTSectCollId) const |
Get desired SectorCollector configuration. More... | |
const DTConfigTraco * | getDTConfigTraco (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 DTConfigTrigUnit * | getDTConfigTrigUnit (DTChamberId) const |
Get desired Trigger Unit configuration. More... | |
const DTConfigTSPhi * | getDTConfigTSPhi (DTChamberId) const |
Get desired Trigger Server Phi configuration. More... | |
const DTConfigTSTheta * | getDTConfigTSTheta (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 |
DTTPG Configuration manager Includes config classes for every single chip
Definition at line 50 of file DTConfigManager.h.
typedef std::map<DTChamberId,innerBtiMap> DTConfigManager::BtiMap |
Definition at line 56 of file DTConfigManager.h.
typedef std::map<DTBtiId,DTConfigBti> DTConfigManager::innerBtiMap |
Definition at line 54 of file DTConfigManager.h.
typedef std::map<DTTracoId,DTConfigTraco> DTConfigManager::innerTracoMap |
Definition at line 55 of file DTConfigManager.h.
typedef std::map<DTChamberId,DTConfigLUTs> DTConfigManager::LUTMap |
Definition at line 61 of file DTConfigManager.h.
typedef std::map<DTSectCollId,DTConfigSectColl> DTConfigManager::SectCollMap |
Definition at line 62 of file DTConfigManager.h.
typedef std::map<DTChamberId,innerTracoMap> DTConfigManager::TracoMap |
Definition at line 57 of file DTConfigManager.h.
typedef std::map<DTChamberId,DTConfigTrigUnit> DTConfigManager::TrigUnitMap |
Definition at line 60 of file DTConfigManager.h.
typedef std::map<DTChamberId,DTConfigTSPhi> DTConfigManager::TSPhiMap |
Definition at line 59 of file DTConfigManager.h.
typedef std::map<DTChamberId,DTConfigTSTheta> DTConfigManager::TSThetaMap |
Definition at line 58 of file DTConfigManager.h.
DTConfigManager::DTConfigManager | ( | ) |
DTConfigManager::~DTConfigManager | ( | ) |
|
inline |
flag for CCB configuration validity
Definition at line 115 of file DTConfigManager.h.
References my_CCBvalid, setDTConfigBti(), and setDTConfigTraco().
Referenced by DTTrigProd::beginRun().
void DTConfigManager::dumpLUTParam | ( | DTChamberId & | chambid | ) | const |
Dump luts string commands from configuration parameters.
Definition at line 243 of file DTConfigManager.cc.
References DTConfigLUTs::D(), edmIntegrityCheck::d, TauDecayModes::dec, groupFilesInBlocks::fout, DTConfigLUTs::IEEE32toDSP(), dataset::name, DTChamberId::sector(), DTChamberId::station(), DTChamberId::wheel(), DTConfigLUTs::Wheel(), and DTConfigLUTs::Xcn().
Referenced by DTTrig::dumpLuts(), and setCCBConfigValidity().
int DTConfigManager::getBXOffset | ( | ) | const |
Get BX Offset for a given vdrift config.
Definition at line 222 of file DTConfigManager.cc.
Referenced by DTTrig::getBXOffset(), and getDTTPGDebug().
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().
Referenced by DTConfigTester::analyze().
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().
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 DTConfigTester::analyze(), and DTTracoCard::setConfig().
const DTConfigPedestals * DTConfigManager::getDTConfigPedestals | ( | ) | const |
Get desired Pedestals configuration.
Definition at line 216 of file DTConfigManager.cc.
Referenced by DTConfigTester::analyze(), and DTBtiCard::setConfig().
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 DTConfigTester::analyze(), and DTSectColl::setConfig().
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().
Referenced by DTConfigTester::analyze().
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().
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().
Referenced by DTConfigTester::analyze().
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 DTConfigTester::analyze(), DTConfigDBProducer::checkDTCCBConfig(), and DTTSPhi::setConfig().
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 DTConfigTester::analyze(), and DTTSTheta::setConfig().
|
inline |
Get global debug flag.
Definition at line 103 of file DTConfigManager.h.
References getBXOffset(), and my_dttpgdebug.
Referenced by DTBtiCard::setConfig(), and DTTracoCard::setConfig().
|
inline |
Lut from DB flag.
Definition at line 109 of file DTConfigManager.h.
References my_lutfromdb.
Referenced by DTConfigTester::analyze(), DTConfigDBProducer::readDTCCBConfig(), DTTracoCard::setConfig(), and setLutFromDB().
|
inline |
Set the flag for CCB configuration validity.
Definition at line 152 of file DTConfigManager.h.
References dumpLUTParam(), and my_CCBvalid.
Referenced by DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().
void DTConfigManager::setDTConfigBti | ( | DTBtiId | btiid, |
DTConfigBti | conf | ||
) |
Set DTConfigBti for desired chip.
Definition at line 229 of file DTConfigManager.cc.
References DTSuperLayerId::chamberId(), and DTBtiId::SLId().
Referenced by DTConfigTrivialProducer::buildManager(), CCBConfigValidity(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().
|
inline |
Set DTConfigLUTs for desired chamber.
Definition at line 134 of file DTConfigManager.h.
References my_lutmap.
Referenced by DTConfigTrivialProducer::buildManager(), and DTConfigDBProducer::readDTCCBConfig().
|
inline |
Set DTConfigPedestals configuration.
Definition at line 140 of file DTConfigManager.h.
References my_pedestals.
Referenced by DTConfigTrivialProducer::buildManager(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDBPedestalsConfig().
|
inline |
Set DTConfigSectColl for desired chip.
Definition at line 137 of file DTConfigManager.h.
References my_sectcollmap.
Referenced by DTConfigTrivialProducer::buildManager(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().
void DTConfigManager::setDTConfigTraco | ( | DTTracoId | tracoid, |
DTConfigTraco | conf | ||
) |
Set DTConfigTraco for desired chip.
Definition at line 236 of file DTConfigManager.cc.
References DTTracoId::ChamberId().
Referenced by DTConfigTrivialProducer::buildManager(), CCBConfigValidity(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().
|
inline |
Set DTConfigTrigUnit for desired chamber.
Definition at line 131 of file DTConfigManager.h.
References my_trigunitmap.
Referenced by DTConfigTrivialProducer::buildManager(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().
|
inline |
Set DTConfigTSPhi for desired chip.
Definition at line 128 of file DTConfigManager.h.
References my_tsphimap.
Referenced by DTConfigTrivialProducer::buildManager(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().
|
inline |
Set DTConfigTSTheta for desired chip.
Definition at line 125 of file DTConfigManager.h.
References my_tsthetamap.
Referenced by DTConfigTrivialProducer::buildManager(), DTConfigDBProducer::configFromCfg(), and DTConfigDBProducer::readDTCCBConfig().
|
inline |
SetGlobalDebug flag.
Definition at line 143 of file DTConfigManager.h.
References debug, and my_dttpgdebug.
Referenced by DTConfigTrivialProducer::DTConfigTrivialProducer().
|
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().
|
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().
|
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().
|
private |
Definition at line 173 of file DTConfigManager.h.
Referenced by setUseAcceptParam(), and useAcceptParam().
|
private |
Definition at line 161 of file DTConfigManager.h.
|
private |
Definition at line 174 of file DTConfigManager.h.
Referenced by CCBConfigValidity(), and setCCBConfigValidity().
|
private |
Definition at line 170 of file DTConfigManager.h.
Referenced by getDTTPGDebug(), and setDTTPGDebug().
|
private |
Definition at line 172 of file DTConfigManager.h.
Referenced by lutFromDB(), and setLutFromDB().
|
private |
Definition at line 166 of file DTConfigManager.h.
Referenced by setDTConfigLUTs().
|
private |
Definition at line 168 of file DTConfigManager.h.
Referenced by setDTConfigPedestals().
|
private |
Definition at line 167 of file DTConfigManager.h.
Referenced by setDTConfigSectColl().
|
private |
Definition at line 162 of file DTConfigManager.h.
|
private |
Definition at line 165 of file DTConfigManager.h.
Referenced by setDTConfigTrigUnit().
|
private |
Definition at line 164 of file DTConfigManager.h.
Referenced by setDTConfigTSPhi().
|
private |
Definition at line 163 of file DTConfigManager.h.
Referenced by setDTConfigTSTheta().