1 #ifndef CondFormats_SiStripObjects_SiStripFedCabling_H
2 #define CondFormats_SiStripObjects_SiStripFedCabling_H
5 #include <boost/range/iterator_range.hpp>
6 #include <boost/cstdint.hpp>
11 #define SISTRIPCABLING_USING_NEW_STRUCTURE
12 #define SISTRIPCABLING_USING_NEW_INTERFACE
31 typedef std::vector<uint16_t>
Feds;
41 typedef std::vector<FedChannelConnection>
Conns;
95 void print( std::stringstream& ss )
const {
100 void terse( std::stringstream& )
const;
124 uint32_t
size()
const;
129 void print( std::stringstream& )
const;
193 return ( range_.begin() == range_.end() );
197 return std::distance( range_.begin(), range_.end() );
201 return ( ( range_.begin() == vector_.end() &&
202 range_.end() == vector_.end() ) ?
204 ConnsPair( std::distance( vector_.begin(), range_.begin() ),
205 std::distance( vector_.begin(), range_.end() ) ) );
216 #endif // CondFormats_SiStripObjects_SiStripFedCabling_H
ConnsConstIterRange detectedDevices() const
ConnsConstIter end() const
ConnsConstIterRange vector_
boost::iterator_range< ConnsIter > ConnsIterRange
void print(std::stringstream &) const
ConnsConstIterRange range() const
Conns connections_
Container of connection objects.
Feds feds_
"Active" FEDs that have connected FE devices
std::pair< uint32_t, uint32_t > ConnsPair
FedChannelConnection fedConnection(uint16_t fed_id, uint16_t fed_ch) const
static const uint32_t invalid32_
void terse(std::stringstream &) const
ConnsConstIterRange undetectedDevices() const
void printSummary(std::stringstream &) const
Builds range of iterators from pair of offsets.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
boost::iterator_range< FedsConstIter > FedsConstIterRange
Registry registry_
Container of "ranges" indexed by FED id.
Conns::iterator ConnsIter
Conns undetected_
FE devices that are detected.
boost::iterator_range< ConnsConstIter > ConnsConstIterRange
static ConnsPair emptyPair()
ConnsPair connsPair() const
Class containning control, module, detector and connection information, at the level of a FED channel...
Conns detected_
Connections to FE devices that are not detected.
FedsConstIterRange fedIds() const
void print(std::stringstream &ss) const
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTDEBUG.
boost::iterator_range< FedsIter > FedsIterRange
std::vector< uint16_t > Feds
void summary(std::stringstream &ss) const
LEFT FOR COMPATIBILITY. SHOULD BE REPLACED BY PRINTSUMMARY.
ConnsConstIterRange invalid() const
Feds::const_iterator FedsConstIter
void buildFedCabling(ConnsConstIterRange connections)
ConnsConstIter begin() const
ConnsRange range(ConnsPair) const
Builds range of iterators from pair of offsets.
std::vector< ConnsPair > Registry
ConnsConstIterRange fedConnections(uint16_t fed_id) const
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
ConnsConstIterRange range_
std::vector< FedChannelConnection > Conns
Conns::const_iterator ConnsConstIter
void printDebug(std::stringstream &) const