#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) |
CSCEventData & | findEventData (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, CSCEventData > | theChamberDataMap |
const CSCChamberMap * | theElectronicsMap |
bool | usePreTriggers_ |
Definition at line 23 of file CSCDigiToRaw.h.
|
explicit |
Constructor.
Definition at line 123 of file CSCDigiToRaw.cc.
|
private |
Definition at line 175 of file CSCDigiToRaw.cc.
References cscd2r::accept(), CSCEventData::add(), CSCDetId::endcap(), findEventData(), formatVersion_, CSCStripDigi::getStrip(), j, plotBeamSpotDB::last, CSCDetId::layer(), packEverything_, preTriggerWindowMax_, preTriggerWindowMin_, CSCDetId::ring(), CSCStripDigi::setStrip(), CSCDetId::station(), usePreTriggers_, and SurfaceOrientation::zplus.
Referenced by add(), createFedBuffers(), and counter.Counter::register().
|
private |
Definition at line 240 of file CSCDigiToRaw.cc.
References cscd2r::accept(), add(), CSCEventData::add(), alctWindowMax_, alctWindowMin_, findEventData(), formatVersion_, j, plotBeamSpotDB::last, CSCDetId::layer(), and packEverything_.
Referenced by counter.Counter::register().
|
private |
Definition at line 262 of file CSCDigiToRaw.cc.
References cscd2r::accept(), add(), CSCEventData::add(), clctWindowMax_, clctWindowMin_, findEventData(), formatVersion_, CSCComparatorDigi::getComparator(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBinWord(), j, CSCDetId::layer(), packEverything_, CSCDetId::ring(), and CSCDetId::station().
Referenced by counter.Counter::register().
|
private |
Definition at line 317 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), and j.
Referenced by counter.Counter::register().
|
private |
Definition at line 328 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), formatVersion_, j, CSCDetId::ring(), and CSCDetId::station().
Referenced by counter.Counter::register().
|
private |
Definition at line 355 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), formatVersion_, j, CSCDetId::ring(), and CSCDetId::station().
Referenced by counter.Counter::register().
|
private |
Definition at line 135 of file CSCDigiToRaw.cc.
References ecaldqm::electronicsMap(), theChamberDataMap, and theElectronicsMap.
Referenced by createFedBuffers().
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.
References add(), beginEvent(), bitset_utilities::bitsetToChar(), evf::compute_crc(), FEDRawData::data(), CSCChamberMap::ddu(), CSCChamberMap::dduInput(), CSCChamberMap::dduSlot(), CSCChamberMap::dmb(), edm::EventID::event(), Exception, FEDRawDataCollection::FEDData(), formatVersion_, i, edm::EventBase::id(), FEDNumbering::MAXCSCDDUFEDID, FEDNumbering::MAXCSCFEDID, FEDNumbering::MINCSCDDUFEDID, FEDNumbering::MINCSCFEDID, packEverything_, FEDRawData::resize(), FEDRawData::size(), CSCChamberMap::slink(), theChamberDataMap, and usePreTriggers_.
Referenced by CSCDigiToRawModule::produce().
|
private |
pick out the correct data object for this chamber
Definition at line 142 of file CSCDigiToRaw.cc.
References cscd2r::chamberID(), CSCChamberMap::crate(), CSCChamberMap::dmb(), CSCEventData::dmbHeader(), formatVersion_, CSCDetId::iChamberType(), CSCDetId::ring(), CSCDMBHeader::setCrateAddress(), CSCDMBHeader::setdmbVersion(), CSCDetId::station(), theChamberDataMap, and theElectronicsMap.
Referenced by add().
|
private |
Definition at line 63 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 62 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 65 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 64 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 68 of file CSCDigiToRaw.h.
Referenced by add(), createFedBuffers(), and findEventData().
|
private |
Definition at line 70 of file CSCDigiToRaw.h.
Referenced by add(), and createFedBuffers().
|
private |
Definition at line 67 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 66 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 60 of file CSCDigiToRaw.h.
Referenced by beginEvent(), createFedBuffers(), and findEventData().
|
private |
Definition at line 61 of file CSCDigiToRaw.h.
Referenced by beginEvent(), and findEventData().
|
private |
Definition at line 69 of file CSCDigiToRaw.h.
Referenced by add(), and createFedBuffers().