Class containning control, module, detector and connection information, at the level of a FED channel. More...
#include <FedChannelConnection.h>
Public Member Functions | |
uint16_t | apvPairNumber () const |
const uint16_t & | ccuAddr () const |
const uint16_t & | ccuChan () const |
void | consistencyCheck () const |
const bool & | dcu () const |
const uint32_t & | dcuId () const |
const uint32_t & | detId () const |
const uint16_t & | fecCrate () const |
const uint16_t & | fecRing () const |
const uint16_t & | fecSlot () const |
const uint16_t & | fedCh () const |
void | fedCh (uint16_t &fed_ch) |
FedChannelConnection (const uint16_t &fec_crate, const uint16_t &fec_slot, const uint16_t &fec_ring, const uint16_t &ccu_addr, const uint16_t &ccu_chan, const uint16_t &apv0=0, const uint16_t &apv1=0, const uint32_t &dcu_id=0, const uint32_t &det_id=0, const uint16_t &pairs=0, const uint16_t &fed_id=0, const uint16_t &fed_ch=0, const uint16_t &length=0, const bool &dcu=false, const bool &pll=false, const bool &mux=false, const bool &lld=false) | |
FedChannelConnection () | |
const uint16_t & | fedCrate () const |
void | fedCrate (uint16_t &fed_crate) |
const uint16_t & | fedId () const |
void | fedId (uint16_t &fed_id) |
const uint16_t & | fedSlot () const |
void | fedSlot (uint16_t &fed_slot) |
const uint16_t & | fiberLength () const |
const uint16_t & | i2cAddr (const uint16_t &apv0_or_1) const |
bool | isConnected () const |
const bool & | lld () const |
uint16_t | lldChannel () const |
const bool & | mux () const |
const uint16_t & | nApvPairs () const |
uint16_t | nApvs () const |
uint16_t | nDetStrips () const |
const bool & | pll () const |
void | print (std::stringstream &) const |
void | terse (std::stringstream &) const |
~FedChannelConnection () | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
uint16_t | apv0_ |
uint16_t | apv1_ |
uint16_t | ccuAddr_ |
uint16_t | ccuChan_ |
bool | dcu0x00_ |
uint32_t | dcuId_ |
uint32_t | detId_ |
uint16_t | fecCrate_ |
uint16_t | fecRing_ |
uint16_t | fecSlot_ |
uint16_t | fedCh_ |
uint16_t | fedCrate_ |
uint16_t | fedId_ |
uint16_t | fedSlot_ |
uint16_t | length_ |
bool | lld0x60_ |
bool | mux0x43_ |
uint16_t | nApvPairs_ |
bool | pll0x44_ |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Class containning control, module, detector and connection information, at the level of a FED channel.
Definition at line 26 of file FedChannelConnection.h.
FedChannelConnection::FedChannelConnection | ( | const uint16_t & | fec_crate, |
const uint16_t & | fec_slot, | ||
const uint16_t & | fec_ring, | ||
const uint16_t & | ccu_addr, | ||
const uint16_t & | ccu_chan, | ||
const uint16_t & | apv0 = 0 , |
||
const uint16_t & | apv1 = 0 , |
||
const uint32_t & | dcu_id = 0 , |
||
const uint32_t & | det_id = 0 , |
||
const uint16_t & | pairs = 0 , |
||
const uint16_t & | fed_id = 0 , |
||
const uint16_t & | fed_ch = 0 , |
||
const uint16_t & | length = 0 , |
||
const bool & | dcu = false , |
||
const bool & | pll = false , |
||
const bool & | mux = false , |
||
const bool & | lld = false |
||
) |
Constructor requires at least information to uniquely identify a front-end module: ie, crate + FEC + ring + CCU + module.
Definition at line 11 of file FedChannelConnection.cc.
FedChannelConnection::FedChannelConnection | ( | ) |
|
inline |
uint16_t FedChannelConnection::apvPairNumber | ( | ) | const |
Returns APV pair number for this connection object. This can be either 0->1 or 0->2, depending on number of detector strips.
Definition at line 118 of file FedChannelConnection.cc.
References apv0_, apv1_, sistrip::invalid_, edm::isDebugEnabled(), sistrip::mlCabling_, and nApvPairs_.
Referenced by SiStripPopConFEDErrorsHandlerFromDQM::addBadAPV(), SiStripDetCabling::addDevices(), SiStripSpyMonitorModule::analyze(), NoiseTask::book(), CalibrationScanTask::CalibrationScanTask(), CalibrationTask::CalibrationTask(), consistencyCheck(), SiStripShotFilter::filter(), print(), SiStripBadModuleFedErrESSource::produce(), sistrip::FEDEmulatorModule::produce(), SiStripCondObjBuilderFromDb::setValuesApvTiming(), SiStripCondObjBuilderFromDb::setValuesCabling(), terse(), PedsOnlyTask::update(), and NoiseTask::update().
|
inline |
Returns CCU address.
Definition at line 208 of file FedChannelConnection.h.
References ccuAddr_.
Referenced by CommissioningHistosUsingDb::addDcuDetIds(), SiStripRing::addDevices(), SiStripModule::addDevices(), CommissioningTask::CommissioningTask(), SiStripFecCabling::connections(), consistencyCheck(), SiStripGainCosmicCalculator::getNewObject(), SiStripCondObjBuilderFromDb::SkipDeviceDescription::isConsistent(), print(), SiStripCondObjBuilderFromDb::setValuesApvLatency(), terse(), PedsFullNoiseHistosUsingDb::update(), NoiseHistosUsingDb::update(), PedsOnlyHistosUsingDb::update(), DaqScopeModeHistosUsingDb::update(), PedestalsHistosUsingDb::update(), ApvTimingHistosUsingDb::update(), and CommissioningTask::~CommissioningTask().
|
inline |
Returns CCU channel.
Definition at line 209 of file FedChannelConnection.h.
References ccuChan_.
Referenced by CommissioningHistosUsingDb::addDcuDetIds(), SiStripCcu::addDevices(), SiStripModule::addDevices(), CommissioningTask::CommissioningTask(), SiStripFecCabling::connections(), consistencyCheck(), SiStripGainCosmicCalculator::getNewObject(), SiStripCondObjBuilderFromDb::SkipDeviceDescription::isConsistent(), print(), SiStripCondObjBuilderFromDb::setValuesApvLatency(), terse(), PedsFullNoiseHistosUsingDb::update(), NoiseHistosUsingDb::update(), PedsOnlyHistosUsingDb::update(), DaqScopeModeHistosUsingDb::update(), PedestalsHistosUsingDb::update(), ApvTimingHistosUsingDb::update(), and CommissioningTask::~CommissioningTask().
|
inline |
Performs consistency check for this connection object.
Definition at line 64 of file FedChannelConnection.h.
References apvPairNumber(), ccuAddr(), ccuChan(), dcu(), dcuId(), detId(), fecCrate(), fecRing(), fecSlot(), fedCh(), fedCrate(), fedId(), fedSlot(), fiberLength(), i2cAddr(), lld(), lldChannel(), mux(), nApvPairs(), nApvs(), nDetStrips(), pll(), print(), and terse().
|
inline |
Indicates whether DCU ASIC is found.
Definition at line 211 of file FedChannelConnection.h.
References dcu0x00_.
Referenced by SiStripModule::addDevices(), consistencyCheck(), and print().
|
inline |
Returns DCUid for this module.
Definition at line 216 of file FedChannelConnection.h.
References dcuId_.
Referenced by CommissioningHistosUsingDb::addDcuDetIds(), SiStripModule::addDevices(), consistencyCheck(), SiStripFecCabling::dcuId(), print(), and terse().
|
inline |
Returns DetId for this module.
Definition at line 217 of file FedChannelConnection.h.
References detId_.
Referenced by SiStripPopConFEDErrorsHandlerFromDQM::addBadAPV(), CommissioningHistosUsingDb::addDcuDetIds(), SiStripDetCabling::addDevices(), SiStripModule::addDevices(), SiStripSpyMonitorModule::analyze(), SiStripCMMonitorPlugin::analyze(), NoiseTask::book(), CalibrationScanTask::CalibrationScanTask(), CalibrationTask::CalibrationTask(), consistencyCheck(), SiStripFecCabling::detId(), SiStripPopConFEDErrorsHandlerFromDQM::dqmEndJob(), SiStripShotFilter::filter(), SiStripCondObjBuilderFromDb::SkipDeviceDescription::isConsistent(), print(), SiStripBadModuleFedErrESSource::produce(), sistrip::FEDEmulatorModule::produce(), SiStripCondObjBuilderFromDb::setValuesApvTiming(), terse(), and NoiseTask::update().
|
inline |
Returns FEC crate number.
Definition at line 205 of file FedChannelConnection.h.
References fecCrate_.
Referenced by CommissioningHistosUsingDb::addDcuDetIds(), SiStripModule::addDevices(), SiStripFecCabling::addDevices(), CommissioningTask::CommissioningTask(), SiStripFecCabling::connections(), consistencyCheck(), SiStripGainCosmicCalculator::getNewObject(), SiStripCondObjBuilderFromDb::SkipDeviceDescription::isConsistent(), print(), SiStripCondObjBuilderFromDb::setValuesApvLatency(), terse(), PedsFullNoiseHistosUsingDb::update(), NoiseHistosUsingDb::update(), PedsOnlyHistosUsingDb::update(), DaqScopeModeHistosUsingDb::update(), PedestalsHistosUsingDb::update(), ApvTimingHistosUsingDb::update(), and CommissioningTask::~CommissioningTask().
|
inline |
Returns FEC ring number.
Definition at line 207 of file FedChannelConnection.h.
References fecRing_.
Referenced by CommissioningHistosUsingDb::addDcuDetIds(), SiStripFec::addDevices(), SiStripModule::addDevices(), CommissioningTask::CommissioningTask(), SiStripFecCabling::connections(), consistencyCheck(), SiStripGainCosmicCalculator::getNewObject(), SiStripCondObjBuilderFromDb::SkipDeviceDescription::isConsistent(), print(), SiStripCondObjBuilderFromDb::setValuesApvLatency(), terse(), PedsFullNoiseHistosUsingDb::update(), NoiseHistosUsingDb::update(), PedsOnlyHistosUsingDb::update(), DaqScopeModeHistosUsingDb::update(), PedestalsHistosUsingDb::update(), ApvTimingHistosUsingDb::update(), and CommissioningTask::~CommissioningTask().
|
inline |
Returns slot number of FEC.
Definition at line 206 of file FedChannelConnection.h.
References fecSlot_.
Referenced by CommissioningHistosUsingDb::addDcuDetIds(), SiStripFecCrate::addDevices(), SiStripModule::addDevices(), CommissioningTask::CommissioningTask(), SiStripFecCabling::connections(), consistencyCheck(), SiStripGainCosmicCalculator::getNewObject(), SiStripCondObjBuilderFromDb::SkipDeviceDescription::isConsistent(), print(), SiStripCondObjBuilderFromDb::setValuesApvLatency(), terse(), PedsFullNoiseHistosUsingDb::update(), NoiseHistosUsingDb::update(), PedsOnlyHistosUsingDb::update(), DaqScopeModeHistosUsingDb::update(), PedestalsHistosUsingDb::update(), ApvTimingHistosUsingDb::update(), and CommissioningTask::~CommissioningTask().
|
inline |
Returns FED id for this channel.
Definition at line 225 of file FedChannelConnection.h.
References fedCh_.
Referenced by SiStripPopConFEDErrorsHandlerFromDQM::addBadStrips(), CommissioningHistosUsingDb::addDcuDetIds(), SiStripModule::addDevices(), APVShotsAnalyzer::analyze(), CommissioningTask::CommissioningTask(), consistencyCheck(), APVShotsFilter::filter(), SiStripCondObjBuilderFromDb::SkipDeviceDescription::isConsistent(), operator<(), print(), SiStripCondObjBuilderFromDb::setValuesApvTiming(), SiStripCondObjBuilderFromDb::setValuesCabling(), terse(), PedsOnlyHistosUsingDb::update(), PedsFullNoiseHistosUsingDb::update(), DaqScopeModeHistosUsingDb::update(), NoiseHistosUsingDb::update(), PedestalsHistosUsingDb::update(), ApvTimingHistosUsingDb::update(), and CommissioningTask::~CommissioningTask().
|
inline |
Sets FED id for this channel.
Definition at line 230 of file FedChannelConnection.h.
References fedCh_.
|
inline |
Returns FED crate for this channel.
Definition at line 222 of file FedChannelConnection.h.
References fedCrate_.
Referenced by SiStripModule::addDevices(), SiStripFedCablingBuilderFromDb::buildFecCablingFromDevices(), SiStripFedCablingBuilderFromDb::buildFecCablingFromFedConnections(), consistencyCheck(), print(), and terse().
|
inline |
Sets FED crate for this channel.
Definition at line 231 of file FedChannelConnection.h.
References fedCrate_.
|
inline |
Returns FED id for this channel.
Definition at line 224 of file FedChannelConnection.h.
References fedId_.
Referenced by SiStripPopConFEDErrorsHandlerFromDQM::addBadStrips(), CommissioningHistosUsingDb::addDcuDetIds(), SiStripDetCabling::addDevices(), SiStripModule::addDevices(), APVShotsAnalyzer::analyze(), SiStripCondObjBuilderFromDb::buildFEDRelatedObjects(), CommissioningTask::CommissioningTask(), consistencyCheck(), APVShotsFilter::filter(), SiStripCondObjBuilderFromDb::SkipDeviceDescription::isConsistent(), operator<(), print(), SiStripCondObjBuilderFromDb::setValuesApvTiming(), SiStripCondObjBuilderFromDb::setValuesCabling(), terse(), PedsOnlyHistosUsingDb::update(), DaqScopeModeHistosUsingDb::update(), PedsFullNoiseHistosUsingDb::update(), PedestalsHistosUsingDb::update(), NoiseHistosUsingDb::update(), ApvTimingHistosUsingDb::update(), and CommissioningTask::~CommissioningTask().
|
inline |
Sets FED id for this channel.
Definition at line 229 of file FedChannelConnection.h.
References fedId_.
|
inline |
Returns FED slot for this channel.
Definition at line 223 of file FedChannelConnection.h.
References fedSlot_.
Referenced by SiStripModule::addDevices(), SiStripFedCablingBuilderFromDb::buildFecCablingFromDevices(), SiStripFedCablingBuilderFromDb::buildFecCablingFromFedConnections(), consistencyCheck(), print(), and terse().
|
inline |
Sets FED slot for this channel.
Definition at line 232 of file FedChannelConnection.h.
References fedSlot_.
|
inline |
Returns the length of the optical fiber
Definition at line 227 of file FedChannelConnection.h.
References length_.
Referenced by consistencyCheck().
const uint16_t & FedChannelConnection::i2cAddr | ( | const uint16_t & | apv0_or_1 | ) | const |
Indicates whether APV0 or APV1 of the pair has been found: a non-zero value indicates the I2C address; a null value signifies a problematic APV.
Definition at line 83 of file FedChannelConnection.cc.
References apv0_, apv1_, edm::isDebugEnabled(), and sistrip::mlCabling_.
Referenced by SiStripModule::addDevices(), consistencyCheck(), SiStripCondObjBuilderFromDb::SkipDeviceDescription::isConsistent(), print(), SiStripCondObjBuilderFromDb::setValuesApvLatency(), and terse().
|
inline |
Identifies a valid connection.
Definition at line 200 of file FedChannelConnection.h.
References fedCh_, fedId_, and sistrip::invalid_.
Referenced by SiStripPopConFEDErrorsHandlerFromDQM::addBadAPV(), SiStripSpyMonitorModule::analyze(), SiStripCMMonitorPlugin::analyze(), APVShotsAnalyzer::analyze(), SiStripPopConFEDErrorsHandlerFromDQM::dqmEndJob(), APVShotsFilter::filter(), SiStripPopConFEDErrorsHandlerFromDQM::readHistogram(), and ~FedChannelConnection().
|
inline |
Indicates whether Linear Laser Driver ASIC is found.
Definition at line 214 of file FedChannelConnection.h.
References lld0x60_.
Referenced by SiStripModule::addDevices(), consistencyCheck(), and print().
uint16_t FedChannelConnection::lldChannel | ( | ) | const |
Returns Laser Driver channel (1->3) for this channel.
Definition at line 99 of file FedChannelConnection.cc.
References apv0_, apv1_, sistrip::invalid_, edm::isDebugEnabled(), and sistrip::mlCabling_.
Referenced by CommissioningHistosUsingDb::addDcuDetIds(), CommissioningTask::CommissioningTask(), consistencyCheck(), SiStripCondObjBuilderFromDb::SkipDeviceDescription::isConsistent(), print(), PedsOnlyHistosUsingDb::update(), PedestalsHistosUsingDb::update(), PedsFullNoiseHistosUsingDb::update(), DaqScopeModeHistosUsingDb::update(), NoiseHistosUsingDb::update(), ApvTimingHistosUsingDb::update(), and CommissioningTask::~CommissioningTask().
|
inline |
Indicates whether APV-MUX ASIC is found.
Definition at line 212 of file FedChannelConnection.h.
References mux0x43_.
Referenced by SiStripModule::addDevices(), consistencyCheck(), and print().
|
inline |
Returns number of APV pairs for this module.
Definition at line 219 of file FedChannelConnection.h.
References nApvPairs_.
Referenced by SiStripModule::addDevices(), SiStripCMMonitorPlugin::analyze(), consistencyCheck(), SiStripFecCabling::nApvPairs(), nApvs(), print(), sistrip::FEDEmulatorModule::produce(), and terse().
|
inline |
Returns number of APVs for this module.
Definition at line 220 of file FedChannelConnection.h.
References nApvPairs().
Referenced by consistencyCheck().
|
inline |
Returns number of detector strips for this module.
Definition at line 218 of file FedChannelConnection.h.
References nApvPairs_.
Referenced by consistencyCheck().
|
inline |
Indicates whether PLL ASIC is found.
Definition at line 213 of file FedChannelConnection.h.
References pll0x44_.
Referenced by SiStripModule::addDevices(), consistencyCheck(), and print().
void FedChannelConnection::print | ( | std::stringstream & | ss | ) | const |
Prints all information for this connection object.
Definition at line 160 of file FedChannelConnection.cc.
References apvPairNumber(), ccuAddr(), ccuChan(), dcu(), dcuId(), TauDecayModes::dec, detId(), fecCrate(), SiStripFedKey::feChan(), fecRing(), fecSlot(), fedCh(), fedCrate(), fedId(), fedSlot(), SiStripFedKey::feUnit(), i2cAddr(), lld(), lldChannel(), mux(), nApvPairs(), and pll().
Referenced by consistencyCheck(), and operator<<().
|
private |
void FedChannelConnection::terse | ( | std::stringstream & | ss | ) | const |
Prints terse information for this connection object.
Definition at line 199 of file FedChannelConnection.cc.
References apvPairNumber(), ccuAddr(), ccuChan(), dcuId(), TauDecayModes::dec, detId(), fecCrate(), SiStripFedKey::feChan(), fecRing(), fecSlot(), fedCh(), fedCrate(), fedId(), fedSlot(), SiStripFedKey::feUnit(), i2cAddr(), and nApvPairs().
Referenced by consistencyCheck().
|
friend |
Definition at line 195 of file FedChannelConnection.h.
|
friend |
Definition at line 195 of file FedChannelConnection.h.
|
private |
Definition at line 173 of file FedChannelConnection.h.
Referenced by apvPairNumber(), i2cAddr(), and lldChannel().
|
private |
Definition at line 174 of file FedChannelConnection.h.
Referenced by apvPairNumber(), i2cAddr(), and lldChannel().
|
private |
Definition at line 169 of file FedChannelConnection.h.
Referenced by ccuAddr().
|
private |
Definition at line 170 of file FedChannelConnection.h.
Referenced by ccuChan().
|
private |
Definition at line 189 of file FedChannelConnection.h.
Referenced by dcu().
|
private |
Definition at line 177 of file FedChannelConnection.h.
Referenced by dcuId().
|
private |
Definition at line 178 of file FedChannelConnection.h.
Referenced by detId().
|
private |
Definition at line 166 of file FedChannelConnection.h.
Referenced by fecCrate().
|
private |
Definition at line 168 of file FedChannelConnection.h.
Referenced by fecRing().
|
private |
Definition at line 167 of file FedChannelConnection.h.
Referenced by fecSlot().
|
private |
Definition at line 185 of file FedChannelConnection.h.
Referenced by fedCh(), and isConnected().
|
private |
Definition at line 182 of file FedChannelConnection.h.
Referenced by fedCrate().
|
private |
Definition at line 184 of file FedChannelConnection.h.
Referenced by fedId(), and isConnected().
|
private |
Definition at line 183 of file FedChannelConnection.h.
Referenced by fedSlot().
|
private |
Definition at line 186 of file FedChannelConnection.h.
Referenced by fiberLength().
|
private |
Definition at line 192 of file FedChannelConnection.h.
Referenced by lld().
|
private |
Definition at line 190 of file FedChannelConnection.h.
Referenced by mux().
|
private |
Definition at line 179 of file FedChannelConnection.h.
Referenced by apvPairNumber(), nApvPairs(), and nDetStrips().
|
private |
Definition at line 191 of file FedChannelConnection.h.
Referenced by pll().