#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 22 of file RPCReadOutMapping.h.
|
private |
Definition at line 62 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 25 of file RPCReadOutMapping.h.
RPCReadOutMapping::RPCReadOutMapping | ( | const std::string & | version = "" | ) |
Definition at line 16 of file RPCReadOutMapping.cc.
|
inlinevirtual |
Definition at line 28 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 24 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 18 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 26 of file RPCReadOutMapping.cc.
References mps_fire::result, and theFeds.
Referenced by popcon::RPCEMapSourceHandler::Compare2EMaps(), RPCReadOutMappingWithFastSearch::init(), RPCLinkSynchroStat::init(), omtf::translateOmtf2Pact(), and ~RPCReadOutMapping().
std::pair< int, int > RPCReadOutMapping::dccNumberRange | ( | ) | const |
Range of FED IDs in map (min and max id)
Definition at line 35 of file RPCReadOutMapping.cc.
References dqmdumpme::first, dqmdumpme::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 113 of file RPCReadOutMapping.cc.
References ChamberStripSpec::chamberStripNumber, LinkBoardSpec::feb(), LinkBoardPackedStrip::febInLB(), LogDebug, LinkBoardSpec::print(), FebConnectorSpec::rawId(), digitizers_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 180 of file RPCReadOutMapping.cc.
References FebConnectorSpec::chamber(), ChamberLocationSpec::chamberLocationName(), LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, LinkBoardSpec::feb(), dqmiolumiharvest::j, dqmdumpme::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 144 of file RPCReadOutMapping.cc.
References ChamberStripSpec::cmsStripNumber, gather_cfg::cout, LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, LinkBoardSpec::feb(), mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, cmsLHEtoEOSManager::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 97 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 46 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, MainPageGenerator::link, 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 43 of file RPCReadOutMapping.h.
References detUnitFrame(), getLBforChamber(), getRAWSpecForCMSChamberSrip(), location(), Skims_PA_cff::name, rawDataFrame(), AlCaHLTBitMon_QueryRunRegistry::string, digitizers_cfi::strip, and theVersion.
Referenced by RPCUnpackingModule::beginRun(), validation.Sample::datasetpattern(), validation.Sample::filename(), and RPCReadOutMappingWithFastSearch::init().
|
friend |
Definition at line 66 of file RPCReadOutMapping.h.
|
friend |
Definition at line 66 of file RPCReadOutMapping.h.
|
private |
Definition at line 63 of file RPCReadOutMapping.h.
Referenced by add(), dcc(), dccList(), dccNumberRange(), and rawDataFrame().
|
private |
Definition at line 64 of file RPCReadOutMapping.h.
Referenced by version().