#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 Attributes | |
std::map< int, DccSpec > | theFeds |
std::string | theVersion |
Description: Class to map read-out channels to physical RPC strips
Definition at line 21 of file RPCReadOutMapping.h.
|
private |
Definition at line 67 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 18 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 28 of file RPCReadOutMapping.cc.
References dcc(), DccSpec::id(), and theFeds.
Referenced by RPCEMap::convert().
const DccSpec * RPCReadOutMapping::dcc | ( | int | dccId | ) | const |
FED identified by ID.
Definition at line 21 of file RPCReadOutMapping.cc.
References theFeds.
Referenced by add(), and location().
std::vector< const DccSpec * > RPCReadOutMapping::dccList | ( | ) | const |
all FEDs in map
Definition at line 34 of file RPCReadOutMapping.cc.
References query::result, and theFeds.
Referenced by popcon::RPCEMapSourceHandler::Compare2EMaps(), RPCReadOutMappingWithFastSearch::init(), and RPCLinkSynchroStat::init().
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 first, prof2calltree::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 132 of file RPCReadOutMapping.cc.
References ChamberStripSpec::chamberStripNumber, LinkBoardSpec::feb(), LinkBoardPackedStrip::febInLB(), LogDebug, LinkBoardSpec::print(), FebConnectorSpec::rawId(), FebConnectorSpec::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 205 of file RPCReadOutMapping.cc.
References FebConnectorSpec::chamber(), ChamberLocationSpec::chamberLocationName(), LinkBoardElectronicIndex::dccId, LinkBoardElectronicIndex::dccInputChannelNum, LinkBoardSpec::feb(), j, gen::k, LinkBoardElectronicIndex::lbNumInLink, location(), AlCaHLTBitMon_QueryRunRegistry::string, and LinkBoardElectronicIndex::tbLinkInputNum.
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(), i, j, gen::k, ConfigFiles::l, LinkBoardElectronicIndex::lbNumInLink, location(), FebConnectorSpec::rawId(), FebConnectorSpec::strip(), and LinkBoardElectronicIndex::tbLinkInputNum.
|
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(), 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 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, link(), FebConnectorSpec::linkBoardInputNum(), LinkBoardSpec::linkBoardNumInLink(), LinkConnSpec::linkBoards(), FebConnectorSpec::nstrips(), FebConnectorSpec::rawId(), query::result, LinkBoardElectronicIndex::tbLinkInputNum, theFeds, LinkConnSpec::triggerBoardInputNumber(), and DccSpec::triggerBoards().
Referenced by RPCRecordFormatter::recordPack().
|
inline |
version as string
Definition at line 44 of file RPCReadOutMapping.h.
References theVersion.
Referenced by RPCMonitorLinkSynchro::beginRun(), RPCUnpackingModule::beginRun(), RPCReadOutMappingWithFastSearch::init(), and RPCPackingModule::produce().
|
private |
Definition at line 68 of file RPCReadOutMapping.h.
Referenced by add(), dcc(), dccList(), dccNumberRange(), and rawDataFrame().
|
private |
Definition at line 69 of file RPCReadOutMapping.h.
Referenced by version().