CMS 3D CMS Logo

OmtfCscUnpacker.cc
Go to the documentation of this file.
2 
4 
8 
10 
11 namespace omtf {
12 
14 
15  void CscUnpacker::unpack(unsigned int fed,
16  unsigned int amc,
17  const CscDataWord64& data,
19  EleIndex omtfEle(fed, amc, data.linkNum());
20  std::map<EleIndex, CSCDetId>::const_iterator icsc = theOmtf2CscDet.find(omtfEle);
21  if (icsc == theOmtf2CscDet.end()) {
22  LogTrace(" ") << " CANNOT FIND key: " << omtfEle << std::endl;
23  return;
24  }
25  CSCDetId cscId = theOmtf2CscDet[omtfEle];
26  LogTrace("") << "OMTF->CSC " << cscId << std::endl;
27  LogTrace("") << data << std::endl;
28  if (data.linkNum() >= 30) {
29  LogTrace(" ") << " data from overlap, skip digi " << std::endl;
30  return;
31  }
32  CSCCorrelatedLCTDigi digi(data.hitNum(), //trknmb
33  data.valid(),
34  data.quality(),
35  data.wireGroup(),
36  data.halfStrip(),
37  data.clctPattern(),
38  data.bend(),
39  data.bxNum() + (CSCConstants::LCT_CENTRAL_BX - 3));
40  LogTrace("") << digi << std::endl;
41  //producedCscLctDigis->insertDigi( cscId, digi);
42  prod->insertDigi(cscId, digi);
43  }
44 
45 } // namespace omtf
unsigned int quality() const
unsigned int bxNum() const
void unpack(unsigned int fed, unsigned int amc, const CscDataWord64 &raw, CSCCorrelatedLCTDigiCollection *prod)
unsigned int wireGroup() const
unsigned int valid() const
unsigned int clctPattern() const
MapEleIndex2CscDet theOmtf2CscDet
unsigned int halfStrip() const
#define LogTrace(id)
unsigned int hitNum() const
MapEleIndex2CscDet mapEleIndex2CscDet()
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
Definition: AMCSpec.h:8
unsigned int linkNum() const
unsigned int bend() const