CMS 3D CMS Logo

OmtfCscUnpacker.cc
Go to the documentation of this file.
2 
4 
8 
10 
11 
12 namespace omtf {
13 
15 {
17 }
18 
19 void CscUnpacker::unpack(unsigned int fed, unsigned int amc, const CscDataWord64 &data, CSCCorrelatedLCTDigiCollection* prod)
20 {
21  EleIndex omtfEle(fed, amc, data.linkNum());
22  std::map<EleIndex,CSCDetId>::const_iterator icsc = theOmtf2CscDet.find(omtfEle);
23  if (icsc==theOmtf2CscDet.end()) {LogTrace(" ") <<" CANNOT FIND key: " << omtfEle << std::endl; return; }
24  CSCDetId cscId = theOmtf2CscDet[omtfEle];
25  LogTrace("") <<"OMTF->CSC "<<cscId << std::endl;
26  LogTrace("") << data << std::endl;
27  if (data.linkNum() >=30) {LogTrace(" ")<<" data from overlap, skip digi "<< std::endl; return;}
28  CSCCorrelatedLCTDigi digi(data.hitNum(), //trknmb
29  data.valid(),
30  data.quality(),
31  data.wireGroup(),
32  data.halfStrip(),
33  data.clctPattern(),
34  data.bend(),
36  LogTrace("") << digi << std::endl;
37  //producedCscLctDigis->insertDigi( cscId, digi);
38  prod->insertDigi( cscId, digi);
39 
40 }
41 
42 }
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:82
Definition: AMCSpec.h:8
unsigned int linkNum() const
unsigned int bend() const