|
|
Go to the documentation of this file.
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();
124 if (
strip.chamberStripNumber > -1) {
125 stripInDU =
strip.chamberStripNumber;
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++) {
199 for (
int j = 0;
j < 6;
j++) {
204 if (chName ==
name) {
214 return vLBforChamber;
std::map< int, DccSpec >::const_iterator IMAP
std::vector< const LinkConnSpec * > enabledLinkConns() const
not masked links belonging to this TB
std::string chamberLocationName() const
const ChamberStripSpec strip(int pinNumber) const
strip info for input pin
RPCReadOutMapping(const std::string &version="")
std::vector< const LinkBoardSpec * > getLBforChamber(const std::string &name) const
const int cablePinNum(int istrip) const
int stripPinInFeb() const
virtual const LinkBoardSpec * location(const LinkBoardElectronicIndex &ele) const
conversion between electronic and detector indexing
const int chamberStripNum(int istrip) const
void add(const DccSpec &dcc)
attach FED to map
const DccSpec * dcc(int dccId) const
FED identified by ID.
const std::vector< TriggerBoardSpec > & triggerBoards() const
std::pair< LinkBoardElectronicIndex, int > getRAWSpecForCMSChamberSrip(uint32_t detId, int strip, int dccInputChannel) const
const uint32_t & rawId() const
DetUnit to which data belongs.
virtual StripInDetUnit detUnitFrame(const LinkBoardSpec &location, const LinkBoardPackedStrip &packedStrip) const
convert strip location as in raw data (LB and LBchannel) to detUnit frame
int linkBoardNumInLink() const
this LB number in link
std::map< int, DccSpec > theFeds
std::vector< std::pair< LinkBoardElectronicIndex, LinkBoardPackedStrip > > rawDataFrame(const StripInDetUnit &duFrame) const
connection "paths" that lead from one digi to one strip
std::vector< const DccSpec * > dccList() const
all FEDs in map
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
const std::vector< FebConnectorSpec > & febs() const
int dccInputChannelNum() const
input channel number to DCC
const TriggerBoardSpec * triggerBoard(int channelNumber) const
TB attached to channel.
const LinkBoardSpec * linkBoard(int linkBoardNumInLink) const
LB served by this link, identified by its position in link.
int linkBoardInputNum() const
this FEB channel in LinkBoard
const int nstrips() const
const LinkConnSpec * linkConn(int tbInputNumber) const
link attached to this TB with given input number
std::pair< uint32_t, int > StripInDetUnit
first member is DetUnit ID, second strip in DetUnit frame
const ChamberLocationSpec & chamber() 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)
std::string print(int depth=0) const
debud printout