#include <RPCReadOutMapping.h>
Public Types | |
typedef std::pair< uint32_t, int > | StripInDetUnit |
first member is DetUnit ID, second strip in DetUnit frame More... | |
Public Member Functions | |
void | add (const DccSpec &dcc) |
attach FED to map More... | |
const DccSpec * | dcc (int dccId) const |
FED identified by ID. More... | |
std::vector< const DccSpec * > | dccList () const |
all FEDs in map More... | |
std::pair< int, int > | dccNumberRange () const |
Range of FED IDs in map (min and max id) More... | |
virtual StripInDetUnit | detUnitFrame (const LinkBoardSpec &location, const LinkBoardPackedStrip &packedStrip) const |
convert strip location as in raw data (LB and LBchannel) to detUnit frame More... | |
std::vector< const LinkBoardSpec * > | getLBforChamber (const std::string &name) const |
std::pair< LinkBoardElectronicIndex, int > | getRAWSpecForCMSChamberSrip (uint32_t detId, int strip, int dccInputChannel) const |
virtual const LinkBoardSpec * | location (const LinkBoardElectronicIndex &ele) const |
conversion between electronic and detector indexing More... | |
std::vector< std::pair< LinkBoardElectronicIndex, LinkBoardPackedStrip > > | rawDataFrame (const StripInDetUnit &duFrame) const |
connection "paths" that lead from one digi to one strip More... | |
RPCReadOutMapping (const std::string &version="") | |
const std::string & | version () const |
version as string More... | |
virtual | ~RPCReadOutMapping () |
Private Types | |
typedef std::map< int, DccSpec >::const_iterator | IMAP |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
std::map< int, DccSpec > | theFeds |
std::string | theVersion |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Description: Class to map read-out channels to physical RPC strips
Definition at line 23 of file RPCReadOutMapping.h.
|
private |
Definition at line 69 of file RPCReadOutMapping.h.
typedef std::pair<uint32_t,int> RPCReadOutMapping::StripInDetUnit |
first member is DetUnit ID, second strip in DetUnit frame
Definition at line 27 of file RPCReadOutMapping.h.
RPCReadOutMapping::RPCReadOutMapping | ( | const std::string & | version = "" | ) |
Definition at line 18 of file RPCReadOutMapping.cc.
|
inlinevirtual |
Definition at line 30 of file RPCReadOutMapping.h.
References add(), dcc(), ecaldqm::dccId(), dccList(), and dccNumberRange().
void RPCReadOutMapping::add | ( | const DccSpec & | dcc | ) |
attach FED to map
Definition at line 28 of file RPCReadOutMapping.cc.
References dcc(), DccSpec::id(), and theFeds.
Referenced by RPCEMap::convert(), counter.Counter::register(), SequenceTypes.Task::remove(), SequenceTypes.Task::replace(), and ~RPCReadOutMapping().
const DccSpec * RPCReadOutMapping::dcc | ( | int | dccId | ) | const |
FED identified by ID.
Definition at line 21 of file RPCReadOutMapping.cc.
References theFeds.
Referenced by add(), location(), and ~RPCReadOutMapping().
std::vector< const DccSpec * > RPCReadOutMapping::dccList | ( | ) | const |
all FEDs in map
Definition at line 34 of file RPCReadOutMapping.cc.
References mps_fire::result, and theFeds.
Referenced by popcon::RPCEMapSourceHandler::Compare2EMaps(), RPCReadOutMappingWithFastSearch::init(), RPCLinkSynchroStat::init(), and ~RPCReadOutMapping().
std::pair< int, int > RPCReadOutMapping::dccNumberRange | ( | ) | const |
Range of FED IDs in map (min and max id)
Definition at line 44 of file RPCReadOutMapping.cc.
References plotBeamSpotDB::first, plotBeamSpotDB::last, and theFeds.
Referenced by popcon::RPCEMapSourceHandler::Compare2EMaps(), and ~RPCReadOutMapping().
|
virtual |
convert strip location as in raw data (LB and LBchannel) to detUnit frame
Reimplemented in RPCReadOutMappingWithFastSearch.
Definition at line 132 of file RPCReadOutMapping.cc.
References ChamberStripSpec::chamberStripNumber, LinkBoardSpec::feb(), LinkBoardPackedStrip::febInLB(), LogDebug, LinkBoardSpec::print(), FebConnectorSpec::rawId(), digi_MixPreMix_cfi::strip, FebConnectorSpec::strip(), and LinkBoardPackedStrip::stripPinInFeb().
Referenced by RPCReadOutMappingWithFastSearch::detUnitFrame(), RPCRecordFormatter::recordUnpack(), and version().
std::vector< const LinkBoardSpec * > RPCReadOutMapping::getLBforChamber | ( | const std::string & | name | ) | const |
Definition at line 205 of file RPCReadOutMapping.cc.
References FebConnectorSpec::chamber(), ChamberLocationSpec::chamberLocationName(), LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, LinkBoardSpec::feb(), gen::k, LinkBoardElectronicIndex::lbNumInLink, location(), AlCaHLTBitMon_QueryRunRegistry::string, and LinkBoardElectronicIndex::tbLinkInputNum.
Referenced by version().
std::pair< LinkBoardElectronicIndex, int > RPCReadOutMapping::getRAWSpecForCMSChamberSrip | ( | uint32_t | detId, |
int | strip, | ||
int | dccInputChannel | ||
) | const |
Definition at line 169 of file RPCReadOutMapping.cc.
References ChamberStripSpec::cmsStripNumber, gather_cfg::cout, LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, LinkBoardSpec::feb(), mps_fire::i, gen::k, checklumidiff::l, LinkBoardElectronicIndex::lbNumInLink, location(), FebConnectorSpec::rawId(), FebConnectorSpec::strip(), and LinkBoardElectronicIndex::tbLinkInputNum.
Referenced by version().
|
virtual |
conversion between electronic and detector indexing
Reimplemented in RPCReadOutMappingWithFastSearch.
Definition at line 114 of file RPCReadOutMapping.cc.
References dcc(), LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, LinkBoardElectronicIndex::lbNumInLink, LinkConnSpec::linkBoard(), TriggerBoardSpec::linkConn(), LinkBoardElectronicIndex::tbLinkInputNum, and DccSpec::triggerBoard().
Referenced by getLBforChamber(), getRAWSpecForCMSChamberSrip(), RPCRecordFormatter::recordUnpack(), and version().
std::vector< std::pair< LinkBoardElectronicIndex, LinkBoardPackedStrip > > RPCReadOutMapping::rawDataFrame | ( | const StripInDetUnit & | duFrame | ) | const |
connection "paths" that lead from one digi to one strip
Definition at line 57 of file RPCReadOutMapping.cc.
References FebConnectorSpec::cablePinNum(), FebConnectorSpec::chamberStripNum(), LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, TriggerBoardSpec::dccInputChannelNum(), TriggerBoardSpec::enabledLinkConns(), LinkBoardSpec::febs(), cuy::ib, DccSpec::id(), LinkBoardElectronicIndex::lbNumInLink, FebConnectorSpec::linkBoardInputNum(), LinkBoardSpec::linkBoardNumInLink(), LinkConnSpec::linkBoards(), FebConnectorSpec::nstrips(), FebConnectorSpec::rawId(), mps_fire::result, LinkBoardElectronicIndex::tbLinkInputNum, theFeds, LinkConnSpec::triggerBoardInputNumber(), and DccSpec::triggerBoards().
Referenced by RPCRecordFormatter::recordPack(), and version().
|
private |
|
inline |
version as string
Definition at line 46 of file RPCReadOutMapping.h.
References detUnitFrame(), getLBforChamber(), getRAWSpecForCMSChamberSrip(), location(), dataset::name, rawDataFrame(), AlCaHLTBitMon_QueryRunRegistry::string, digi_MixPreMix_cfi::strip, and theVersion.
Referenced by RPCUnpackingModule::beginRun(), validation.Sample::datasetpattern(), RPCMonitorLinkSynchro::dqmBeginRun(), validation.Sample::filename(), and RPCReadOutMappingWithFastSearch::init().
|
friend |
Definition at line 74 of file RPCReadOutMapping.h.
|
friend |
Definition at line 74 of file RPCReadOutMapping.h.
|
private |
Definition at line 70 of file RPCReadOutMapping.h.
Referenced by add(), dcc(), dccList(), dccNumberRange(), and rawDataFrame().
|
private |
Definition at line 71 of file RPCReadOutMapping.h.
Referenced by version().