#include <CalibFormats/SiStripObjects/interface/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 |
Return the number of modules for the specified subDet, layer and connectionType. More... | |
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_ |
Description: give detector view of the cabling of the silicon strip tracker
Definition at line 20 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(), 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 114 of file SiStripDetCabling.cc.
References connected_, and genParticles_cff::map.
Referenced by SiStripQuality::addInvalidConnectionFromCabling(), SiStripGainCosmicCalculator::algoBeginJob(), SiStripCablingTrackerMap::analyze(), SiStripLAProfileBooker::beginRun(), SiStripMonitorTrack::book(), SiStripMonitorRawData::bookHistograms(), SiStripCondObjBuilderFromDb::buildStripRelatedObjects(), SiStripMonitorPedestals::createMEs(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), SiStripRecHitsValid::createMEs(), SiStripTrackingRecHitsValid::createMEs(), SiStripCablingDQM::getActiveDetIds(), SiStripBaseCondObjDQM::getCabledModules(), getDetCabling(), SiStripDcsInfo::readCabling(), and SiStripCondObjBuilderFromDb::retrieveActiveDetIds().
void SiStripDetCabling::addAllDetectorsRawIds | ( | std::vector< uint32_t > & | vector_to_fill_with_detids | ) | const |
Definition at line 122 of file SiStripDetCabling.cc.
References connected_, detected_, genParticles_cff::map, and undetected_.
Referenced by getActiveDetectorsContiguousIds(), SiStripCablingDQM::getActiveDetIds(), getAllDetectorsContiguousIds(), and getDetCabling().
void SiStripDetCabling::addConnected | ( | std::map< uint32_t, std::vector< int > > & | map_to_add_to | ) | const |
Definition at line 191 of file SiStripDetCabling.cc.
References addFromSpecificConnection(), and connected_.
Referenced by getDetCabling(), SiStripDigitizer::initializeEvent(), DigiSimLinkProducer::produce(), and TrackerPSimHitSelector::select().
void SiStripDetCabling::addDetected | ( | std::map< uint32_t, std::vector< int > > & | map_to_add_to | ) | const |
Definition at line 196 of file SiStripDetCabling.cc.
References addFromSpecificConnection(), and detected_.
Referenced by getDetCabling().
void SiStripDetCabling::addDevices | ( | const FedChannelConnection & | conn, |
std::map< uint32_t, std::vector< const FedChannelConnection * > > & | conns | ||
) |
Definition at line 90 of file SiStripDetCabling.cc.
References FedChannelConnection::apvPairNumber(), FedChannelConnection::detId(), FedChannelConnection::fedId(), sistrip::invalid32_, and sistrip::invalid_.
Referenced by addDevices(), and SiStripDetCabling().
void SiStripDetCabling::addDevices | ( | const FedChannelConnection & | conn | ) |
Definition at line 109 of file SiStripDetCabling.cc.
References addDevices(), and fullcabling_.
|
private |
Definition at line 212 of file SiStripDetCabling.cc.
References layerSearch(), and genParticles_cff::map.
Referenced by addConnected(), addDetected(), addNotConnectedAPVs(), addUnDetected(), connected(), and SiStripDetCabling().
void SiStripDetCabling::addNotConnectedAPVs | ( | std::map< uint32_t, std::vector< int > > & | map_to_add_to | ) | const |
Definition at line 206 of file SiStripDetCabling.cc.
References addFromSpecificConnection(), detected_, and undetected_.
Referenced by getDetCabling().
void SiStripDetCabling::addUnDetected | ( | std::map< uint32_t, std::vector< int > > & | map_to_add_to | ) | const |
Definition at line 201 of file SiStripDetCabling.cc.
References addFromSpecificConnection(), and undetected_.
Referenced by getDetCabling().
|
inline |
Definition at line 68 of file SiStripDetCabling.h.
References addFromSpecificConnection(), connected_, detNumber(), IsInMap(), layerSearch(), genParticles_cff::map, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getActiveDetectorsContiguousIds(), and StripClusterizerAlgorithm::initialize().
|
inline |
Definition at line 62 of file SiStripDetCabling.h.
References detNumber().
Referenced by SiStripCertificationInfo::fillSiStripCertificationMEs(), and SiStripQualityChecker::fillSubDetStatus().
|
inline |
Definition at line 63 of file SiStripDetCabling.h.
References detNumber().
|
private |
Return the number of modules for the specified subDet, layer and connectionType.
Definition at line 276 of file SiStripDetCabling.cc.
References connectionCount, end, runEdmFileComparison::found, and LogDebug.
Referenced by connected(), connectedNumber(), detectedNumber(), and undetectedNumber().
|
inline |
Definition at line 65 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 307 of file SiStripDetCabling.cc.
References addAllDetectorsRawIds(), connected(), and getAllDetectorsContiguousIds().
Referenced by getDetCabling().
void SiStripDetCabling::getAllDetectorsContiguousIds | ( | std::map< uint32_t, unsigned int > & | allToContiguous | ) | const |
Definition at line 296 of file SiStripDetCabling.cc.
References addAllDetectorsRawIds(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor::all().
Referenced by getActiveDetectorsContiguousIds(), and getDetCabling().
const FedChannelConnection & SiStripDetCabling::getConnection | ( | uint32_t | det_id, |
unsigned short | apv_pair | ||
) | const |
Definition at line 147 of file SiStripDetCabling.cc.
References getConnections().
Referenced by APVShotsAnalyzer::analyze(), APVShotsFilter::filter(), getDetCabling(), 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 136 of file SiStripDetCabling.cc.
References fullcabling_.
Referenced by SiStripQuality::addInvalidConnectionFromCabling(), SiStripMonitorDigi::analyze(), SiStripMonitorCluster::analyze(), SiStripMonitorRawData::analyze(), SiStripMonitorPedestals::analyze(), CommonModeAnalyzer::analyze(), APVShotsAnalyzer::analyze(), SiStripSpyDisplayModule::analyze(), SiStripCondObjBuilderFromDb::buildConnections(), SiStripMonitorTrack::fillControlViewHistos(), APVShotsFilter::filter(), SiStripCablingDQM::getActiveDetIds(), getConnection(), getDcuId(), getDetCabling(), SiStripTrackerMapCreator::getDetectorFlagAndComment(), nApvPairs(), and TrackerMap::TrackerMap().
const unsigned int SiStripDetCabling::getDcuId | ( | uint32_t | det_id | ) | const |
Definition at line 160 of file SiStripDetCabling.cc.
References getConnections(), mps_fire::i, and sistrip::invalid32_.
Referenced by getDetCabling().
|
inline |
Definition at line 33 of file SiStripDetCabling.h.
References addActiveDetectorsRawIds(), addAllDetectorsRawIds(), addConnected(), addDetected(), addNotConnectedAPVs(), addUnDetected(), fullcabling_, getActiveDetectorsContiguousIds(), getAllDetectorsContiguousIds(), getConnection(), getConnections(), getDcuId(), IsConnected(), IsDetected(), IsUndetected(), genParticles_cff::map, nApvPairs(), print(), printDebug(), and printSummary().
Referenced by StripClusterizerAlgorithm::initialize(), SiStripRegionConnectivity::produceRegionCabling(), and SiStripTrackerMapCreator::setTkMapFromAlarm().
bool SiStripDetCabling::IsConnected | ( | const uint32_t & | det_id | ) | const |
Definition at line 319 of file SiStripDetCabling.cc.
References connected_, and IsInMap().
Referenced by SiStripQuality::addNotConnectedConnectionFromCabling(), SiStripMonitorQuality::analyze(), SiStripMonitorQuality::bookHistograms(), getDetCabling(), SiStripQuality::IsModuleUsable(), and SiStripDcsInfo::readStatus().
bool SiStripDetCabling::IsDetected | ( | const uint32_t & | det_id | ) | const |
Definition at line 323 of file SiStripDetCabling.cc.
References detected_, and IsInMap().
Referenced by getDetCabling().
|
private |
Definition at line 329 of file SiStripDetCabling.cc.
References genParticles_cff::map.
Referenced by connected(), IsConnected(), IsDetected(), and IsUndetected().
bool SiStripDetCabling::IsUndetected | ( | const uint32_t & | det_id | ) | const |
Definition at line 326 of file SiStripDetCabling.cc.
References IsInMap(), and undetected_.
Referenced by getDetCabling().
|
private |
Definition at line 257 of file SiStripDetCabling.cc.
References TrackerTopology::layer(), TrackerTopology::side(), DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, and tTopo.
Referenced by addFromSpecificConnection(), and connected().
const uint16_t SiStripDetCabling::nApvPairs | ( | uint32_t | det_id | ) | const |
Definition at line 174 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(), SiStripCablingDQM::getActiveDetIds(), and getDetCabling().
|
delete |
void SiStripDetCabling::print | ( | std::stringstream & | ss | ) | const |
Added missing print method.
Definition at line 336 of file SiStripDetCabling.cc.
References fullcabling_, cuy::ii, findQualityFiles::jj, and pileupDistInMC::total.
Referenced by SiStripFedCablingBuilder::beginRun(), SiStripFedCablingReader::beginRun(), getDetCabling(), 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 392 of file SiStripDetCabling.cc.
References print().
Referenced by getDetCabling().
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 361 of file SiStripDetCabling.cc.
References connectionCount.
Referenced by getDetCabling().
|
inline |
Definition at line 66 of file SiStripDetCabling.h.
References tTopo.
Referenced by SiStripQuality::turnOffFeds().
|
inline |
Definition at line 64 of file SiStripDetCabling.h.
References detNumber().
|
private |
Definition at line 80 of file SiStripDetCabling.h.
Referenced by addActiveDetectorsRawIds(), addAllDetectorsRawIds(), addConnected(), connected(), IsConnected(), and SiStripDetCabling().
|
private |
Definition at line 88 of file SiStripDetCabling.h.
Referenced by detNumber(), printSummary(), and SiStripDetCabling().
|
private |
Definition at line 81 of file SiStripDetCabling.h.
Referenced by addAllDetectorsRawIds(), addDetected(), addNotConnectedAPVs(), IsDetected(), and SiStripDetCabling().
|
private |
Definition at line 89 of file SiStripDetCabling.h.
Referenced by fedCabling().
|
private |
Definition at line 78 of file SiStripDetCabling.h.
Referenced by addDevices(), getConnections(), getDetCabling(), print(), and SiStripDetCabling().
|
private |
Definition at line 90 of file SiStripDetCabling.h.
Referenced by layerSearch(), and trackerTopology().
|
private |
Definition at line 82 of file SiStripDetCabling.h.
Referenced by addAllDetectorsRawIds(), addNotConnectedAPVs(), addUnDetected(), IsUndetected(), and SiStripDetCabling().