#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 () | |
SiStripDetCabling (const SiStripFedCabling &) | |
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 > > &, const int connectionType=-1) 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_ |
std::map< uint32_t, std::vector< int > > | undetected_ |
Description: give detector view of the cabling of the silicon strip tracker
Definition at line 19 of file SiStripDetCabling.h.
SiStripDetCabling::SiStripDetCabling | ( | ) |
Definition at line 18 of file SiStripDetCabling.cc.
|
virtual |
Definition at line 19 of file SiStripDetCabling.cc.
SiStripDetCabling::SiStripDetCabling | ( | const SiStripFedCabling & | fedcabling | ) |
Definition at line 22 of file SiStripDetCabling.cc.
References addDevices(), addFromSpecificConnection(), connected_, detected_, SiStripFedCabling::detectedDevices(), SiStripFedCabling::fedConnections(), SiStripFedCabling::fedIds(), 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 117 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 125 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 194 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 199 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 93 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 112 of file SiStripDetCabling.cc.
References addDevices(), and fullcabling_.
|
private |
Definition at line 215 of file SiStripDetCabling.cc.
References connectionCount, 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 209 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 204 of file SiStripDetCabling.cc.
References addFromSpecificConnection(), and undetected_.
|
inline |
Definition at line 62 of file SiStripDetCabling.h.
References connected_.
Referenced by getActiveDetectorsContiguousIds(), and StripClusterizerAlgorithm::initialize().
|
inline |
Definition at line 57 of file SiStripDetCabling.h.
References detNumber().
|
inline |
Definition at line 58 of file SiStripDetCabling.h.
References detNumber().
|
private |
Return the number of modules for the specified subDet, layer and connectionType.
Definition at line 280 of file SiStripDetCabling.cc.
References connectionCount, and LogDebug.
Referenced by connectedNumber(), detectedNumber(), and undetectedNumber().
|
inline |
Definition at line 60 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 150 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 139 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 163 of file SiStripDetCabling.cc.
References getConnections(), i, and sistrip::invalid32_.
|
inline |
Definition at line 28 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 259 of file SiStripDetCabling.cc.
References TOBDetId::layerNumber(), TIBDetId::layerNumber(), TIDDetId::side(), TECDetId::side(), SiStripDetId::TEC, SiStripDetId::TIB, SiStripDetId::TID, SiStripDetId::TOB, TIDDetId::wheel(), and TECDetId::wheel().
Referenced by addFromSpecificConnection().
const uint16_t SiStripDetCabling::nApvPairs | ( | uint32_t | det_id | ) | const |
Definition at line 177 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, pileupDistInMC::total, and TrackValidation_HighPurity_cff::valid.
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, getDQMSummary::iter, and edmConvertToStreamModule::modules.
|
inline |
Definition at line 59 of file SiStripDetCabling.h.
References detNumber().
|
private |
Definition at line 76 of file SiStripDetCabling.h.
Referenced by addActiveDetectorsRawIds(), addAllDetectorsRawIds(), addConnected(), connected(), IsConnected(), and SiStripDetCabling().
|
mutableprivate |
Definition at line 85 of file SiStripDetCabling.h.
Referenced by addFromSpecificConnection(), detNumber(), and printSummary().
|
private |
Definition at line 77 of file SiStripDetCabling.h.
Referenced by addAllDetectorsRawIds(), addDetected(), addNotConnectedAPVs(), IsDetected(), and SiStripDetCabling().
|
private |
Definition at line 86 of file SiStripDetCabling.h.
Referenced by fedCabling().
|
private |
Definition at line 74 of file SiStripDetCabling.h.
Referenced by addDevices(), getConnections(), getDetCabling(), print(), and SiStripDetCabling().
|
private |
Definition at line 78 of file SiStripDetCabling.h.
Referenced by addAllDetectorsRawIds(), addNotConnectedAPVs(), addUnDetected(), IsUndetected(), and SiStripDetCabling().