#include <CSCDigiToRaw.h>
Classes | |
struct | FindEventDataInfo |
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) const |
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, FindEventDataInfo &, bool usePreTriggers, bool packEverything) const |
void | add (const CSCWireDigiCollection &wireDigis, const CSCALCTDigiCollection &alctDigis, FindEventDataInfo &, bool packEverything) const |
void | add (const CSCComparatorDigiCollection &comparatorDigis, const CSCCLCTDigiCollection &clctDigis, FindEventDataInfo &, bool packEverything) const |
void | add (const CSCALCTDigiCollection &alctDigis, FindEventDataInfo &) const |
void | add (const CSCCLCTDigiCollection &clctDigis, FindEventDataInfo &) const |
void | add (const CSCCorrelatedLCTDigiCollection &corrLCTDigis, FindEventDataInfo &) const |
CSCEventData & | findEventData (const CSCDetId &cscDetId, FindEventDataInfo &) const |
pick out the correct data object for this chamber More... | |
Private Attributes | |
const int | alctWindowMax_ |
const int | alctWindowMin_ |
const int | clctWindowMax_ |
const int | clctWindowMin_ |
const int | preTriggerWindowMax_ |
const int | preTriggerWindowMin_ |
Definition at line 23 of file CSCDigiToRaw.h.
|
explicit |
Constructor.
Definition at line 122 of file CSCDigiToRaw.cc.
|
private |
Definition at line 164 of file CSCDigiToRaw.cc.
References cscd2r::accept(), CSCEventData::add(), CSCDetId::endcap(), findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, CSCStripDigi::getStrip(), plotBeamSpotDB::last, CSCDetId::layer(), preTriggerWindowMax_, preTriggerWindowMin_, CSCDetId::ring(), CSCStripDigi::setStrip(), CSCDetId::station(), digitizers_cfi::strip, and SurfaceOrientation::zplus.
Referenced by add(), createFedBuffers(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 232 of file CSCDigiToRaw.cc.
References cscd2r::accept(), add(), CSCEventData::add(), alctWindowMax_, alctWindowMin_, findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, plotBeamSpotDB::last, and CSCDetId::layer().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 256 of file CSCDigiToRaw.cc.
References cscd2r::accept(), add(), CSCEventData::add(), clctWindowMax_, clctWindowMin_, findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, CSCDetId::layer(), CSCDetId::ring(), and CSCDetId::station().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 313 of file CSCDigiToRaw.cc.
References CSCEventData::add(), and findEventData().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 325 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, CSCDetId::ring(), and CSCDetId::station().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 353 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, CSCDetId::ring(), and CSCDetId::station().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
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 |
||
) | const |
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 383 of file CSCDigiToRaw.cc.
References add(), bitset_utilities::bitsetToChar(), evf::compute_crc(), FEDRawData::data(), CSCChamberMap::ddu(), CSCChamberMap::dduInput(), CSCChamberMap::dduSlot(), CSCChamberMap::dmb(), edm::EventID::event(), Exception, FEDRawDataCollection::FEDData(), mps_fire::i, edm::EventBase::id(), taus_updatedMVAIds_cff::mapping, FEDNumbering::MAXCSCDDUFEDID, FEDNumbering::MAXCSCFEDID, FEDNumbering::MINCSCDDUFEDID, FEDNumbering::MINCSCFEDID, FEDRawData::resize(), FEDRawData::size(), and CSCChamberMap::slink().
|
private |
pick out the correct data object for this chamber
Definition at line 131 of file CSCDigiToRaw.cc.
References cscd2r::chamberID(), CSCChamberMap::crate(), CSCChamberMap::dmb(), CSCEventData::dmbHeader(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, CSCDetId::iChamberType(), CSCDetId::ring(), CSCDMBHeader::setCrateAddress(), CSCDMBHeader::setdmbVersion(), CSCDetId::station(), CSCDigiToRaw::FindEventDataInfo::theChamberDataMap, and CSCDigiToRaw::FindEventDataInfo::theElectronicsMap.
Referenced by add().
|
private |
Definition at line 81 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 80 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 83 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 82 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 85 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 84 of file CSCDigiToRaw.h.
Referenced by add().