1 #ifndef CondFormats_SiStripObjects_SiStripFedCabling_H 2 #define CondFormats_SiStripObjects_SiStripFedCabling_H 7 #include <boost/range/iterator_range.hpp> 8 #include <boost/cstdint.hpp> 13 #define SISTRIPCABLING_USING_NEW_STRUCTURE 14 #define SISTRIPCABLING_USING_NEW_INTERFACE 33 typedef std::vector<uint16_t>
Feds;
43 typedef std::vector<FedChannelConnection>
Conns;
74 FedsConstIterRange
fedIds()
const;
97 void print( std::stringstream& ss )
const {
102 void terse( std::stringstream& )
const;
120 ConnsConstIter
begin()
const;
121 ConnsConstIter
end()
const;
122 ConnsConstIterRange
range()
const;
123 ConnsConstIterRange
invalid()
const;
126 uint32_t
size()
const;
131 void print( std::stringstream& )
const;
220 #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.
std::ostream & operator<<(std::ostream &, const SiStripFedCabling &)
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.
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
#define COND_SERIALIZABLE
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