CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
omtf::CscUnpacker Class Reference

#include <OmtfCscUnpacker.h>

Public Member Functions

void init ()
 
void unpack (unsigned int fed, unsigned int amc, const CscDataWord64 &raw, CSCCorrelatedLCTDigiCollection *prod)
 

Private Attributes

MapEleIndex2CscDet theOmtf2CscDet
 

Detailed Description

Definition at line 18 of file OmtfCscUnpacker.h.

Member Function Documentation

◆ init()

void omtf::CscUnpacker::init ( void  )

◆ unpack()

void omtf::CscUnpacker::unpack ( unsigned int  fed,
unsigned int  amc,
const CscDataWord64 raw,
CSCCorrelatedLCTDigiCollection prod 
)

Definition at line 15 of file OmtfCscUnpacker.cc.

18  {
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  }

References data, CSCConstants::LCT_CENTRAL_BX, LogTrace, dumpMFGeometry_cfg::prod, and theOmtf2CscDet.

Referenced by omtf::OmtfUnpacker::produce().

Member Data Documentation

◆ theOmtf2CscDet

MapEleIndex2CscDet omtf::CscUnpacker::theOmtf2CscDet
private

Definition at line 24 of file OmtfCscUnpacker.h.

Referenced by init(), and unpack().

omtf::CscUnpacker::theOmtf2CscDet
MapEleIndex2CscDet theOmtf2CscDet
Definition: OmtfCscUnpacker.h:24
omtf::mapEleIndex2CscDet
MapEleIndex2CscDet mapEleIndex2CscDet()
Definition: OmtfLinkMappingCsc.cc:5
CSCConstants::LCT_CENTRAL_BX
Definition: CSCConstants.h:79
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
CSCDetId
Definition: CSCDetId.h:26
amc
Definition: AMCSpec.h:8
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:224
CSCCorrelatedLCTDigi
Definition: CSCCorrelatedLCTDigi.h:19