CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
CSCDigiToRaw Class Reference

#include <CSCDigiToRaw.h>

Public Member Functions

void createFedBuffers (const CSCStripDigiCollection &stripDigis, const CSCWireDigiCollection &wireDigis, const CSCComparatorDigiCollection &comparatorDigis, const CSCALCTDigiCollection &alctDigis, const CSCCLCTDigiCollection &clctDigis, const CSCCLCTPreTriggerCollection &preTriggers, const CSCCorrelatedLCTDigiCollection &correlatedLCTDigis, FEDRawDataCollection &fed_buffers, const CSCChamberMap *theMapping, edm::Event &e, uint16_t theFormatVersion=2005, bool usePreTriggers=true, bool packEverything=false)
 Take a vector of digis and fill the FEDRawDataCollection. More...
 
 CSCDigiToRaw (const edm::ParameterSet &pset)
 Constructor. More...
 

Private Member Functions

void add (const CSCStripDigiCollection &stripDigis, const CSCCLCTPreTriggerCollection &preTriggers)
 
void add (const CSCWireDigiCollection &wireDigis, const CSCALCTDigiCollection &alctDigis)
 
void add (const CSCComparatorDigiCollection &comparatorDigis, const CSCCLCTDigiCollection &clctDigis)
 
void add (const CSCALCTDigiCollection &alctDigis)
 
void add (const CSCCLCTDigiCollection &clctDigis)
 
void add (const CSCCorrelatedLCTDigiCollection &corrLCTDigis)
 
void beginEvent (const CSCChamberMap *electronicsMap)
 
CSCEventDatafindEventData (const CSCDetId &cscDetId)
 pick out the correct data object for this chamber More...
 

Private Attributes

int alctWindowMax_
 
int alctWindowMin_
 
int clctWindowMax_
 
int clctWindowMin_
 
uint16_t formatVersion_
 
bool packEverything_
 
int preTriggerWindowMax_
 
int preTriggerWindowMin_
 
std::map< CSCDetId, CSCEventDatatheChamberDataMap
 
const CSCChamberMaptheElectronicsMap
 
bool usePreTriggers_
 

Detailed Description

Author
A. Tumanov - Rice

Definition at line 23 of file CSCDigiToRaw.h.

Constructor & Destructor Documentation

CSCDigiToRaw::CSCDigiToRaw ( const edm::ParameterSet pset)
explicit

Constructor.

Definition at line 123 of file CSCDigiToRaw.cc.

Member Function Documentation

void CSCDigiToRaw::add ( const CSCStripDigiCollection stripDigis,
const CSCCLCTPreTriggerCollection preTriggers 
)
private

Definition at line 175 of file CSCDigiToRaw.cc.

Referenced by counter.Counter::register().

void CSCDigiToRaw::add ( const CSCWireDigiCollection wireDigis,
const CSCALCTDigiCollection alctDigis 
)
private

Definition at line 240 of file CSCDigiToRaw.cc.

Referenced by counter.Counter::register().

void CSCDigiToRaw::add ( const CSCComparatorDigiCollection comparatorDigis,
const CSCCLCTDigiCollection clctDigis 
)
private

Definition at line 262 of file CSCDigiToRaw.cc.

Referenced by counter.Counter::register().

void CSCDigiToRaw::add ( const CSCALCTDigiCollection alctDigis)
private

Definition at line 317 of file CSCDigiToRaw.cc.

Referenced by counter.Counter::register().

void CSCDigiToRaw::add ( const CSCCLCTDigiCollection clctDigis)
private

Definition at line 328 of file CSCDigiToRaw.cc.

Referenced by counter.Counter::register().

void CSCDigiToRaw::add ( const CSCCorrelatedLCTDigiCollection corrLCTDigis)
private

Definition at line 355 of file CSCDigiToRaw.cc.

Referenced by counter.Counter::register().

void CSCDigiToRaw::beginEvent ( const CSCChamberMap electronicsMap)
private

Definition at line 135 of file CSCDigiToRaw.cc.

void CSCDigiToRaw::createFedBuffers ( const CSCStripDigiCollection stripDigis,
const CSCWireDigiCollection wireDigis,
const CSCComparatorDigiCollection comparatorDigis,
const CSCALCTDigiCollection alctDigis,
const CSCCLCTDigiCollection clctDigis,
const CSCCLCTPreTriggerCollection preTriggers,
const CSCCorrelatedLCTDigiCollection correlatedLCTDigis,
FEDRawDataCollection fed_buffers,
const CSCChamberMap theMapping,
edm::Event e,
uint16_t  theFormatVersion = 2005,
bool  usePreTriggers = true,
bool  packEverything = false 
)

Take a vector of digis and fill the FEDRawDataCollection.

Handle pre-LS1 format data

Handle post-LS1 format data

2013 Format

Create dummy DDU buffers

Loop over post-LS1 DDU FEDs

Lets handle possible mapping issues

Definition at line 385 of file CSCDigiToRaw.cc.

CSCEventData & CSCDigiToRaw::findEventData ( const CSCDetId cscDetId)
private

pick out the correct data object for this chamber

Definition at line 142 of file CSCDigiToRaw.cc.

Member Data Documentation

int CSCDigiToRaw::alctWindowMax_
private

Definition at line 63 of file CSCDigiToRaw.h.

int CSCDigiToRaw::alctWindowMin_
private

Definition at line 62 of file CSCDigiToRaw.h.

int CSCDigiToRaw::clctWindowMax_
private

Definition at line 65 of file CSCDigiToRaw.h.

int CSCDigiToRaw::clctWindowMin_
private

Definition at line 64 of file CSCDigiToRaw.h.

uint16_t CSCDigiToRaw::formatVersion_
private

Definition at line 68 of file CSCDigiToRaw.h.

bool CSCDigiToRaw::packEverything_
private

Definition at line 70 of file CSCDigiToRaw.h.

int CSCDigiToRaw::preTriggerWindowMax_
private

Definition at line 67 of file CSCDigiToRaw.h.

int CSCDigiToRaw::preTriggerWindowMin_
private

Definition at line 66 of file CSCDigiToRaw.h.

std::map<CSCDetId, CSCEventData> CSCDigiToRaw::theChamberDataMap
private

Definition at line 60 of file CSCDigiToRaw.h.

const CSCChamberMap* CSCDigiToRaw::theElectronicsMap
private

Definition at line 61 of file CSCDigiToRaw.h.

bool CSCDigiToRaw::usePreTriggers_
private

Definition at line 69 of file CSCDigiToRaw.h.