#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 |
void | print (std::stringstream &) const |
void | printDebug (std::stringstream &ss) const |
void | printSummary (std::stringstream &ss) const |
SiStripDetCabling (const TrackerTopology *const topology) | |
SiStripDetCabling (const SiStripFedCabling &, const TrackerTopology *const topology) | |
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 |
const SiStripDetCabling & | operator= (const SiStripDetCabling &) |
SiStripDetCabling (const SiStripDetCabling &) | |
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(), HcalMonitorModule_cfi::feds, fullcabling_, sistrip::invalid32_, sistrip::invalid_, undetected_, and SiStripFedCabling::undetectedDevices().
|
private |
void SiStripDetCabling::addActiveDetectorsRawIds | ( | std::vector< uint32_t > & | vector_to_fill_with_detids | ) | const |
Definition at line 114 of file SiStripDetCabling.cc.
References connected_, and python.multivaluedict::map().
Referenced by SiStripQuality::addInvalidConnectionFromCabling(), SiStripCondObjBuilderFromDb::buildStripRelatedObjects(), 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_, python.multivaluedict::map(), and undetected_.
Referenced by getActiveDetectorsContiguousIds(), and getAllDetectorsContiguousIds().
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_.
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_.
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(), results_mgr::conn, 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(), python.multivaluedict::map(), and python.multivaluedict::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 206 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 201 of file SiStripDetCabling.cc.
References addFromSpecificConnection(), and undetected_.
|
inline |
Definition at line 64 of file SiStripDetCabling.h.
References connected_.
Referenced by getActiveDetectorsContiguousIds(), and StripClusterizerAlgorithm::initialize().
|
inline |
Definition at line 58 of file SiStripDetCabling.h.
References detNumber().
|
inline |
Definition at line 59 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, newFWLiteAna::found, and LogDebug.
Referenced by connectedNumber(), detectedNumber(), and undetectedNumber().
|
inline |
Definition at line 61 of file SiStripDetCabling.h.
References fedCabling_.
Referenced by SiStripQuality::add(), 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(), getAllDetectorsContiguousIds(), and python.multivaluedict::sort().
void SiStripDetCabling::getAllDetectorsContiguousIds | ( | std::map< uint32_t, unsigned int > & | allToContiguous | ) | const |
Definition at line 296 of file SiStripDetCabling.cc.
References addAllDetectorsRawIds(), cond::ecalcond::all, and python.multivaluedict::sort().
Referenced by getActiveDetectorsContiguousIds().
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(), 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(), APVShotsAnalyzer::analyze(), SiStripCondObjBuilderFromDb::buildConnections(), APVShotsFilter::filter(), getConnection(), getDcuId(), nApvPairs(), and TrackerMap::TrackerMap().
const unsigned int SiStripDetCabling::getDcuId | ( | uint32_t | det_id | ) | const |
Definition at line 160 of file SiStripDetCabling.cc.
References getConnections(), i, and sistrip::invalid32_.
|
inline |
Definition at line 29 of file SiStripDetCabling.h.
References fullcabling_.
Referenced by StripClusterizerAlgorithm::initialize().
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(), and SiStripQuality::IsModuleUsable().
bool SiStripDetCabling::IsDetected | ( | const uint32_t & | det_id | ) | const |
Definition at line 323 of file SiStripDetCabling.cc.
References detected_, and IsInMap().
|
private |
Definition at line 329 of file SiStripDetCabling.cc.
References python.multivaluedict::map().
Referenced by 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_.
|
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().
const uint16_t SiStripDetCabling::nApvPairs | ( | uint32_t | det_id | ) | const |
Definition at line 174 of file SiStripDetCabling.cc.
References getConnections(), i, and sistrip::invalid_.
Referenced by SiStripQuality::addInvalidConnectionFromCabling().
|
private |
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 printDebug().
void SiStripDetCabling::printDebug | ( | std::stringstream & | ss | ) | const |
The printDebug method returns all the connected/detected/undetected modules.
Definition at line 392 of file SiStripDetCabling.cc.
References print().
void SiStripDetCabling::printSummary | ( | std::stringstream & | ss | ) | 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, and edmConvertToStreamModule::modules.
|
inline |
Definition at line 62 of file SiStripDetCabling.h.
References tTopo.
Referenced by SiStripQuality::turnOffFeds().
|
inline |
Definition at line 60 of file SiStripDetCabling.h.
References detNumber().
|
private |
Definition at line 78 of file SiStripDetCabling.h.
Referenced by addActiveDetectorsRawIds(), addAllDetectorsRawIds(), addConnected(), connected(), IsConnected(), and SiStripDetCabling().
|
private |
Definition at line 86 of file SiStripDetCabling.h.
Referenced by detNumber(), printSummary(), and SiStripDetCabling().
|
private |
Definition at line 79 of file SiStripDetCabling.h.
Referenced by addAllDetectorsRawIds(), addDetected(), addNotConnectedAPVs(), IsDetected(), and SiStripDetCabling().
|
private |
Definition at line 87 of file SiStripDetCabling.h.
Referenced by fedCabling().
|
private |
Definition at line 76 of file SiStripDetCabling.h.
Referenced by addDevices(), getConnections(), getDetCabling(), print(), and SiStripDetCabling().
|
private |
Definition at line 88 of file SiStripDetCabling.h.
Referenced by layerSearch(), and trackerTopology().
|
private |
Definition at line 80 of file SiStripDetCabling.h.
Referenced by addAllDetectorsRawIds(), addNotConnectedAPVs(), addUnDetected(), IsUndetected(), and SiStripDetCabling().