CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
SiStripDetCabling Class Reference

#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 SiStripFedCablingfedCabling () const
 
void getActiveDetectorsContiguousIds (std::map< uint32_t, unsigned int > &) const
 
void getAllDetectorsContiguousIds (std::map< uint32_t, unsigned int > &) const
 
const FedChannelConnectiongetConnection (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 SiStripDetCablingoperator= (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 SiStripFedCablingfedCabling_
 
std::map< uint32_t,
std::vector< const
FedChannelConnection * > > 
fullcabling_
 
const TrackerTopology *const tTopo
 
std::map< uint32_t,
std::vector< int > > 
undetected_
 

Detailed Description

Description: give detector view of the cabling of the silicon strip tracker

Definition at line 20 of file SiStripDetCabling.h.

Constructor & Destructor Documentation

SiStripDetCabling::SiStripDetCabling ( const TrackerTopology *const  topology)

Definition at line 15 of file SiStripDetCabling.cc.

SiStripDetCabling::~SiStripDetCabling ( )
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.

SiStripDetCabling::SiStripDetCabling ( const SiStripDetCabling )
private

Member Function Documentation

void SiStripDetCabling::addActiveDetectorsRawIds ( std::vector< uint32_t > &  vector_to_fill_with_detids) const

Definition at line 114 of file SiStripDetCabling.cc.

void SiStripDetCabling::addAllDetectorsRawIds ( std::vector< uint32_t > &  vector_to_fill_with_detids) const

Definition at line 122 of file SiStripDetCabling.cc.

void SiStripDetCabling::addConnected ( std::map< uint32_t, std::vector< int > > &  map_to_add_to) const

Definition at line 191 of file SiStripDetCabling.cc.

void SiStripDetCabling::addDetected ( std::map< uint32_t, std::vector< int > > &  map_to_add_to) const

Definition at line 196 of file SiStripDetCabling.cc.

void SiStripDetCabling::addDevices ( const FedChannelConnection conn,
std::map< uint32_t, std::vector< const FedChannelConnection * > > &  conns 
)

Definition at line 90 of file SiStripDetCabling.cc.

void SiStripDetCabling::addDevices ( const FedChannelConnection conn)

Definition at line 109 of file SiStripDetCabling.cc.

void SiStripDetCabling::addFromSpecificConnection ( std::map< uint32_t, std::vector< int > > &  map_to_add_to,
const std::map< uint32_t, std::vector< int > > &  specific_connection,
std::map< int16_t, uint32_t > *  connectionsToFill = nullptr 
) const
private

Definition at line 212 of file SiStripDetCabling.cc.

void SiStripDetCabling::addNotConnectedAPVs ( std::map< uint32_t, std::vector< int > > &  map_to_add_to) const

Definition at line 206 of file SiStripDetCabling.cc.

void SiStripDetCabling::addUnDetected ( std::map< uint32_t, std::vector< int > > &  map_to_add_to) const

Definition at line 201 of file SiStripDetCabling.cc.

std::map< uint32_t, std::vector<int> > const& SiStripDetCabling::connected ( ) const
inline

Definition at line 64 of file SiStripDetCabling.h.

References connected_.

Referenced by StripClusterizerAlgorithm::initialize().

64 { return connected_;}
std::map< uint32_t, std::vector< int > > connected_
uint32_t SiStripDetCabling::connectedNumber ( const std::string &  subDet,
const uint16_t  layer 
) const
inline

Definition at line 58 of file SiStripDetCabling.h.

References detNumber().

58 { return detNumber(subDet, layer, 0); }
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.
uint32_t SiStripDetCabling::detectedNumber ( const std::string &  subDet,
const uint16_t  layer 
) const
inline

Definition at line 59 of file SiStripDetCabling.h.

References detNumber().

59 { return detNumber(subDet, layer, 1); }
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.
uint32_t SiStripDetCabling::detNumber ( const std::string &  subDet,
const uint16_t  layer,
const int  connectionType 
) const
private

Return the number of modules for the specified subDet, layer and connectionType.

Definition at line 276 of file SiStripDetCabling.cc.

Referenced by connectedNumber(), detectedNumber(), and undetectedNumber().

const SiStripFedCabling* SiStripDetCabling::fedCabling ( ) const
inline

Definition at line 61 of file SiStripDetCabling.h.

References fedCabling_.

61 {return fedCabling_;}
const SiStripFedCabling * fedCabling_
void SiStripDetCabling::getActiveDetectorsContiguousIds ( std::map< uint32_t, unsigned int > &  connectedToContiguous) const

Definition at line 307 of file SiStripDetCabling.cc.

void SiStripDetCabling::getAllDetectorsContiguousIds ( std::map< uint32_t, unsigned int > &  allToContiguous) const

Definition at line 296 of file SiStripDetCabling.cc.

const FedChannelConnection & SiStripDetCabling::getConnection ( uint32_t  det_id,
unsigned short  apv_pair 
) const
const std::vector< const FedChannelConnection * > & SiStripDetCabling::getConnections ( uint32_t  det_id) const

Definition at line 136 of file SiStripDetCabling.cc.

const unsigned int SiStripDetCabling::getDcuId ( uint32_t  det_id) const

Definition at line 160 of file SiStripDetCabling.cc.

const std::map< uint32_t, std::vector<const FedChannelConnection *> >& SiStripDetCabling::getDetCabling ( ) const
inline

Definition at line 29 of file SiStripDetCabling.h.

References fullcabling_.

Referenced by StripClusterizerAlgorithm::initialize().

29 { return fullcabling_; }
std::map< uint32_t, std::vector< const FedChannelConnection * > > fullcabling_
bool SiStripDetCabling::IsConnected ( const uint32_t &  det_id) const

Definition at line 319 of file SiStripDetCabling.cc.

bool SiStripDetCabling::IsDetected ( const uint32_t &  det_id) const

Definition at line 323 of file SiStripDetCabling.cc.

bool SiStripDetCabling::IsInMap ( const uint32_t &  det_id,
const std::map< uint32_t, std::vector< int > > &  map 
) const
private

Definition at line 329 of file SiStripDetCabling.cc.

bool SiStripDetCabling::IsUndetected ( const uint32_t &  det_id) const

Definition at line 326 of file SiStripDetCabling.cc.

int16_t SiStripDetCabling::layerSearch ( const uint32_t  detId) const
private

Definition at line 257 of file SiStripDetCabling.cc.

const uint16_t SiStripDetCabling::nApvPairs ( uint32_t  det_id) const

Definition at line 174 of file SiStripDetCabling.cc.

const SiStripDetCabling& SiStripDetCabling::operator= ( const SiStripDetCabling )
private
void SiStripDetCabling::print ( std::stringstream &  ss) const

Added missing print method.

Definition at line 336 of file SiStripDetCabling.cc.

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.

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.

const TrackerTopology* const SiStripDetCabling::trackerTopology ( ) const
inline

Definition at line 62 of file SiStripDetCabling.h.

References tTopo.

62 {return tTopo;}
const TrackerTopology *const tTopo
uint32_t SiStripDetCabling::undetectedNumber ( const std::string &  subDet,
const uint16_t  layer 
) const
inline

Definition at line 60 of file SiStripDetCabling.h.

References detNumber().

60 { return detNumber(subDet, layer, 2); }
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.

Member Data Documentation

std::map< uint32_t, std::vector<int> > SiStripDetCabling::connected_
private

Definition at line 78 of file SiStripDetCabling.h.

Referenced by connected().

std::map< int16_t, uint32_t > SiStripDetCabling::connectionCount[3]
private

Definition at line 86 of file SiStripDetCabling.h.

std::map< uint32_t, std::vector<int> > SiStripDetCabling::detected_
private

Definition at line 79 of file SiStripDetCabling.h.

const SiStripFedCabling* SiStripDetCabling::fedCabling_
private

Definition at line 87 of file SiStripDetCabling.h.

Referenced by fedCabling().

std::map< uint32_t, std::vector<const FedChannelConnection *> > SiStripDetCabling::fullcabling_
private

Definition at line 76 of file SiStripDetCabling.h.

Referenced by getDetCabling().

const TrackerTopology* const SiStripDetCabling::tTopo
private

Definition at line 88 of file SiStripDetCabling.h.

Referenced by trackerTopology().

std::map< uint32_t, std::vector<int> > SiStripDetCabling::undetected_
private

Definition at line 80 of file SiStripDetCabling.h.