CMS 3D CMS Logo

RPCReadOutMappingWithFastSearch.h
Go to the documentation of this file.
1 #ifndef RPCReadOutMappingWithFastSearch_H
2 #define RPCReadOutMappingWithFastSearch_H
3 
5 #include <string>
6 #include <map>
7 
9 public:
12 
14  void init(const RPCReadOutMapping* arm);
15 
16  const LinkBoardSpec* location(const LinkBoardElectronicIndex& ele) const override;
17 
19  const LinkBoardPackedStrip& lbstrip) const override;
20 
21 private:
24 
25  struct lessMap {
26  bool operator()(const LinkBoardElectronicIndex& lb1, const LinkBoardElectronicIndex& lb2) const;
27  };
28 
29  typedef std::map<LinkBoardElectronicIndex, const LinkBoardSpec*, lessMap> LBMap;
31 };
32 #endif
RPCReadOutMappingWithFastSearch::location
const LinkBoardSpec * location(const LinkBoardElectronicIndex &ele) const override
conversion between electronic and detector indexing
Definition: RPCReadOutMappingWithFastSearch.cc:75
RPCReadOutMapping.h
RPCReadOutMappingWithFastSearch::detUnitFrame
RPCReadOutMapping::StripInDetUnit detUnitFrame(const LinkBoardSpec &location, const LinkBoardPackedStrip &lbstrip) const override
convert strip location as in raw data (LB and LBchannel) to detUnit frame
Definition: RPCReadOutMappingWithFastSearch.cc:70
RPCReadOutMappingWithFastSearch::lessMap
Definition: RPCReadOutMappingWithFastSearch.h:25
RPCReadOutMappingWithFastSearch::~RPCReadOutMappingWithFastSearch
~RPCReadOutMappingWithFastSearch() override
Definition: RPCReadOutMappingWithFastSearch.h:11
RPCReadOutMappingWithFastSearch::init
void init(const RPCReadOutMapping *arm)
takes ownership of map
Definition: RPCReadOutMappingWithFastSearch.cc:30
RPCReadOutMappingWithFastSearch::RPCReadOutMappingWithFastSearch
RPCReadOutMappingWithFastSearch()
Definition: RPCReadOutMappingWithFastSearch.cc:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RPCReadOutMappingWithFastSearch::lessMap::operator()
bool operator()(const LinkBoardElectronicIndex &lb1, const LinkBoardElectronicIndex &lb2) const
Definition: RPCReadOutMappingWithFastSearch.cc:7
RPCReadOutMappingWithFastSearch::theVersion
std::string theVersion
Definition: RPCReadOutMappingWithFastSearch.h:22
LinkBoardSpec
Definition: LinkBoardSpec.h:13
RPCReadOutMappingWithFastSearch
Definition: RPCReadOutMappingWithFastSearch.h:8
RPCReadOutMapping
Definition: RPCReadOutMapping.h:22
LinkBoardElectronicIndex
Definition: LinkBoardElectronicIndex.h:10
protons_cff.arm
arm
Definition: protons_cff.py:43
LinkBoardPackedStrip
Definition: LinkBoardPackedStrip.h:4
RPCReadOutMapping::StripInDetUnit
std::pair< uint32_t, int > StripInDetUnit
first member is DetUnit ID, second strip in DetUnit frame
Definition: RPCReadOutMapping.h:25
RPCReadOutMappingWithFastSearch::LBMap
std::map< LinkBoardElectronicIndex, const LinkBoardSpec *, lessMap > LBMap
Definition: RPCReadOutMappingWithFastSearch.h:29
RPCReadOutMappingWithFastSearch::theLBMap
LBMap theLBMap
Definition: RPCReadOutMappingWithFastSearch.h:30
RPCReadOutMappingWithFastSearch::theMapping
const RPCReadOutMapping * theMapping
Definition: RPCReadOutMappingWithFastSearch.h:23