#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) |
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_ |
int | preTriggerWindowMax_ |
int | preTriggerWindowMin_ |
std::map< CSCDetId, CSCEventData > | theChamberDataMap |
const CSCChamberMap * | theElectronicsMap |
uint16_t | theFormatVersion |
bool | usePreTriggers |
Definition at line 23 of file CSCDigiToRaw.h.
|
explicit |
Constructor.
Definition at line 89 of file CSCDigiToRaw.cc.
|
private |
Definition at line 140 of file CSCDigiToRaw.cc.
References cscd2r::accept(), CSCEventData::add(), CSCDetId::endcap(), findEventData(), CSCStripDigi::getStrip(), j, prof2calltree::last, CSCDetId::layer(), preTriggerWindowMax_, preTriggerWindowMin_, CSCDetId::ring(), CSCStripDigi::setStrip(), CSCDetId::station(), theFormatVersion, usePreTriggers, and SurfaceOrientation::zplus.
Referenced by add(), and createFedBuffers().
|
private |
Definition at line 204 of file CSCDigiToRaw.cc.
References cscd2r::accept(), add(), CSCEventData::add(), alctWindowMax_, alctWindowMin_, findEventData(), j, prof2calltree::last, and CSCDetId::layer().
|
private |
Definition at line 225 of file CSCDigiToRaw.cc.
References cscd2r::accept(), add(), CSCEventData::add(), clctWindowMax_, clctWindowMin_, findEventData(), CSCComparatorDigi::getComparator(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBinWord(), j, CSCDetId::layer(), CSCDetId::ring(), CSCDetId::station(), and theFormatVersion.
|
private |
Definition at line 279 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), and j.
|
private |
Definition at line 290 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), and j.
|
private |
Definition at line 301 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), and j.
|
private |
Definition at line 100 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 |
||
) |
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 314 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(), edm::hlt::Exception, FEDRawDataCollection::FEDData(), i, edm::EventBase::id(), FEDNumbering::MAXCSCDDUFEDID, FEDNumbering::MAXCSCFEDID, FEDNumbering::MINCSCDDUFEDID, FEDNumbering::MINCSCFEDID, FEDRawData::resize(), FEDRawData::size(), CSCChamberMap::slink(), theChamberDataMap, theFormatVersion, and usePreTriggers.
Referenced by CSCDigiToRawModule::produce().
|
private |
pick out the correct data object for this chamber
Definition at line 107 of file CSCDigiToRaw.cc.
References cscd2r::chamberID(), CSCChamberMap::crate(), CSCChamberMap::dmb(), CSCEventData::dmbHeader(), CSCDetId::iChamberType(), CSCDetId::ring(), CSCDMBHeader::setCrateAddress(), CSCDMBHeader::setdmbVersion(), CSCDetId::station(), theChamberDataMap, theElectronicsMap, and theFormatVersion.
Referenced by add().
|
private |
Definition at line 62 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 61 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 64 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 63 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 66 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 65 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 59 of file CSCDigiToRaw.h.
Referenced by beginEvent(), createFedBuffers(), and findEventData().
|
private |
Definition at line 60 of file CSCDigiToRaw.h.
Referenced by beginEvent(), and findEventData().
|
private |
Definition at line 67 of file CSCDigiToRaw.h.
Referenced by add(), createFedBuffers(), and findEventData().
|
private |
Definition at line 68 of file CSCDigiToRaw.h.
Referenced by add(), and createFedBuffers().