Public Member Functions | |
CSCDCCUnpacker (const edm::ParameterSet &pset) | |
Constructor. More... | |
void | produce (edm::Event &e, const edm::EventSetup &c) override |
Produce digis out of raw data. More... | |
void | visual_raw (int hl, int id, int run, int event, bool fedshort, bool fDump, short unsigned int *buf) const |
Visualization of raw data in FED-less events (Robert Harr and Alexander Sakharov) More... | |
~CSCDCCUnpacker () override | |
Destructor. More... | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Attributes | |
int | b904dmb |
bool | b904Setup |
int | b904vmecrate |
edm::ESGetToken< CSCCrateMap, CSCCrateMapRcd > | crateToken |
edm::ESGetToken< CSCChamberMap, CSCChamberMapRcd > | cscmapToken |
bool | debug |
bool | disableMappingCheck |
unsigned int | errorMask |
unsigned int | examinerMask |
bool | formatedEventDump |
bool | goodEvent |
edm::EDGetTokenT< FEDRawDataCollection > | i_token |
Token for consumes interface & access to data. More... | |
bool | instantiateDQM |
CSCMonitorInterface * | monitor |
int | numOfEvents |
bool | printEventNumber |
bool | SuppressZeroLCT |
Suppress zeros LCTs. More... | |
bool | unpackStatusDigis |
bool | useCSCShowers_ |
option to unpack CSC shower data More... | |
bool | useExaminer |
bool | useFormatStatus |
bool | useGEMs_ |
option to unpack GEM cluster data More... | |
bool | useRPCs_ |
option to unpack RPC data More... | |
bool | useSelectiveUnpacking |
bool | visualFEDInspect |
Visualization of raw data. More... | |
bool | visualFEDShort |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Definition at line 67 of file CSCDCCUnpacker.cc.
CSCDCCUnpacker::CSCDCCUnpacker | ( | const edm::ParameterSet & | pset | ) |
Constructor.
Selective unpacking mode will skip only troublesome CSC blocks and not whole DCC/DDU block
Enable Format Status Digis
Visualization of raw data
Suppress zeros LCTs
Definition at line 116 of file CSCDCCUnpacker.cc.
References b904dmb, b904Setup, b904vmecrate, crateToken, cscmapToken, debug, disableMappingCheck, errorMask, examinerMask, formatedEventDump, i_token, instantiateDQM, monitor, Utilities::operator, printEventNumber, muonDTDigis_cfi::pset, CSCDCCEventData::setDebug(), CSCRPCData::setDebug(), CSCDDUEventData::setDebug(), CSCALCTHeader::setDebug(), CSCComparatorData::setDebug(), CSCTMBData::setDebug(), CSCEventData::setDebug(), CSCTMBHeader::setDebug(), CSCDDUEventData::setErrorMask(), SuppressZeroLCT, unpackStatusDigis, useCSCShowers_, useExaminer, useFormatStatus, useGEMs_, useRPCs_, useSelectiveUnpacking, visualFEDInspect, and visualFEDShort.
|
override |
Destructor.
Definition at line 206 of file CSCDCCUnpacker.cc.
|
static |
Definition at line 210 of file CSCDCCUnpacker.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, ProducerED_cfi::InputTag, and edm::ConfigurationDescriptions::setComment().
|
override |
Produce digis out of raw data.
access database for mapping
Get a handle to the FED data collection
create the collections of CSC digis
uncomment this for regional unpacking if (id!=SOME_ID) continue;
Take a reference to this FED's data
if fed has data then unpack it
examine event for integrity
If we have DCC or only DDU FED by checking FED ID set examiner to uswe DCC or DDU mode
Visualization of raw data
get a pointer to data and pass it to constructor for unpacking
set default detid to that for E=+z, S=1, R=1, C=1, L=1
get a reference to dduData
DCC Trailer 2 added to dcc status product (to access TTS from DCC)
skip the DDU if its data has serious errors define a mask for serious errors
DDU Trailer 0 added to ddu status product (to access TTS from DDU)
get a reference to chamber data
first process chamber-wide digis such as LCT
default value for all digis not related to cfebs
layer=0 flags entire chamber
For Post-LS1 readout only. Check Chamber->FED/DDU mapping consistency. Skip chambers (special case of data corruption), which report wrong ID and pose as different chamber
Do not skip chamber data if mapping check is disabled or b904 setup data file is used
check alct data integrity
fill alct digi
fill Run3 anode HMT Shower digis anode shower digis vector per ALCT BX from ALCT data
check tmb data integrity
fill correlatedlct and clct digis
fill Run3 HMT Shower digis
(O)TMB Shower digi sent to MPC LCT trigger data
anode shower digis from OTMB header data
cathode shower digis from OTMB header data
fill CSC-RPC or CSC-GEMs digis
fill CSC-GEM GEMPadCluster digis
fill cfeb status digi
loop over status digis
fill dmb status digi
fill wire, strip and comparator digis...
set layer, dmb and vme are valid because already checked in line 240
Definition at line 241 of file CSCDCCUnpacker.cc.
References b904dmb, b904Setup, b904vmecrate, visDQMUpload::buf, HltBtagPostValidation_cff::c, RPCNoise_example::check, CSCDCCExaminer::check(), crateToken, CSCDCCExaminer::crcALCT(), CSCDCCExaminer::crcCFEB(), CSCDCCExaminer::crcTMB(), cscmapToken, FEDRawData::data(), data, CSCChamberMap::ddu(), debug, CSCCrateMap::detId(), disableMappingCheck, MillePedeFileConverter_cfg::e, CSCDCCExaminer::errName(), errorMask, CSCDCCExaminer::errors(), CSCDCCExaminer::errorsDetailed(), CSCDCCExaminer::errorsDetailedDDU(), examinerMask, FEDRawDataCollection::FEDData(), formatedEventDump, CSCDCCExaminer::getMask(), goodEvent, RecoTauValidation_cfi::header, mps_fire::i, i_token, l1ctLayer2EG_cff::id, hcalRecHitTable_cff::ieta, instantiateDQM, createfilelist::int, CSCShowerDigi::isValid(), sistrip::SpyUtilities::isValid(), nano_mu_digi_cff::layer, LogTrace, CSCConstants::MAX_CFEBS_RUN2, FEDNumbering::MAXCSCDDUFEDID, FEDNumbering::MAXCSCFEDID, CSCDetId::maxLayerId(), FEDNumbering::MINCSCDDUFEDID, FEDNumbering::MINCSCFEDID, CSCDetId::minLayerId(), CSCDCCExaminer::modeDDU(), monitor, eostools::move(), CSCDCCExaminer::nERRORS, numOfEvents, CSCDCCExaminer::payloadDetailed(), printEventNumber, CSCMonitorInterface::process(), edm::ESHandle< T >::product(), CSCDCCExaminer::setMask(), FEDRawData::size(), CSCDCCExaminer::statusDetailed(), SuppressZeroLCT, unpackStatusDigis, useCSCShowers_, useExaminer, useFormatStatus, useGEMs_, useRPCs_, useSelectiveUnpacking, visual_raw(), visualFEDInspect, and visualFEDShort.
void CSCDCCUnpacker::visual_raw | ( | int | hl, |
int | id, | ||
int | run, | ||
int | event, | ||
bool | fedshort, | ||
bool | fDump, | ||
short unsigned int * | buf | ||
) | const |
Visualization of raw data in FED-less events (Robert Harr and Alexander Sakharov)
Visualization of raw data.
ALCT Header 1,2
Definition at line 772 of file CSCDCCUnpacker.cc.
References visDQMUpload::buf, gather_cfg::cout, formatedEventDump, mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, GetRecoTauVFromDQM_MC_cff::kk, writedatasetfile::run, and w().
Referenced by produce().
|
private |
Definition at line 106 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 105 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 106 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 112 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 113 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 84 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), rrapi.RRApi::dprint(), util.rrapi.RRApi::dprint(), pkg.AbstractPkg::generate(), util.rrapi.RRApi::get(), rrapi.RRApi::get(), pkg.AbstractPkg::get_kwds(), runTauIdMVA.TauIDEmbedder::load_againstElectronMVA6(), runTauIdMVA.TauIDEmbedder::loadMVA_WPs_run2_2017(), produce(), and pkg.AbstractPkg::write().
|
private |
Definition at line 105 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 102 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 102 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 97 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), produce(), and visual_raw().
|
private |
Definition at line 84 of file CSCDCCUnpacker.cc.
Referenced by produce().
|
private |
Token for consumes interface & access to data.
Definition at line 111 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 103 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 108 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), produce(), and production_tasks.MonitorJobs::run().
|
private |
Definition at line 101 of file CSCDCCUnpacker.cc.
Referenced by produce().
|
private |
Definition at line 84 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Suppress zeros LCTs.
Definition at line 99 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 84 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
option to unpack CSC shower data
Definition at line 94 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 84 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 85 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
option to unpack GEM cluster data
Definition at line 91 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
option to unpack RPC data
Definition at line 88 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 85 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Visualization of raw data.
Definition at line 97 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().
|
private |
Definition at line 97 of file CSCDCCUnpacker.cc.
Referenced by CSCDCCUnpacker(), and produce().