#include <SiStripDetCabling.h>
Public Member Functions | |
void | addActiveDetectorsRawIds (std::vector< uint32_t > &) const |
void | addAllDetectorsRawIds (std::vector< uint32_t > &vector_to_fill_with_detids) const |
void | addConnected (std::map< uint32_t, std::vector< int >> &) const |
void | addDetected (std::map< uint32_t, std::vector< int >> &) const |
void | addDevices (const FedChannelConnection &, std::map< uint32_t, std::vector< const FedChannelConnection *>> &) |
void | addDevices (const FedChannelConnection &) |
void | addNotConnectedAPVs (std::map< uint32_t, std::vector< int >> &) const |
void | addUnDetected (std::map< uint32_t, std::vector< int >> &) const |
std::map< uint32_t, std::vector< int > > const & | connected () const |
uint32_t | connectedNumber (const std::string &subDet, const uint16_t layer) const |
uint32_t | detectedNumber (const std::string &subDet, const uint16_t layer) const |
const SiStripFedCabling * | fedCabling () const |
void | getActiveDetectorsContiguousIds (std::map< uint32_t, unsigned int > &) const |
void | getAllDetectorsContiguousIds (std::map< uint32_t, unsigned int > &) const |
const FedChannelConnection & | getConnection (uint32_t det_id, unsigned short apv_pair) const |
const std::vector< const FedChannelConnection * > & | getConnections (uint32_t det_id) const |
const unsigned int | getDcuId (uint32_t det_id) const |
const std::map< uint32_t, std::vector< const FedChannelConnection * > > & | getDetCabling () const |
bool | IsConnected (const uint32_t &det_id) const |
bool | IsDetected (const uint32_t &det_id) const |
bool | IsUndetected (const uint32_t &det_id) const |
const uint16_t | nApvPairs (uint32_t det_id) const |
const SiStripDetCabling & | operator= (const SiStripDetCabling &)=delete |
void | print (std::stringstream &) const |
void | printDebug (std::stringstream &ss, const TrackerTopology *trackerTopo) const |
void | printSummary (std::stringstream &ss, const TrackerTopology *trackerTopo) const |
SiStripDetCabling (const TrackerTopology *const topology) | |
SiStripDetCabling (const SiStripFedCabling &, const TrackerTopology *const topology) | |
SiStripDetCabling (const SiStripDetCabling &)=delete | |
const TrackerTopology *const | trackerTopology () const |
uint32_t | undetectedNumber (const std::string &subDet, const uint16_t layer) const |
virtual | ~SiStripDetCabling () |
Private Member Functions | |
void | addFromSpecificConnection (std::map< uint32_t, std::vector< int >> &, const std::map< uint32_t, std::vector< int >> &, std::map< int16_t, uint32_t > *connectionsToFill=nullptr) const |
uint32_t | detNumber (const std::string &subDet, const uint16_t layer, const int connectionType) const |
bool | IsInMap (const uint32_t &det_id, const std::map< uint32_t, std::vector< int >> &) const |
int16_t | layerSearch (const uint32_t detId) const |
Private Attributes | |
std::map< uint32_t, std::vector< int > > | connected_ |
std::map< int16_t, uint32_t > | connectionCount [3] |
std::map< uint32_t, std::vector< int > > | detected_ |
const SiStripFedCabling * | fedCabling_ |
std::map< uint32_t, std::vector< const FedChannelConnection * > > | fullcabling_ |
const TrackerTopology *const | tTopo |
std::map< uint32_t, std::vector< int > > | undetected_ |
CalibFormats/SiStripObjects/interface/SiStripDetCabling.h
Description: give detector view of the cabling of the silicon strip tracker
Definition at line 21 of file SiStripDetCabling.h.
SiStripDetCabling::SiStripDetCabling | ( | const TrackerTopology *const | topology | ) |
Definition at line 15 of file SiStripDetCabling.cc.
|
virtual |
Definition at line 16 of file SiStripDetCabling.cc.
SiStripDetCabling::SiStripDetCabling | ( | const SiStripFedCabling & | fedcabling, |
const TrackerTopology *const | topology | ||
) |
Definition at line 19 of file SiStripDetCabling.cc.
References addDevices(), addFromSpecificConnection(), connected_, connectionCount, detected_, SiStripFedCabling::detectedDevices(), SiStripFedCabling::fedConnections(), SiStripFedCabling::fedIds(), l1tstage2emulator_dqm_sourceclient-live_cfg::feds, fullcabling_, sistrip::invalid32_, sistrip::invalid_, undetected_, and SiStripFedCabling::undetectedDevices().
|
delete |
void SiStripDetCabling::addActiveDetectorsRawIds | ( | std::vector< uint32_t > & | vector_to_fill_with_detids | ) | const |
Definition at line 134 of file SiStripDetCabling.cc.
References connected_, and genParticles_cff::map.
Referenced by SiStripQuality::addInvalidConnectionFromCabling(), SiStripGainCosmicCalculator::algoBeginJob(), SiStripMonitorTrack::book(), SiStripCondObjBuilderFromDb::buildStripRelatedObjects(), SiStripMonitorPedestals::createMEs(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), SiStripRecHitsValid::createMEs(), SiStripCablingDQM::getActiveDetIds(), SiStripDcsInfo::readCabling(), and SiStripCondObjBuilderFromDb::retrieveActiveDetIds().
void SiStripDetCabling::addAllDetectorsRawIds | ( | std::vector< uint32_t > & | vector_to_fill_with_detids | ) | const |
Definition at line 143 of file SiStripDetCabling.cc.
References connected_, detected_, genParticles_cff::map, and undetected_.
Referenced by getActiveDetectorsContiguousIds(), SiStripCablingDQM::getActiveDetIds(), and getAllDetectorsContiguousIds().
void SiStripDetCabling::addConnected | ( | std::map< uint32_t, std::vector< int >> & | map_to_add_to | ) | const |
Definition at line 227 of file SiStripDetCabling.cc.
References addFromSpecificConnection(), and connected_.
Referenced by TrackerPSimHitSelector::select().
void SiStripDetCabling::addDetected | ( | std::map< uint32_t, std::vector< int >> & | map_to_add_to | ) | const |
Definition at line 232 of file SiStripDetCabling.cc.
References addFromSpecificConnection(), and detected_.
void SiStripDetCabling::addDevices | ( | const FedChannelConnection & | conn, |
std::map< uint32_t, std::vector< const FedChannelConnection *>> & | conns | ||
) |
Definition at line 105 of file SiStripDetCabling.cc.
References G2GainsValidator::conn, sistrip::invalid32_, and sistrip::invalid_.
Referenced by addDevices(), and SiStripDetCabling().
void SiStripDetCabling::addDevices | ( | const FedChannelConnection & | conn | ) |
Definition at line 126 of file SiStripDetCabling.cc.
References addDevices(), G2GainsValidator::conn, and fullcabling_.
|
private |
Definition at line 249 of file SiStripDetCabling.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, layerSearch(), genParticles_cff::map, and jetUpdater_cfi::sort.
Referenced by addConnected(), addDetected(), addNotConnectedAPVs(), addUnDetected(), and SiStripDetCabling().
void SiStripDetCabling::addNotConnectedAPVs | ( | std::map< uint32_t, std::vector< int >> & | map_to_add_to | ) | const |
Definition at line 243 of file SiStripDetCabling.cc.
References addFromSpecificConnection(), detected_, and undetected_.
void SiStripDetCabling::addUnDetected | ( | std::map< uint32_t, std::vector< int >> & | map_to_add_to | ) | const |
Definition at line 237 of file SiStripDetCabling.cc.
References addFromSpecificConnection(), and undetected_.
|
inline |
Definition at line 89 of file SiStripDetCabling.h.
References connected_.
Referenced by getActiveDetectorsContiguousIds().
|
inline |
Definition at line 79 of file SiStripDetCabling.h.
References detNumber(), and nano_mu_digi_cff::layer.
Referenced by SiStripCertificationInfo::fillSiStripCertificationMEs(), and SiStripQualityChecker::fillSubDetStatus().
|
inline |
Definition at line 82 of file SiStripDetCabling.h.
References detNumber(), and nano_mu_digi_cff::layer.
|
private |
Return the number of modules for the specified subDet, layer and connectionType.
Definition at line 318 of file SiStripDetCabling.cc.
References connectionCount, mps_fire::end, newFWLiteAna::found, nano_mu_digi_cff::layer, and LogDebug.
Referenced by connectedNumber(), detectedNumber(), and undetectedNumber().
|
inline |
Definition at line 86 of file SiStripDetCabling.h.
References fedCabling_.
Referenced by SiStripQuality::add(), SiStripTrackerMapCreator::create(), SiStripTrackerMapCreator::createForOffline(), and SiStripQuality::turnOffFeds().
void SiStripDetCabling::getActiveDetectorsContiguousIds | ( | std::map< uint32_t, unsigned int > & | connectedToContiguous | ) | const |
Definition at line 357 of file SiStripDetCabling.cc.
References addAllDetectorsRawIds(), connected(), getAllDetectorsContiguousIds(), and jetUpdater_cfi::sort.
void SiStripDetCabling::getAllDetectorsContiguousIds | ( | std::map< uint32_t, unsigned int > & | allToContiguous | ) | const |
Definition at line 344 of file SiStripDetCabling.cc.
References addAllDetectorsRawIds(), python.cmstools::all(), and jetUpdater_cfi::sort.
Referenced by getActiveDetectorsContiguousIds().
const FedChannelConnection & SiStripDetCabling::getConnection | ( | uint32_t | det_id, |
unsigned short | apv_pair | ||
) | const |
Definition at line 176 of file SiStripDetCabling.cc.
References getConnections().
Referenced by APVShotsAnalyzer::analyze(), APVShotsFilter::filter(), SiStripGainCosmicCalculator::getNewObject(), and ws_sso_content_reader.HTTPSClientAuthHandler::https_open().
const std::vector< const FedChannelConnection * > & SiStripDetCabling::getConnections | ( | uint32_t | det_id | ) | const |
Definition at line 161 of file SiStripDetCabling.cc.
References fullcabling_.
Referenced by SiStripQuality::addInvalidConnectionFromCabling(), SiStripMonitorDigi::analyze(), SiStripMonitorCluster::analyze(), SiStripMonitorPedestals::analyze(), CommonModeAnalyzer::analyze(), SiStripApvGainFromFileBuilder::analyze(), APVShotsAnalyzer::analyze(), SiStripSpyDisplayModule::analyze(), SiStripCondObjBuilderFromDb::buildConnections(), SiStripBadChannelPatcher::fedFromDetId(), SiStripMonitorTrack::fillControlViewHistos(), APVShotsFilter::filter(), SiStripCablingDQM::getActiveDetIds(), getConnection(), getDcuId(), SiStripTrackerMapCreator::getDetectorFlagAndComment(), nApvPairs(), and TrackerMap::TrackerMap().
const unsigned int SiStripDetCabling::getDcuId | ( | uint32_t | det_id | ) | const |
Definition at line 192 of file SiStripDetCabling.cc.
References getConnections(), mps_fire::i, and sistrip::invalid32_.
|
inline |
Definition at line 33 of file SiStripDetCabling.h.
References fullcabling_.
Referenced by SiStripTrackerMapCreator::setTkMapFromAlarm().
bool SiStripDetCabling::IsConnected | ( | const uint32_t & | det_id | ) | const |
Definition at line 375 of file SiStripDetCabling.cc.
References connected_, and IsInMap().
Referenced by SiStripQuality::addNotConnectedConnectionFromCabling(), SiStripMonitorQuality::analyze(), SiStripMonitorQuality::bookHistograms(), SiStripQuality::IsModuleUsable(), and SiStripDcsInfo::readStatus().
bool SiStripDetCabling::IsDetected | ( | const uint32_t & | det_id | ) | const |
Definition at line 377 of file SiStripDetCabling.cc.
References detected_, and IsInMap().
|
private |
Definition at line 379 of file SiStripDetCabling.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and genParticles_cff::map.
Referenced by IsConnected(), IsDetected(), and IsUndetected().
bool SiStripDetCabling::IsUndetected | ( | const uint32_t & | det_id | ) | const |
Definition at line 378 of file SiStripDetCabling.cc.
References IsInMap(), and undetected_.
|
private |
Definition at line 299 of file SiStripDetCabling.cc.
References hcalRecHitTable_cff::detId, TrackerTopology::layer(), TrackerTopology::side(), DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, and tTopo.
Referenced by addFromSpecificConnection().
const uint16_t SiStripDetCabling::nApvPairs | ( | uint32_t | det_id | ) | const |
Definition at line 209 of file SiStripDetCabling.cc.
References getConnections(), mps_fire::i, and sistrip::invalid_.
Referenced by SiStripQuality::addInvalidConnectionFromCabling(), SiStripMonitorDigi::analyze(), SiStripMonitorCluster::analyze(), SiStripMonitorQuality::bookHistograms(), SiStripMonitorTrack::bookLayerMEs(), SiStripMonitorTrack::bookModMEs(), SiStripMonitorTrack::bookRingMEs(), SiStripMonitorPedestals::createMEs(), SiStripMonitorDigi::createModuleMEs(), SiStripMonitorCluster::createModuleMEs(), SiStripMonitorPedestals::fillCondDBMEs(), and SiStripCablingDQM::getActiveDetIds().
|
delete |
void SiStripDetCabling::print | ( | std::stringstream & | ss | ) | const |
Added missing print method.
Definition at line 386 of file SiStripDetCabling.cc.
References fullcabling_, cuy::ii, findQualityFiles::jj, contentValuesCheck::ss, dqmMemoryStats::total, and validateGeometry_cfg::valid.
Referenced by SiStripFedCablingReader::beginRun(), and printDebug().
void SiStripDetCabling::printDebug | ( | std::stringstream & | ss, |
const TrackerTopology * | trackerTopo | ||
) | const |
The printDebug method returns all the connected/detected/undetected modules.
Definition at line 445 of file SiStripDetCabling.cc.
References print(), and contentValuesCheck::ss.
void SiStripDetCabling::printSummary | ( | std::stringstream & | ss, |
const TrackerTopology * | trackerTopo | ||
) | const |
The printSummary method outputs the number of connected/detected/undetected modules for each layer of each subdetector.
Definition at line 410 of file SiStripDetCabling.cc.
References connectionCount, nano_mu_digi_cff::layer, and contentValuesCheck::ss.
|
inline |
Definition at line 87 of file SiStripDetCabling.h.
References tTopo.
Referenced by SiStripQuality::turnOffFeds().
|
inline |
Definition at line 83 of file SiStripDetCabling.h.
References detNumber(), and nano_mu_digi_cff::layer.
|
private |
Definition at line 104 of file SiStripDetCabling.h.
Referenced by addActiveDetectorsRawIds(), addAllDetectorsRawIds(), addConnected(), connected(), IsConnected(), and SiStripDetCabling().
|
private |
Definition at line 113 of file SiStripDetCabling.h.
Referenced by detNumber(), printSummary(), and SiStripDetCabling().
|
private |
Definition at line 105 of file SiStripDetCabling.h.
Referenced by addAllDetectorsRawIds(), addDetected(), addNotConnectedAPVs(), IsDetected(), and SiStripDetCabling().
|
private |
Definition at line 114 of file SiStripDetCabling.h.
Referenced by fedCabling().
|
private |
Definition at line 101 of file SiStripDetCabling.h.
Referenced by addDevices(), getConnections(), getDetCabling(), print(), and SiStripDetCabling().
|
private |
Definition at line 115 of file SiStripDetCabling.h.
Referenced by layerSearch(), and trackerTopology().
|
private |
Definition at line 106 of file SiStripDetCabling.h.
Referenced by addAllDetectorsRawIds(), addNotConnectedAPVs(), addUnDetected(), IsUndetected(), and SiStripDetCabling().