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 16 of file OmtfCscUnpacker.h.

Member Function Documentation

void omtf::CscUnpacker::init ( void  )

Definition at line 13 of file OmtfCscUnpacker.cc.

References omtf::mapEleIndex2CscDet(), and theOmtf2CscDet.

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

14 {
16 }
MapEleIndex2CscDet theOmtf2CscDet
MapEleIndex2CscDet mapEleIndex2CscDet()
void omtf::CscUnpacker::unpack ( unsigned int  fed,
unsigned int  amc,
const CscDataWord64 raw,
CSCCorrelatedLCTDigiCollection prod 
)

Definition at line 18 of file OmtfCscUnpacker.cc.

References omtf::CscDataWord64::bend(), omtf::CscDataWord64::bxNum(), omtf::CscDataWord64::clctPattern(), omtf::CscDataWord64::halfStrip(), omtf::CscDataWord64::hitNum(), omtf::CscDataWord64::linkNum(), LogTrace, omtf::CscDataWord64::quality(), theOmtf2CscDet, omtf::CscDataWord64::valid(), and omtf::CscDataWord64::wireGroup().

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

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

Member Data Documentation

MapEleIndex2CscDet omtf::CscUnpacker::theOmtf2CscDet
private

Definition at line 24 of file OmtfCscUnpacker.h.

Referenced by init(), and unpack().