#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.
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._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
const DccSpec * RPCReadOutMapping::dcc | ( | int | dccId | ) | const |
FED identified by ID.
Definition at line 18 of file RPCReadOutMapping.cc.
References ecaldqm::dccId(), and theFeds.
Referenced by add(), and location().
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(), and omtf::translateOmtf2Pact().
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().
|
virtual |
convert strip location as in raw data (LB and LBchannel) to detUnit frame
Reimplemented in RPCReadOutMappingWithFastSearch.
Definition at line 108 of file RPCReadOutMapping.cc.
References LinkBoardSpec::feb(), LinkBoardPackedStrip::febInLB(), location(), LogDebug, LinkBoardSpec::print(), FebConnectorSpec::rawId(), FebConnectorSpec::strip(), nano_mu_digi_cff::strip, and LinkBoardPackedStrip::stripPinInFeb().
Referenced by RPCReadOutMappingWithFastSearch::detUnitFrame(), and RPCRecordFormatter::recordUnpack().
std::vector< const LinkBoardSpec * > RPCReadOutMapping::getLBforChamber | ( | const std::string & | name | ) | const |
Definition at line 175 of file RPCReadOutMapping.cc.
References FebConnectorSpec::chamber(), ChamberLocationSpec::chamberLocationName(), LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, LinkBoardSpec::feb(), dqmiolumiharvest::j, isotrackApplyRegressor::k, LinkBoardElectronicIndex::lbNumInLink, location(), mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, and LinkBoardElectronicIndex::tbLinkInputNum.
std::pair< LinkBoardElectronicIndex, int > RPCReadOutMapping::getRAWSpecForCMSChamberSrip | ( | uint32_t | detId, |
int | strip, | ||
int | dccInputChannel | ||
) | const |
Definition at line 139 of file RPCReadOutMapping.cc.
References ChamberStripSpec::cmsStripNumber, gather_cfg::cout, LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, hcalRecHitTable_cff::detId, LinkBoardSpec::feb(), mps_fire::i, dqmiolumiharvest::j, isotrackApplyRegressor::k, MainPageGenerator::l, LinkBoardElectronicIndex::lbNumInLink, location(), FebConnectorSpec::rawId(), FebConnectorSpec::strip(), nano_mu_digi_cff::strip, and LinkBoardElectronicIndex::tbLinkInputNum.
|
virtual |
conversion between electronic and detector indexing
Reimplemented in RPCReadOutMappingWithFastSearch.
Definition at line 92 of file RPCReadOutMapping.cc.
References dcc(), LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, LinkBoardElectronicIndex::lbNumInLink, LinkConnSpec::linkBoard(), TriggerBoardSpec::linkConn(), LinkBoardElectronicIndex::tbLinkInputNum, and DccSpec::triggerBoard().
Referenced by detUnitFrame(), getLBforChamber(), getRAWSpecForCMSChamberSrip(), and RPCRecordFormatter::recordUnpack().
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 l1ctLayer1_cff::boards, FebConnectorSpec::cablePinNum(), FebConnectorSpec::chamberStripNum(), LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, TriggerBoardSpec::dccInputChannelNum(), TriggerBoardSpec::enabledLinkConns(), LinkBoardSpec::febs(), cuy::ib, DccSpec::id(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, 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().
|
private |
|
inline |
version as string
Definition at line 43 of file RPCReadOutMapping.h.
References theVersion.
Referenced by RPCUnpackingModule::beginRun(), validation.Sample::datasetpattern(), and validation.Sample::filename().
|
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().