Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses, DCU id... More...
#include <SiStripFedCabling.h>
Classes | |
class | ConnsRange |
Builds range of iterators from pair of offsets. More... | |
Public Types | |
typedef std::vector < FedChannelConnection > | Conns |
typedef Conns::const_iterator | ConnsConstIter |
typedef boost::iterator_range < ConnsConstIter > | ConnsConstIterRange |
typedef Conns::iterator | ConnsIter |
typedef boost::iterator_range < ConnsIter > | ConnsIterRange |
typedef std::pair< uint32_t, uint32_t > | ConnsPair |
typedef std::vector< uint16_t > | Feds |
typedef Feds::const_iterator | FedsConstIter |
typedef boost::iterator_range < FedsConstIter > | FedsConstIterRange |
typedef Feds::iterator | FedsIter |
typedef boost::iterator_range < FedsIter > | FedsIterRange |
typedef std::vector< ConnsPair > | Registry |
Public Member Functions | |
void | buildFedCabling (const std::vector< FedChannelConnection > &) |
void | buildFedCabling (ConnsConstIterRange connections) |
const FedChannelConnection & | connection (uint16_t fed_id, uint16_t fed_ch) const |
const std::vector < FedChannelConnection > & | connections (uint16_t fed_id) const |
const std::vector < FedChannelConnection > & | detected () const |
ConnsConstIterRange | detectedDevices () const |
FedChannelConnection | fedConnection (uint16_t fed_id, uint16_t fed_ch) const |
ConnsConstIterRange | fedConnections (uint16_t fed_id) const |
FedsConstIterRange | fedIds () const |
const std::vector< uint16_t > & | feds () const |
void | print (std::stringstream &ss) const |
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTDEBUG. More... | |
void | printDebug (std::stringstream &) const |
void | printSummary (std::stringstream &) const |
ConnsRange | range (ConnsPair) const |
Builds range of iterators from pair of offsets. More... | |
SiStripFedCabling (const std::vector< FedChannelConnection > &) | |
SiStripFedCabling (ConnsConstIterRange) | |
SiStripFedCabling (const SiStripFedCabling &) | |
SiStripFedCabling () | |
void | summary (std::stringstream &ss) const |
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTSUMMARY. More... | |
void | terse (std::stringstream &) const |
const std::vector < FedChannelConnection > & | undetected () const |
ConnsConstIterRange | undetectedDevices () const |
~SiStripFedCabling () | |
Private Attributes | |
Conns | connections_ |
Container of connection objects. More... | |
Conns | detected_ |
Connections to FE devices that are not detected. More... | |
Feds | feds_ |
"Active" FEDs that have connected FE devices More... | |
Registry | registry_ |
Container of "ranges" indexed by FED id. More... | |
Conns | undetected_ |
FE devices that are detected. More... | |
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses, DCU id...
Definition at line 332 of file SiStripFedCabling.h.
typedef std::vector<FedChannelConnection> SiStripFedCabling::Conns |
Definition at line 348 of file SiStripFedCabling.h.
typedef Conns::const_iterator SiStripFedCabling::ConnsConstIter |
Definition at line 352 of file SiStripFedCabling.h.
typedef boost::iterator_range<ConnsConstIter> SiStripFedCabling::ConnsConstIterRange |
Definition at line 356 of file SiStripFedCabling.h.
typedef Conns::iterator SiStripFedCabling::ConnsIter |
Definition at line 350 of file SiStripFedCabling.h.
typedef boost::iterator_range<ConnsIter> SiStripFedCabling::ConnsIterRange |
Definition at line 354 of file SiStripFedCabling.h.
typedef std::pair<uint32_t,uint32_t> SiStripFedCabling::ConnsPair |
Definition at line 358 of file SiStripFedCabling.h.
typedef std::vector<uint16_t> SiStripFedCabling::Feds |
Definition at line 338 of file SiStripFedCabling.h.
typedef Feds::const_iterator SiStripFedCabling::FedsConstIter |
Definition at line 342 of file SiStripFedCabling.h.
typedef boost::iterator_range<FedsConstIter> SiStripFedCabling::FedsConstIterRange |
Definition at line 346 of file SiStripFedCabling.h.
typedef Feds::iterator SiStripFedCabling::FedsIter |
Definition at line 340 of file SiStripFedCabling.h.
typedef boost::iterator_range<FedsIter> SiStripFedCabling::FedsIterRange |
Definition at line 344 of file SiStripFedCabling.h.
typedef std::vector<ConnsPair> SiStripFedCabling::Registry |
Definition at line 360 of file SiStripFedCabling.h.
SiStripFedCabling::SiStripFedCabling | ( | const std::vector< FedChannelConnection > & | input | ) |
TO BE DEPRECATED! TO BE DEPRECATED! TO BE DEPRECATED!
Definition at line 913 of file SiStripFedCabling.cc.
References buildFedCabling(), LogTrace, and sistrip::mlCabling_.
SiStripFedCabling::SiStripFedCabling | ( | ConnsConstIterRange | input | ) |
Constructor taking FED channel connection objects as input.
Definition at line 976 of file SiStripFedCabling.cc.
References buildFedCabling(), LogTrace, and sistrip::mlCabling_.
SiStripFedCabling::SiStripFedCabling | ( | const SiStripFedCabling & | input | ) |
Copy constructor.
Definition at line 991 of file SiStripFedCabling.cc.
References LogTrace, and sistrip::mlCabling_.
SiStripFedCabling::SiStripFedCabling | ( | ) |
Public default constructor.
Definition at line 1005 of file SiStripFedCabling.cc.
References LogTrace, and sistrip::mlCabling_.
SiStripFedCabling::~SiStripFedCabling | ( | ) |
Default destructor.
Definition at line 1019 of file SiStripFedCabling.cc.
References LogTrace, and sistrip::mlCabling_.
void SiStripFedCabling::buildFedCabling | ( | const std::vector< FedChannelConnection > & | input | ) |
TO BE DEPRECATED! TO BE DEPRECATED! TO BE DEPRECATED!
Definition at line 929 of file SiStripFedCabling.cc.
Referenced by SiStripFedCablingBuilderFromDb::getFedCabling(), and SiStripFedCabling().
void SiStripFedCabling::buildFedCabling | ( | ConnsConstIterRange | connections | ) |
Builds FED cabling from vector of FED connections.
Definition at line 1027 of file SiStripFedCabling.cc.
References SiStripFedCabling::ConnsRange::begin(), connections_, filterCSVwithJSON::copy, SiStripFedCabling::ConnsRange::emptyPair(), feds_, spr::find(), getHLTprescales::index, findQualityFiles::jj, LogTrace, FEDNumbering::MAXSiStripFEDID, FEDNumbering::MINSiStripFEDID, sistrip::mlCabling_, range(), registry_, python.multivaluedict::sort(), and groupFilesInBlocks::temp.
const FedChannelConnection & SiStripFedCabling::connection | ( | uint16_t | fed_id, |
uint16_t | fed_ch | ||
) | const |
TO BE DEPRECATED! TO BE DEPRECATED! TO BE DEPRECATED!
Definition at line 949 of file SiStripFedCabling.cc.
References fedConnection(), and convertSQLitetoXML_cfg::output.
Referenced by CommissioningHistosUsingDb::addDcuDetIds(), SiStripSpyMonitorModule::analyze(), SiStripCMMonitorPlugin::analyze(), SiStripShotFilter::filter(), sistrip::FEDEmulatorModule::produce(), SiStripFEDErrorsDQM::readHistogram(), PedsOnlyHistosUsingDb::update(), NoiseHistosUsingDb::update(), PedestalsHistosUsingDb::update(), PedsFullNoiseHistosUsingDb::update(), and ApvTimingHistosUsingDb::update().
const std::vector< FedChannelConnection > & SiStripFedCabling::connections | ( | uint16_t | fed_id | ) | const |
TO BE DEPRECATED! TO BE DEPRECATED! TO BE DEPRECATED!
Definition at line 936 of file SiStripFedCabling.cc.
References filterCSVwithJSON::copy, fedConnections(), and convertSQLitetoXML_cfg::output.
Referenced by SiStripFecCabling::buildFecCabling(), ViewTranslator::buildMaps(), FineDelayHistosUsingDb::computeDelays(), sistrip::SpyUnpacker::createDigis(), sistrip::RawToDigiUnpacker::createDigis(), SiStripCommissioningSource::createTasks(), SiStripCommissioningSource::endJob(), SiStripCommissioningSource::fillHistos(), LaserAlignmentEventFilter::filter(), sistrip::SpyEventMatcherModule::findL1IDandAPVAddress(), SiStripFedCablingManipulator::manipulate(), sistrip::SpyEventMatcher::mergeMatchingData(), sistrip::SpyDigiConverter::mergeModuleChannels(), sistrip::ExcludedFEDListProducer::produce(), SiStripFEDErrorsDQM::readBadAPVs(), SiStripQuality::turnOffFeds(), LatencyHistosUsingDb::update(), and FineDelayHistosUsingDb::update().
const std::vector< FedChannelConnection > & SiStripFedCabling::detected | ( | ) | const |
TO BE DEPRECATED! TO BE DEPRECATED! TO BE DEPRECATED!
Definition at line 964 of file SiStripFedCabling.cc.
References detected_.
|
inline |
Returns information for "detected, but unconnected" devices.
Definition at line 498 of file SiStripFedCabling.h.
References detected_.
Referenced by SiStripDetCabling::SiStripDetCabling().
FedChannelConnection SiStripFedCabling::fedConnection | ( | uint16_t | fed_id, |
uint16_t | fed_ch | ||
) | const |
Returns connection object for a given FED id and channel.
Definition at line 1170 of file SiStripFedCabling.cc.
References fedConnections().
Referenced by connection().
SiStripFedCabling::ConnsConstIterRange SiStripFedCabling::fedConnections | ( | uint16_t | fed_id | ) | const |
Returns all connection objects for a given FED id.
Definition at line 1161 of file SiStripFedCabling.cc.
References SiStripFedCabling::ConnsRange::invalid(), FEDNumbering::MINSiStripFEDID, SiStripFedCabling::ConnsRange::range(), range(), and registry_.
Referenced by connections(), fedConnection(), and SiStripDetCabling::SiStripDetCabling().
|
inline |
Retrieve vector of active FED ids.
Definition at line 494 of file SiStripFedCabling.h.
References feds_.
const std::vector< uint16_t > & SiStripFedCabling::feds | ( | ) | const |
TO BE DEPRECATED! TO BE DEPRECATED! TO BE DEPRECATED!
Definition at line 958 of file SiStripFedCabling.cc.
References feds_.
Referenced by SiStripQuality::add(), SiStripCommissioningSource::beginRun(), SiStripFecCabling::buildFecCabling(), ViewTranslator::buildMaps(), FineDelayHistosUsingDb::computeDelays(), sistrip::SpyUnpacker::createDigis(), sistrip::RawToDigiUnpacker::createDigis(), SiStripCommissioningSource::createTasks(), SiStripCommissioningSource::endJob(), SiStripCommissioningSource::fillCablingHistos(), SiStripCommissioningSource::fillHistos(), sistrip::SpyEventMatcherModule::findL1IDandAPVAddress(), SiStripFedCablingManipulator::manipulate(), sistrip::SpyDigiConverter::mergeModuleChannels(), sistrip::ExcludedFEDListProducer::produce(), SiStripFEDErrorsDQM::readBadAPVs(), SiStripDetCabling::SiStripDetCabling(), ApvTimingHistosUsingDb::update(), LatencyHistosUsingDb::update(), and FineDelayHistosUsingDb::update().
|
inline |
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTDEBUG.
Definition at line 425 of file SiStripFedCabling.h.
References printDebug().
Referenced by operator<<().
void SiStripFedCabling::printDebug | ( | std::stringstream & | ss | ) | const |
Prints all connection information for this FED cabling object.
Definition at line 1180 of file SiStripFedCabling.cc.
References SiStripFedCabling::ConnsRange::begin(), detected_, SiStripFedCabling::ConnsRange::end(), feds_, sistrip::invalid_, findQualityFiles::jj, FEDNumbering::MINSiStripFEDID, range(), registry_, SiStripFedCabling::ConnsRange::size(), and undetected_.
Referenced by print().
void SiStripFedCabling::printSummary | ( | std::stringstream & | ss | ) | const |
Prints summary information for this FED cabling object.
Definition at line 1308 of file SiStripFedCabling.cc.
References SiStripFedCabling::ConnsRange::begin(), detected_, feds_, SiStripFedKey::feUnit(), findQualityFiles::jj, FEDNumbering::MINSiStripFEDID, sistrip::mlCabling_, range(), registry_, SiStripFedCabling::ConnsRange::size(), pileupDistInMC::total, undetected_, csvLumiCalc::unit, and sistrip::valid_.
Referenced by summary().
|
inline |
Builds range of iterators from pair of offsets.
Definition at line 542 of file SiStripFedCabling.h.
References connections_.
Referenced by buildFedCabling(), fedConnections(), printDebug(), printSummary(), and terse().
|
inline |
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTSUMMARY.
Definition at line 435 of file SiStripFedCabling.h.
References printSummary().
Referenced by CommissioningHistosUsingDb::CommissioningHistosUsingDb(), and sistrip::RawToDigiModule::updateCabling().
void SiStripFedCabling::terse | ( | std::stringstream & | ss | ) | const |
Prints terse information for this FED cabling object.
Definition at line 1259 of file SiStripFedCabling.cc.
References SiStripFedCabling::ConnsRange::begin(), SiStripFedCabling::ConnsRange::end(), feds_, sistrip::invalid_, FEDNumbering::MINSiStripFEDID, range(), registry_, and SiStripFedCabling::ConnsRange::size().
Referenced by CommissioningHistosUsingDb::CommissioningHistosUsingDb(), and sistrip::RawToDigiModule::updateCabling().
const std::vector< FedChannelConnection > & SiStripFedCabling::undetected | ( | ) | const |
TO BE DEPRECATED! TO BE DEPRECATED! TO BE DEPRECATED!
Definition at line 970 of file SiStripFedCabling.cc.
References undetected_.
|
inline |
Returns information for all "undetected" devices.
Definition at line 502 of file SiStripFedCabling.h.
References undetected_.
Referenced by SiStripDetCabling::SiStripDetCabling().
|
private |
Container of connection objects.
Definition at line 482 of file SiStripFedCabling.h.
Referenced by buildFedCabling(), and range().
|
private |
Connections to FE devices that are not detected.
Definition at line 485 of file SiStripFedCabling.h.
Referenced by detected(), detectedDevices(), printDebug(), and printSummary().
|
private |
"Active" FEDs that have connected FE devices
Definition at line 476 of file SiStripFedCabling.h.
Referenced by buildFedCabling(), fedIds(), feds(), printDebug(), printSummary(), and terse().
|
private |
Container of "ranges" indexed by FED id.
Definition at line 479 of file SiStripFedCabling.h.
Referenced by buildFedCabling(), fedConnections(), printDebug(), printSummary(), and terse().
|
private |
FE devices that are detected.
Definition at line 488 of file SiStripFedCabling.h.
Referenced by printDebug(), printSummary(), undetected(), and undetectedDevices().