#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) |
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 |
Definition at line 23 of file CSCDigiToRaw.h.
|
explicit |
Constructor.
Definition at line 87 of file CSCDigiToRaw.cc.
|
private |
Definition at line 121 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(), and SurfaceOrientation::zplus.
Referenced by add(), and createFedBuffers().
|
private |
Definition at line 152 of file CSCDigiToRaw.cc.
References cscd2r::accept(), add(), CSCEventData::add(), alctWindowMax_, alctWindowMin_, findEventData(), j, prof2calltree::last, and CSCDetId::layer().
|
private |
Definition at line 173 of file CSCDigiToRaw.cc.
References cscd2r::accept(), add(), CSCEventData::add(), clctWindowMax_, clctWindowMin_, findEventData(), CSCComparatorDigi::getComparator(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBinWord(), j, CSCDetId::layer(), CSCDetId::ring(), and CSCDetId::station().
|
private |
Definition at line 203 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), and j.
|
private |
Definition at line 214 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), and j.
|
private |
Definition at line 225 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), and j.
|
private |
Definition at line 96 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 | ||
) |
Take a vector of digis and fill the FEDRawDataCollection.
Definition at line 238 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(), edm::EventBase::id(), FEDNumbering::MAXCSCFEDID, FEDNumbering::MINCSCFEDID, FEDRawData::resize(), FEDRawData::size(), CSCChamberMap::slink(), and theChamberDataMap.
Referenced by CSCDigiToRawModule::produce().
|
private |
pick out the correct data object for this chamber
Definition at line 103 of file CSCDigiToRaw.cc.
References cscd2r::chamberID(), CSCChamberMap::crate(), CSCChamberMap::dmb(), CSCEventData::dmbHeader(), CSCDetId::iChamberType(), CSCDMBHeader::setCrateAddress(), theChamberDataMap, and theElectronicsMap.
Referenced by add().
|
private |
Definition at line 60 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 59 of file CSCDigiToRaw.h.
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 57 of file CSCDigiToRaw.h.
Referenced by beginEvent(), createFedBuffers(), and findEventData().
|
private |
Definition at line 58 of file CSCDigiToRaw.h.
Referenced by beginEvent(), and findEventData().