#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 CSCCLCTPreTriggerDigiCollection *preTriggerDigis, const CSCCorrelatedLCTDigiCollection &correlatedLCTDigis, const CSCShowerDigiCollection *showerDigis, const GEMPadDigiClusterCollection *padDigiClusters, FEDRawDataCollection &fed_buffers, const CSCChamberMap *theMapping, const edm::EventID &eid) const |
Take a vector of digis and fill the FEDRawDataCollection. More... | |
CSCDigiToRaw (const edm::ParameterSet &pset) | |
Constructor. More... | |
Private Attributes | |
const int | alctWindowMax_ |
const int | alctWindowMin_ |
const int | clctWindowMax_ |
const int | clctWindowMin_ |
uint16_t | formatVersion_ |
bool | packEverything_ |
const int | preTriggerWindowMax_ |
const int | preTriggerWindowMin_ |
bool | usePreTriggers_ |
Definition at line 26 of file CSCDigiToRaw.h.
|
explicit |
|
private |
Definition at line 277 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 286 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, dqmiolumiharvest::j, CSCConstants::NUM_CFEBS_ME1A_UNGANGED, CSCConstants::NUM_CFEBS_ME1B, CSCDetId::ring(), and CSCDetId::station().
Referenced by 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(), CSCConstants::CLCT_CENTRAL_BX, clctWindowMax_, clctWindowMin_, findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, dqmiolumiharvest::j, CSCDetId::layer(), CSCConstants::NUM_STRIPS_ME1A_GANGED, CSCConstants::NUM_STRIPS_ME1A_UNGANGED, CSCConstants::NUM_STRIPS_ME1B, packEverything_, CSCDetId::ring(), and CSCDetId::station().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 318 of file CSCDigiToRaw.cc.
References CSCEventData::add(), findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, dqmiolumiharvest::j, CSCConstants::NUM_HALF_STRIPS_ME1A_UNGANGED, CSCConstants::NUM_HALF_STRIPS_ME1B, CSCDetId::ring(), and CSCDetId::station().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 352 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 150 of file CSCDigiToRaw.cc.
References cscd2r::accept(), CSCEventData::add(), CSCConstants::CLCT_CENTRAL_BX, CSCDetId::endcap(), findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, CSCStripDigi::getStrip(), dqmiolumiharvest::j, dqmdumpme::last, CSCDetId::layer(), CSCConstants::NUM_STRIPS_ME1A_GANGED, CSCConstants::NUM_STRIPS_ME1A_UNGANGED, CSCConstants::NUM_STRIPS_ME1B, packEverything_, preTriggerWindowMax_, preTriggerWindowMin_, CSCDetId::ring(), CSCStripDigi::setStrip(), CSCDetId::station(), digitizers_cfi::strip, usePreTriggers_, and SurfaceOrientation::zplus.
Referenced by add(), createFedBuffers(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 212 of file CSCDigiToRaw.cc.
References cscd2r::accept(), add(), CSCEventData::add(), CSCConstants::ALCT_CENTRAL_BX, alctWindowMax_, alctWindowMin_, findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, dqmiolumiharvest::j, dqmdumpme::last, CSCDetId::layer(), and packEverything_.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 361 of file CSCDigiToRaw.cc.
References GEMDetId::chamber(), findEventData(), GEMDetId::region(), and GEMDetId::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 CSCCLCTPreTriggerDigiCollection * | preTriggerDigis, | ||
const CSCCorrelatedLCTDigiCollection & | correlatedLCTDigis, | ||
const CSCShowerDigiCollection * | showerDigis, | ||
const GEMPadDigiClusterCollection * | padDigiClusters, | ||
FEDRawDataCollection & | fed_buffers, | ||
const CSCChamberMap * | theMapping, | ||
const edm::EventID & | eid | ||
) | 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 373 of file CSCDigiToRaw.cc.
References add(), bitset_utilities::bitsetToChar(), l1GtPatternGenerator_cfi::bx, evf::compute_crc(), runTauDisplay::eid, Exception, FEDRawDataCollection::FEDData(), l1t_dqm_sourceclient-live_cfg::fedRawData, formatVersion_, mps_fire::i, taus_updatedMVAIds_cff::mapping, FEDNumbering::MAXCSCDDUFEDID, FEDNumbering::MAXCSCFEDID, FEDNumbering::MINCSCDDUFEDID, FEDNumbering::MINCSCFEDID, and CSCConstants::NUM_DDUS.
|
private |
pick out the correct data object for this chamber
Definition at line 123 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 81 of file CSCDigiToRaw.h.
Referenced by createFedBuffers().
|
private |
Definition at line 82 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().
|
private |
Definition at line 83 of file CSCDigiToRaw.h.
Referenced by add().