CMS 3D CMS Logo

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

Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses, DCU id... More...

#include <SiStripFedCabling.h>

Classes

class  ConnsRange
 Builds range of iterators from pair of offsets. More...
 

Public Types

typedef std::vector
< FedChannelConnection
Conns
 
typedef Conns::const_iterator ConnsConstIter
 
typedef boost::iterator_range
< ConnsConstIter
ConnsConstIterRange
 
typedef Conns::iterator ConnsIter
 
typedef boost::iterator_range
< ConnsIter
ConnsIterRange
 
typedef std::pair< uint32_t,
uint32_t > 
ConnsPair
 
typedef std::vector< uint16_t > Feds
 
typedef Feds::const_iterator FedsConstIter
 
typedef boost::iterator_range
< FedsConstIter
FedsConstIterRange
 
typedef Feds::iterator FedsIter
 
typedef boost::iterator_range
< FedsIter
FedsIterRange
 
typedef std::vector< ConnsPairRegistry
 

Public Member Functions

void buildFedCabling (ConnsConstIterRange connections)
 
ConnsConstIterRange detectedDevices () const
 
FedChannelConnection fedConnection (uint16_t fed_id, uint16_t fed_ch) const
 
ConnsConstIterRange fedConnections (uint16_t fed_id) const
 
FedsConstIterRange fedIds () const
 
void print (std::stringstream &ss) const
 LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTDEBUG. More...
 
void printDebug (std::stringstream &) const
 
void printSummary (std::stringstream &) const
 
ConnsRange range (ConnsPair) const
 Builds range of iterators from pair of offsets. More...
 
 SiStripFedCabling (ConnsConstIterRange)
 
 SiStripFedCabling (const SiStripFedCabling &)
 
 SiStripFedCabling ()
 
void summary (std::stringstream &ss) const
 LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTSUMMARY. More...
 
void terse (std::stringstream &) const
 
ConnsConstIterRange undetectedDevices () const
 
 ~SiStripFedCabling ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

Conns connections_
 Container of connection objects. More...
 
Conns detected_
 Connections to FE devices that are not detected. More...
 
Feds feds_
 "Active" FEDs that have connected FE devices More...
 
Registry registry_
 Container of "ranges" indexed by FED id. More...
 
Conns undetected_
 FE devices that are detected. More...
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses, DCU id...

Definition at line 27 of file SiStripFedCabling.h.

Member Typedef Documentation

Definition at line 43 of file SiStripFedCabling.h.

typedef Conns::const_iterator SiStripFedCabling::ConnsConstIter

Definition at line 47 of file SiStripFedCabling.h.

Definition at line 51 of file SiStripFedCabling.h.

typedef Conns::iterator SiStripFedCabling::ConnsIter

Definition at line 45 of file SiStripFedCabling.h.

typedef boost::iterator_range<ConnsIter> SiStripFedCabling::ConnsIterRange

Definition at line 49 of file SiStripFedCabling.h.

typedef std::pair<uint32_t,uint32_t> SiStripFedCabling::ConnsPair

Definition at line 53 of file SiStripFedCabling.h.

typedef std::vector<uint16_t> SiStripFedCabling::Feds

Definition at line 33 of file SiStripFedCabling.h.

typedef Feds::const_iterator SiStripFedCabling::FedsConstIter

Definition at line 37 of file SiStripFedCabling.h.

typedef boost::iterator_range<FedsConstIter> SiStripFedCabling::FedsConstIterRange

Definition at line 41 of file SiStripFedCabling.h.

typedef Feds::iterator SiStripFedCabling::FedsIter

Definition at line 35 of file SiStripFedCabling.h.

typedef boost::iterator_range<FedsIter> SiStripFedCabling::FedsIterRange

Definition at line 39 of file SiStripFedCabling.h.

typedef std::vector<ConnsPair> SiStripFedCabling::Registry

Definition at line 55 of file SiStripFedCabling.h.

Constructor & Destructor Documentation

SiStripFedCabling::SiStripFedCabling ( ConnsConstIterRange  input)

Constructor taking FED channel connection objects as input.

Definition at line 13 of file SiStripFedCabling.cc.

SiStripFedCabling::SiStripFedCabling ( const SiStripFedCabling input)

Copy constructor.

Definition at line 28 of file SiStripFedCabling.cc.

SiStripFedCabling::SiStripFedCabling ( )

Public default constructor.

Definition at line 42 of file SiStripFedCabling.cc.

SiStripFedCabling::~SiStripFedCabling ( )

Default destructor.

Definition at line 56 of file SiStripFedCabling.cc.

Member Function Documentation

void SiStripFedCabling::buildFedCabling ( ConnsConstIterRange  connections)

Builds FED cabling from vector of FED connections.

Definition at line 64 of file SiStripFedCabling.cc.

SiStripFedCabling::ConnsConstIterRange SiStripFedCabling::detectedDevices ( ) const
inline

Returns information for "detected, but unconnected" devices.

Definition at line 172 of file SiStripFedCabling.h.

FedChannelConnection SiStripFedCabling::fedConnection ( uint16_t  fed_id,
uint16_t  fed_ch 
) const

Returns connection object for a given FED id and channel.

Definition at line 207 of file SiStripFedCabling.cc.

Referenced by SiStripShotFilter::filter().

SiStripFedCabling::ConnsConstIterRange SiStripFedCabling::fedConnections ( uint16_t  fed_id) const

Returns all connection objects for a given FED id.

Definition at line 198 of file SiStripFedCabling.cc.

Referenced by sistrip::ExcludedFEDListProducer::produce().

SiStripFedCabling::FedsConstIterRange SiStripFedCabling::fedIds ( ) const
inline

Retrieve vector of active FED ids.

Definition at line 168 of file SiStripFedCabling.h.

Referenced by sistrip::ExcludedFEDListProducer::produce().

void SiStripFedCabling::print ( std::stringstream &  ss) const
inline

LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTDEBUG.

Definition at line 97 of file SiStripFedCabling.h.

void SiStripFedCabling::printDebug ( std::stringstream &  ss) const

Prints all connection information for this FED cabling object.

Definition at line 217 of file SiStripFedCabling.cc.

void SiStripFedCabling::printSummary ( std::stringstream &  ss) const

Prints summary information for this FED cabling object.

Definition at line 345 of file SiStripFedCabling.cc.

SiStripFedCabling::ConnsRange SiStripFedCabling::range ( SiStripFedCabling::ConnsPair  p) const
inline

Builds range of iterators from pair of offsets.

Definition at line 216 of file SiStripFedCabling.h.

template<class Archive >
void SiStripFedCabling::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void SiStripFedCabling::summary ( std::stringstream &  ss) const
inline

LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTSUMMARY.

Definition at line 107 of file SiStripFedCabling.h.

void SiStripFedCabling::terse ( std::stringstream &  ss) const

Prints terse information for this FED cabling object.

Definition at line 296 of file SiStripFedCabling.cc.

SiStripFedCabling::ConnsConstIterRange SiStripFedCabling::undetectedDevices ( ) const
inline

Returns information for all "undetected" devices.

Definition at line 176 of file SiStripFedCabling.h.

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 163 of file SiStripFedCabling.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 163 of file SiStripFedCabling.h.

Member Data Documentation

Conns SiStripFedCabling::connections_
private

Container of connection objects.

Definition at line 154 of file SiStripFedCabling.h.

Conns SiStripFedCabling::detected_
private

Connections to FE devices that are not detected.

Definition at line 157 of file SiStripFedCabling.h.

Feds SiStripFedCabling::feds_
private

"Active" FEDs that have connected FE devices

Definition at line 148 of file SiStripFedCabling.h.

Registry SiStripFedCabling::registry_
private

Container of "ranges" indexed by FED id.

Definition at line 151 of file SiStripFedCabling.h.

Conns SiStripFedCabling::undetected_
private

FE devices that are detected.

Definition at line 160 of file SiStripFedCabling.h.