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 (ConnsConstIterRange connections) |
ConnsConstIterRange | detectedDevices () const |
FedChannelConnection | fedConnection (uint16_t fed_id, uint16_t fed_ch) const |
ConnsConstIterRange | fedConnections (uint16_t fed_id) const |
FedsConstIterRange | fedIds () 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 (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 |
ConnsConstIterRange | undetectedDevices () const |
~SiStripFedCabling () | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
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... | |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses, DCU id...
Definition at line 27 of file SiStripFedCabling.h.
typedef std::vector<FedChannelConnection> SiStripFedCabling::Conns |
Definition at line 43 of file SiStripFedCabling.h.
typedef Conns::const_iterator SiStripFedCabling::ConnsConstIter |
Definition at line 47 of file SiStripFedCabling.h.
typedef boost::iterator_range<ConnsConstIter> SiStripFedCabling::ConnsConstIterRange |
Definition at line 51 of file SiStripFedCabling.h.
typedef Conns::iterator SiStripFedCabling::ConnsIter |
Definition at line 45 of file SiStripFedCabling.h.
typedef boost::iterator_range<ConnsIter> SiStripFedCabling::ConnsIterRange |
Definition at line 49 of file SiStripFedCabling.h.
typedef std::pair<uint32_t,uint32_t> SiStripFedCabling::ConnsPair |
Definition at line 53 of file SiStripFedCabling.h.
typedef std::vector<uint16_t> SiStripFedCabling::Feds |
Definition at line 33 of file SiStripFedCabling.h.
typedef Feds::const_iterator SiStripFedCabling::FedsConstIter |
Definition at line 37 of file SiStripFedCabling.h.
typedef boost::iterator_range<FedsConstIter> SiStripFedCabling::FedsConstIterRange |
Definition at line 41 of file SiStripFedCabling.h.
typedef Feds::iterator SiStripFedCabling::FedsIter |
Definition at line 35 of file SiStripFedCabling.h.
typedef boost::iterator_range<FedsIter> SiStripFedCabling::FedsIterRange |
Definition at line 39 of file SiStripFedCabling.h.
typedef std::vector<ConnsPair> SiStripFedCabling::Registry |
Definition at line 55 of file SiStripFedCabling.h.
SiStripFedCabling::SiStripFedCabling | ( | ConnsConstIterRange | input | ) |
Constructor taking FED channel connection objects as input.
Definition at line 13 of file SiStripFedCabling.cc.
References buildFedCabling(), LogTrace, and sistrip::mlCabling_.
SiStripFedCabling::SiStripFedCabling | ( | const SiStripFedCabling & | input | ) |
Copy constructor.
Definition at line 28 of file SiStripFedCabling.cc.
References LogTrace, and sistrip::mlCabling_.
SiStripFedCabling::SiStripFedCabling | ( | ) |
Public default constructor.
Definition at line 42 of file SiStripFedCabling.cc.
References LogTrace, and sistrip::mlCabling_.
SiStripFedCabling::~SiStripFedCabling | ( | ) |
Default destructor.
Definition at line 56 of file SiStripFedCabling.cc.
References LogTrace, and sistrip::mlCabling_.
void SiStripFedCabling::buildFedCabling | ( | ConnsConstIterRange | connections | ) |
Builds FED cabling from vector of FED connections.
Definition at line 64 of file SiStripFedCabling.cc.
References SiStripFedCabling::ConnsRange::begin(), connections_, filterCSVwithJSON::copy, HLT_FULL_cff::distance, SiStripFedCabling::ConnsRange::emptyPair(), feds_, spr::find(), cuy::ii, cmsHarvester::index, findQualityFiles::jj, LogTrace, FEDNumbering::MAXSiStripFEDID, FEDNumbering::MINSiStripFEDID, sistrip::mlCabling_, range(), registry_, contentValuesCheck::ss, and groupFilesInBlocks::temp.
Referenced by SiStripFedCablingBuilderFromDb::getFedCabling(), and SiStripFedCabling().
|
inline |
Returns information for "detected, but unconnected" devices.
Definition at line 172 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 207 of file SiStripFedCabling.cc.
References fedConnections().
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().
SiStripFedCabling::ConnsConstIterRange SiStripFedCabling::fedConnections | ( | uint16_t | fed_id | ) | const |
Returns all connection objects for a given FED id.
Definition at line 198 of file SiStripFedCabling.cc.
References cmsHarvester::index, SiStripFedCabling::ConnsRange::invalid(), FEDNumbering::MINSiStripFEDID, SiStripFedCabling::ConnsRange::range(), range(), and registry_.
Referenced by SiStripFecCabling::buildFecCabling(), ViewTranslator::buildMaps(), FineDelayHistosUsingDb::computeDelays(), sistrip::SpyUnpacker::createDigis(), sistrip::RawToDigiUnpacker::createDigis(), SiStripCommissioningSource::createTasks(), SiStripCommissioningSource::endJob(), fedConnection(), SiStripCommissioningSource::fillHistos(), sistrip::SpyEventMatcherModule::findL1IDandAPVAddress(), SiStripFedCablingManipulator::manipulate(), sistrip::SpyEventMatcher::mergeMatchingData(), sistrip::SpyDigiConverter::mergeModuleChannels(), sistrip::ExcludedFEDListProducer::produce(), SiStripFEDErrorsDQM::readBadAPVs(), SiStripDetCabling::SiStripDetCabling(), TrackerMap::TrackerMap(), SiStripQuality::turnOffFeds(), LatencyHistosUsingDb::update(), and FineDelayHistosUsingDb::update().
|
inline |
Retrieve vector of active FED ids.
Definition at line 168 of file SiStripFedCabling.h.
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(), TrackerMap::TrackerMap(), ApvTimingHistosUsingDb::update(), LatencyHistosUsingDb::update(), and FineDelayHistosUsingDb::update().
|
inline |
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTDEBUG.
Definition at line 97 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 217 of file SiStripFedCabling.cc.
References SiStripFedCabling::ConnsRange::begin(), detected_, SiStripFedCabling::ConnsRange::end(), feds_, cuy::ii, cmsHarvester::index, sistrip::invalid_, findQualityFiles::jj, FEDNumbering::MINSiStripFEDID, range(), registry_, SiStripFedCabling::ConnsRange::size(), pileupDistInMC::total, and undetected_.
Referenced by print().
void SiStripFedCabling::printSummary | ( | std::stringstream & | ss | ) | const |
Prints summary information for this FED cabling object.
Definition at line 345 of file SiStripFedCabling.cc.
References SiStripFedCabling::ConnsRange::begin(), detected_, feds_, SiStripFedKey::feUnit(), cuy::ii, cmsHarvester::index, 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 216 of file SiStripFedCabling.h.
References connections_.
Referenced by buildFedCabling(), fedConnections(), printDebug(), printSummary(), and terse().
|
private |
|
inline |
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTSUMMARY.
Definition at line 107 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 296 of file SiStripFedCabling.cc.
References SiStripFedCabling::ConnsRange::begin(), SiStripFedCabling::ConnsRange::end(), feds_, cmsHarvester::index, sistrip::invalid_, FEDNumbering::MINSiStripFEDID, range(), registry_, and SiStripFedCabling::ConnsRange::size().
Referenced by CommissioningHistosUsingDb::CommissioningHistosUsingDb(), and sistrip::RawToDigiModule::updateCabling().
|
inline |
Returns information for all "undetected" devices.
Definition at line 176 of file SiStripFedCabling.h.
References undetected_.
Referenced by SiStripDetCabling::SiStripDetCabling().
|
friend |
Definition at line 163 of file SiStripFedCabling.h.
|
friend |
Definition at line 163 of file SiStripFedCabling.h.
|
private |
Container of connection objects.
Definition at line 154 of file SiStripFedCabling.h.
Referenced by buildFedCabling(), and range().
|
private |
Connections to FE devices that are not detected.
Definition at line 157 of file SiStripFedCabling.h.
Referenced by detectedDevices(), printDebug(), and printSummary().
|
private |
"Active" FEDs that have connected FE devices
Definition at line 148 of file SiStripFedCabling.h.
Referenced by buildFedCabling(), fedIds(), printDebug(), printSummary(), and terse().
|
private |
Container of "ranges" indexed by FED id.
Definition at line 151 of file SiStripFedCabling.h.
Referenced by buildFedCabling(), fedConnections(), printDebug(), printSummary(), and terse().
|
private |
FE devices that are detected.
Definition at line 160 of file SiStripFedCabling.h.
Referenced by printDebug(), printSummary(), and undetectedDevices().