#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 CSCALCTDigiCollection &alctDigis, FindEventDataInfo &) const |
void | add (const CSCCLCTDigiCollection &clctDigis, FindEventDataInfo &) const |
void | add (const CSCComparatorDigiCollection &comparatorDigis, const CSCCLCTDigiCollection &clctDigis, FindEventDataInfo &, bool packEverything) const |
void | add (const CSCCorrelatedLCTDigiCollection &corrLCTDigis, FindEventDataInfo &) const |
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 |
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 |
|
private |
Definition at line 252 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), and dqmiolumiharvest::j.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 261 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, dqmiolumiharvest::j, CSCDetId::ring(), and CSCDetId::station().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 213 of file CSCDigiToRaw.cc.
References cscd2r::accept(), add(), CSCEventData::add(), clctWindowMax_, clctWindowMin_, findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, dqmiolumiharvest::j, CSCDetId::layer(), cscPacker_cfi::packEverything, CSCDetId::ring(), and CSCDetId::station().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 293 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, dqmiolumiharvest::j, CSCDetId::ring(), and CSCDetId::station().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 139 of file CSCDigiToRaw.cc.
References cscd2r::accept(), CSCEventData::add(), CSCDetId::endcap(), findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, CSCStripDigi::getStrip(), dqmiolumiharvest::j, dqmdumpme::last, CSCDetId::layer(), cscPacker_cfi::packEverything, preTriggerWindowMax_, preTriggerWindowMin_, CSCDetId::ring(), CSCStripDigi::setStrip(), CSCDetId::station(), digitizers_cfi::strip, cscPacker_cfi::usePreTriggers, and SurfaceOrientation::zplus.
Referenced by add(), createFedBuffers(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 194 of file CSCDigiToRaw.cc.
References cscd2r::accept(), add(), CSCEventData::add(), alctWindowMax_, alctWindowMin_, findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, dqmiolumiharvest::j, dqmdumpme::last, CSCDetId::layer(), and cscPacker_cfi::packEverything.
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 327 of file CSCDigiToRaw.cc.
References add(), bitset_utilities::bitsetToChar(), simKBmtfDigis_cfi::bx, evf::compute_crc(), MillePedeFileConverter_cfg::e, Exception, FEDRawDataCollection::FEDData(), l1t_dqm_sourceclient-live_cfg::fedRawData, mps_fire::i, taus_updatedMVAIds_cff::mapping, FEDNumbering::MAXCSCDDUFEDID, FEDNumbering::MAXCSCFEDID, FEDNumbering::MINCSCDDUFEDID, FEDNumbering::MINCSCFEDID, and cscPacker_cfi::packEverything.
|
private |
pick out the correct data object for this chamber
Definition at line 112 of file CSCDigiToRaw.cc.
References cscd2r::chamberID(), CSCEventData::dmbHeader(), CSCDetId::iChamberType(), info(), CSCDetId::ring(), CSCDMBHeader::setCrateAddress(), CSCDMBHeader::setdmbVersion(), and CSCDetId::station().
Referenced by add().
|
private |
Definition at line 75 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 74 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 77 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 76 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 79 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 78 of file CSCDigiToRaw.h.
Referenced by add().