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  )

Definition at line 10 of file OmtfCscUnpacker.cc.

References omtf::mapEleIndex2CscDet(), and theOmtf2CscDet.

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

MapEleIndex2CscDet theOmtf2CscDet
MapEleIndex2CscDet mapEleIndex2CscDet()

◆ unpack()

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

Definition at line 12 of file OmtfCscUnpacker.cc.

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

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

15  {
16  EleIndex omtfEle(fed, amc, data.linkNum());
17  std::map<EleIndex, CSCDetId>::const_iterator icsc = theOmtf2CscDet.find(omtfEle);
18  if (icsc == theOmtf2CscDet.end()) {
19  LogTrace(" ") << " CANNOT FIND key: " << omtfEle << std::endl;
20  return;
21  }
22  CSCDetId cscId = theOmtf2CscDet[omtfEle];
23  LogTrace("") << "OMTF->CSC " << cscId << std::endl;
24  LogTrace("") << data << std::endl;
25  if (data.linkNum() >= 30) {
26  LogTrace(" ") << " data from overlap, skip digi " << std::endl;
27  return;
28  }
29  CSCCorrelatedLCTDigi digi(data.hitNum(), //trknmb
30  data.valid(),
31  data.quality(),
32  data.wireGroup(),
33  data.halfStrip(),
34  data.clctPattern(),
35  data.bend(),
36  data.bxNum() + (CSCConstants::LCT_CENTRAL_BX - 3));
37  LogTrace("") << digi << std::endl;
38  //producedCscLctDigis->insertDigi( cscId, digi);
39  prod->insertDigi(cscId, digi);
40  }
#define LogTrace(id)
MapEleIndex2CscDet theOmtf2CscDet
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
Definition: AMCSpec.h:8

Member Data Documentation

◆ theOmtf2CscDet

MapEleIndex2CscDet omtf::CscUnpacker::theOmtf2CscDet
private

Definition at line 24 of file OmtfCscUnpacker.h.

Referenced by init(), and unpack().