#include <CSCDigiToRaw.h>
Classes | |
struct | FindEventDataInfo |
Public Types | |
enum | CSCShowerType { lctShower = 0, anodeShower = 1, cathodeShower = 2, anodeALCTShower = 3 } |
CSC Shower HMT bits types. More... | |
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 CSCShowerDigiCollection *anodeShowerDigis, const CSCShowerDigiCollection *cathodeShowerDigis, const CSCShowerDigiCollection *anodeALCTShowerDigis, 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 Member Functions | |
void | add (const CSCStripDigiCollection &stripDigis, const CSCCLCTPreTriggerCollection *preTriggers, const CSCCLCTPreTriggerDigiCollection *preTriggerDigis, FindEventDataInfo &) const |
void | add (const CSCWireDigiCollection &wireDigis, const CSCALCTDigiCollection &alctDigis, FindEventDataInfo &) const |
void | add (const CSCComparatorDigiCollection &comparatorDigis, const CSCCLCTDigiCollection &clctDigis, FindEventDataInfo &) const |
void | add (const CSCALCTDigiCollection &alctDigis, FindEventDataInfo &) const |
void | add (const CSCCLCTDigiCollection &clctDigis, FindEventDataInfo &) const |
void | add (const CSCCorrelatedLCTDigiCollection &corrLCTDigis, FindEventDataInfo &) const |
void | add (const CSCShowerDigiCollection &cscShowerDigis, FindEventDataInfo &, enum CSCShowerType shower=CSCShowerType::lctShower) const |
Run3 packing of CSCShower objects depending on shower HMT type. More... | |
void | add (const GEMPadDigiClusterCollection &gemPadClusters, FindEventDataInfo &) const |
Run3 adding GEM GE11 Pad Clusters trigger objects. More... | |
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_ |
uint16_t | formatVersion_ |
bool | packByCFEB_ |
bool | packEverything_ |
const int | preTriggerWindowMax_ |
const int | preTriggerWindowMin_ |
bool | usePreTriggers_ |
Definition at line 26 of file CSCDigiToRaw.h.
CSC Shower HMT bits types.
Enumerator | |
---|---|
lctShower | |
anodeShower | |
cathodeShower | |
anodeALCTShower |
Definition at line 29 of file CSCDigiToRaw.h.
|
explicit |
Constructor.
Definition at line 29 of file CSCDigiToRaw.cc.
|
private |
Definition at line 71 of file CSCDigiToRaw.cc.
References CSCDigiToRawAccept::accept(), CSCEventData::add(), CSCConstants::CLCT_CENTRAL_BX, CSCDetId::endcap(), findEventData(), CSCDigiToRaw::FindEventDataInfo::formatVersion_, CSCStripDigi::getCFEB(), CSCStripDigi::getStrip(), dqmiolumiharvest::j, dqmdumpme::last, CSCDetId::layer(), CSCConstants::MAX_CFEBS_RUN2, CSCConstants::NUM_CFEBS_ME1B, CSCConstants::NUM_STRIPS_ME1A_GANGED, CSCConstants::NUM_STRIPS_ME1A_UNGANGED, CSCConstants::NUM_STRIPS_ME1B, packByCFEB_, 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 147 of file CSCDigiToRaw.cc.
References CSCDigiToRawAccept::accept(), add(), CSCEventData::add(), CSCConstants::ALCT_CENTRAL_BX, alctWindowMax_, alctWindowMin_, findEventData(), dqmiolumiharvest::j, dqmdumpme::last, CSCDetId::layer(), and packEverything_.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Definition at line 165 of file CSCDigiToRaw.cc.
References CSCDigiToRawAccept::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 208 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 217 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 249 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 |
Run3 packing of CSCShower objects depending on shower HMT type.
Definition at line 283 of file CSCDigiToRaw.cc.
References CSCEventData::addAnodeALCTShower(), CSCEventData::addAnodeShower(), CSCEventData::addCathodeShower(), CSCEventData::addShower(), and findEventData().
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
private |
Run3 adding GEM GE11 Pad Clusters trigger objects.
Definition at line 309 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 CSCShowerDigiCollection * | anodeShowerDigis, | ||
const CSCShowerDigiCollection * | cathodeShowerDigis, | ||
const CSCShowerDigiCollection * | anodeALCTShowerDigis, | ||
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 321 of file CSCDigiToRaw.cc.
References add(), bitset_utilities::bitsetToChar(), makePileupJSON::bx, evf::compute_crc(), FEDRawData::data(), CSCChamberMap::ddu(), CSCChamberMap::dduInput(), CSCChamberMap::dduSlot(), CSCChamberMap::dmb(), edm::EventID::event(), Exception, FEDRawDataCollection::FEDData(), formatVersion_, mps_fire::i, FEDNumbering::MAXCSCDDUFEDID, FEDNumbering::MAXCSCFEDID, FEDNumbering::MINCSCDDUFEDID, FEDNumbering::MINCSCFEDID, CSCConstants::NUM_DDUS, FEDRawData::resize(), FEDRawData::size(), and CSCChamberMap::slink().
|
private |
pick out the correct data object for this chamber
Definition at line 44 of file CSCDigiToRaw.cc.
References CSCDigiToRawAccept::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 85 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 84 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 87 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 86 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 91 of file CSCDigiToRaw.h.
Referenced by createFedBuffers().
|
private |
Definition at line 94 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 92 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 89 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 88 of file CSCDigiToRaw.h.
Referenced by add().
|
private |
Definition at line 93 of file CSCDigiToRaw.h.
Referenced by add().