20 const DccSpec &ddc = (*im).second;
21 return (im !=
theFeds.end()) ? &ddc :
nullptr;
27 std::vector<const DccSpec *>
result;
30 result.push_back(&(im->second));
37 return std::make_pair(0, -1);
42 return std::make_pair(first->first, last->first);
48 std::vector<std::pair<LinkBoardElectronicIndex, LinkBoardPackedStrip> >
result;
51 const uint32_t &rawDetId = stripInDetUnit.first;
52 const int &stripInDU = stripInDetUnit.second;
55 const DccSpec &dccSpec = (*im).second;
56 const std::vector<TriggerBoardSpec> &triggerBoards = dccSpec.
triggerBoards();
57 for (std::vector<TriggerBoardSpec>::const_iterator it = triggerBoards.begin(); it != triggerBoards.end(); it++) {
59 typedef std::vector<const LinkConnSpec *> LINKS;
61 for (LINKS::const_iterator ic = linkConns.begin(); ic != linkConns.end(); ic++) {
63 const std::vector<LinkBoardSpec> &boards = link.
linkBoards();
64 for (std::vector<LinkBoardSpec>::const_iterator
ib = boards.begin();
ib != boards.end();
ib++) {
72 const std::vector<FebConnectorSpec> &febs = board.
febs();
74 for (std::vector<FebConnectorSpec>::const_iterator ifc = febs.begin(); ifc != febs.end(); ifc++) {
77 if (febConnector.
rawId() != rawDetId)
83 for (
int istrip = 0; istrip < febConnector.
nstrips(); istrip++) {
84 int stripPinInFeb = febConnector.
cablePinNum(istrip);
115 uint32_t detUnit = 0;
117 int febInLB = lbstrip.
febInLB();
122 detUnit = feb->
rawId();
130 LogDebug(
"") <<
"problem with stip for febInLB: " << febInLB <<
" strip pin: " << stripPinInFeb
131 <<
" strip pin: " << stripPinInFeb <<
" for linkBoard: " << location.
print(3);
135 LogDebug(
"") <<
"problem with detUnit for febInLB: " << febInLB <<
" for linkBoard: " << location.
print(1);
137 return std::make_pair(detUnit, stripInDU);
146 int dccInputChannel)
const {
148 linkboard.
dccId = 790;
151 for (
int k = 0;
k < 18;
k++) {
153 for (
int j = 0;
j < 3;
j++) {
157 for (
int i = 1;
i < 7;
i++) {
159 if (feb && feb->
rawId() == detId) {
160 for (
int l = 1;
l < 17;
l++) {
164 int bitInLink = (
i - 1) * 16 +
l - 1;
165 std::pair<LinkBoardElectronicIndex, int> stripInfo(linkboard, bitInLink);
175 std::cout <<
"Strip: " << strip <<
" not found for detector: " << aDet << std::endl;
176 std::pair<LinkBoardElectronicIndex, int> dummyStripInfo(linkboard, -99);
177 return dummyStripInfo;
181 std::vector<const LinkBoardSpec *> vLBforChamber;
184 linkboard.
dccId = 790;
190 for (
int k = 0;
k < 18;
k++) {
193 for (
int j = 0;
j < 3;
j++) {
196 location = this->
location(linkboard);
199 for (
int j = 0;
j < 6;
j++) {
204 if (chName == name) {
205 vLBforChamber.push_back(location);
214 return vLBforChamber;
const std::vector< TriggerBoardSpec > & triggerBoards() const
const int cablePinNum(int istrip) const
const uint32_t & rawId() const
DetUnit to which data belongs.
std::vector< const LinkBoardSpec * > getLBforChamber(const std::string &name) const
RPCReadOutMapping(const std::string &version="")
const ChamberLocationSpec & chamber() const
std::string print(int depth=0) const
debud printout
const LinkBoardSpec * linkBoard(int linkBoardNumInLink) const
LB served by this link, identified by its position in link.
std::vector< const LinkConnSpec * > enabledLinkConns() const
not masked links belonging to this TB
std::vector< const DccSpec * > dccList() const
all FEDs in map
std::map< int, DccSpec >::const_iterator IMAP
int triggerBoardInputNumber() const
this link input number in TriggerBoard
const int nstrips() const
const int chamberStripNum(int istrip) const
const TriggerBoardSpec * triggerBoard(int channelNumber) const
TB attached to channel.
const ChamberStripSpec strip(int pinNumber) const
strip info for input pin
const LinkConnSpec * linkConn(int tbInputNumber) const
link attached to this TB with given input number
std::map< int, DccSpec > theFeds
std::pair< LinkBoardElectronicIndex, int > getRAWSpecForCMSChamberSrip(uint32_t detId, int strip, int dccInputChannel) const
void add(const DccSpec &dcc)
attach FED to map
int stripPinInFeb() const
const FebConnectorSpec * feb(int febInputNum) const
get Feb by its connection number to this board
std::pair< int, int > dccNumberRange() const
Range of FED IDs in map (min and max id)
int linkBoardInputNum() const
this FEB channel in LinkBoard
virtual StripInDetUnit detUnitFrame(const LinkBoardSpec &location, const LinkBoardPackedStrip &packedStrip) const
convert strip location as in raw data (LB and LBchannel) to detUnit frame
std::string chamberLocationName() const
virtual const LinkBoardSpec * location(const LinkBoardElectronicIndex &ele) const
conversion between electronic and detector indexing
const std::vector< FebConnectorSpec > & febs() const
std::vector< std::pair< LinkBoardElectronicIndex, LinkBoardPackedStrip > > rawDataFrame(const StripInDetUnit &duFrame) const
connection "paths" that lead from one digi to one strip
int dccInputChannelNum() const
input channel number to DCC
const DccSpec * dcc(int dccId) const
FED identified by ID.
int linkBoardNumInLink() const
this LB number in link
unsigned dccId(DetId const &)
const std::vector< LinkBoardSpec > & linkBoards() const
std::pair< uint32_t, int > StripInDetUnit
first member is DetUnit ID, second strip in DetUnit frame