CMS 3D CMS Logo

RPCReadOutMapping.h
Go to the documentation of this file.
1 #ifndef RPCReadOutMapping_H
2 #define RPCReadOutMapping_H
3 
10 
11 #include <map>
12 #include <vector>
13 #include <utility>
14 #include <string>
15 
19 #include <cstdint>
20 class LinkBoardSpec;
21 
23 public:
25  typedef std::pair<uint32_t, int> StripInDetUnit;
26 
28  virtual ~RPCReadOutMapping() {}
29 
31  const DccSpec* dcc(int dccId) const;
32 
34  std::pair<int, int> dccNumberRange() const;
35 
37  std::vector<const DccSpec*> dccList() const;
38 
40  void add(const DccSpec& dcc);
41 
43  const std::string& version() const { return theVersion; }
44 
46  virtual const LinkBoardSpec* location(const LinkBoardElectronicIndex& ele) const;
47 
49  virtual StripInDetUnit detUnitFrame(const LinkBoardSpec& location, const LinkBoardPackedStrip& packedStrip) const;
50 
52  std::vector<std::pair<LinkBoardElectronicIndex, LinkBoardPackedStrip> > rawDataFrame(
53  const StripInDetUnit& duFrame) const;
54 
55  // TEMPORARY
56  std::vector<const LinkBoardSpec*> getLBforChamber(const std::string& name) const;
57  std::pair<LinkBoardElectronicIndex, int> getRAWSpecForCMSChamberSrip(uint32_t detId,
58  int strip,
59  int dccInputChannel) const;
60 
61 private:
62  typedef std::map<int, DccSpec>::const_iterator IMAP;
63  std::map<int, DccSpec> theFeds;
65 
67 };
68 
69 #endif // RPCReadOutMapping_H
RPCReadOutMapping::IMAP
std::map< int, DccSpec >::const_iterator IMAP
Definition: RPCReadOutMapping.h:62
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
RPCReadOutMapping::RPCReadOutMapping
RPCReadOutMapping(const std::string &version="")
Definition: RPCReadOutMapping.cc:16
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
RPCReadOutMapping::version
const std::string & version() const
version as string
Definition: RPCReadOutMapping.h:43
RPCReadOutMapping::getLBforChamber
std::vector< const LinkBoardSpec * > getLBforChamber(const std::string &name) const
Definition: RPCReadOutMapping.cc:180
RPCReadOutMapping::location
virtual const LinkBoardSpec * location(const LinkBoardElectronicIndex &ele) const
conversion between electronic and detector indexing
Definition: RPCReadOutMapping.cc:97
RPCReadOutMapping::add
void add(const DccSpec &dcc)
attach FED to map
Definition: RPCReadOutMapping.cc:24
RPCReadOutMapping::dcc
const DccSpec * dcc(int dccId) const
FED identified by ID.
Definition: RPCReadOutMapping.cc:18
RPCReadOutMapping::getRAWSpecForCMSChamberSrip
std::pair< LinkBoardElectronicIndex, int > getRAWSpecForCMSChamberSrip(uint32_t detId, int strip, int dccInputChannel) const
Definition: RPCReadOutMapping.cc:144
RPCReadOutMapping::~RPCReadOutMapping
virtual ~RPCReadOutMapping()
Definition: RPCReadOutMapping.h:28
RPCReadOutMapping::theVersion
std::string theVersion
Definition: RPCReadOutMapping.h:64
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RPCReadOutMapping::detUnitFrame
virtual StripInDetUnit detUnitFrame(const LinkBoardSpec &location, const LinkBoardPackedStrip &packedStrip) const
convert strip location as in raw data (LB and LBchannel) to detUnit frame
Definition: RPCReadOutMapping.cc:113
LinkBoardSpec
Definition: LinkBoardSpec.h:13
RPCReadOutMapping::theFeds
std::map< int, DccSpec > theFeds
Definition: RPCReadOutMapping.h:63
Serializable.h
RPCReadOutMapping
Definition: RPCReadOutMapping.h:22
RPCReadOutMapping::rawDataFrame
std::vector< std::pair< LinkBoardElectronicIndex, LinkBoardPackedStrip > > rawDataFrame(const StripInDetUnit &duFrame) const
connection "paths" that lead from one digi to one strip
Definition: RPCReadOutMapping.cc:46
RPCReadOutMapping::dccList
std::vector< const DccSpec * > dccList() const
all FEDs in map
Definition: RPCReadOutMapping.cc:26
LinkBoardElectronicIndex.h
LinkBoardElectronicIndex
Definition: LinkBoardElectronicIndex.h:10
DccSpec
Definition: DccSpec.h:16
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
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
LinkBoardPackedStrip.h
RPCReadOutMapping::dccNumberRange
std::pair< int, int > dccNumberRange() const
Range of FED IDs in map (min and max id)
Definition: RPCReadOutMapping.cc:35
DccSpec.h
ecaldqm::dccId
unsigned dccId(DetId const &)
Definition: EcalDQMCommonUtils.cc:16