Collection of code to convert TOTEM raw data into digi. More...
#include <RawToDigiConverter.h>
Classes | |
struct | Record |
Private Types | |
enum | TestFlag { tfNoTest, tfWarn, tfErr } |
Private Member Functions | |
void | runCommon (const VFATFrameCollection &input, const TotemDAQMapping &mapping, std::map< TotemFramePosition, Record > &records) |
Common processing for all VFAT based sub-systems. More... | |
Private Attributes | |
const double | BC_fraction |
const unsigned int | BC_min |
const double | EC_fraction |
the minimal required (relative) occupancy of the most frequent counter value to be accepted More... | |
const unsigned int | EC_min |
the minimal required number of frames to determine the most frequent counter value More... | |
std::map< TotemFramePosition, std::map< TotemVFATStatus, unsigned int > > | errorSummary |
error summaries More... | |
const bool | olderTotemT2FileTest |
const bool | printErrorSummary |
const bool | printUnknownFrameSummary |
const unsigned int | testBCMostFrequent |
const unsigned int | testCRC |
const unsigned int | testECMostFrequent |
const unsigned int | testFootprint |
flags for which tests to run More... | |
const unsigned int | testID |
std::map< TotemFramePosition, unsigned int > | unknownSummary |
const unsigned char | verbosity |
Collection of code to convert TOTEM raw data into digi.
Definition at line 30 of file RawToDigiConverter.h.
|
private |
Enumerator | |
---|---|
tfNoTest | |
tfWarn | |
tfErr |
Definition at line 77 of file RawToDigiConverter.h.
RawToDigiConverter::RawToDigiConverter | ( | const edm::ParameterSet & | conf | ) |
Definition at line 26 of file RawToDigiConverter.cc.
void RawToDigiConverter::printSummaries | ( | ) | const |
Print error summaries.
Definition at line 469 of file RawToDigiConverter.cc.
References errorSummary, printErrorSummary, printUnknownFrameSummary, and unknownSummary.
Referenced by TotemVFATRawToDigi::endStream().
void RawToDigiConverter::run | ( | const VFATFrameCollection & | coll, |
const TotemDAQMapping & | mapping, | ||
const TotemAnalysisMask & | mask, | ||
edm::DetSetVector< TotemRPDigi > & | digi, | ||
edm::DetSetVector< TotemVFATStatus > & | status | ||
) |
Creates RP digi.
Definition at line 190 of file RawToDigiConverter.cc.
References TotemAnalysisMask::analysisMask, TotemRPDetId::chip(), hcalRecHitTable_cff::detId, edm::DetSet< T >::emplace_back(), edm::DetSetVector< T >::find_or_insert(), TotemVFATAnalysisMask::fullMask, input, taus_updatedMVAIds_cff::mapping, TotemVFATAnalysisMask::maskedChannels, hltrates_dqm_sourceclient-live_cfg::offset, AlCaHLTBitMon_ParallelJobs::p, TotemRPDetId::planeId(), edm::DetSet< T >::push_back(), AlCaHarvesting_cff::record, and runCommon().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), and TotemVFATRawToDigi::run().
void RawToDigiConverter::run | ( | const VFATFrameCollection & | coll, |
const TotemDAQMapping & | mapping, | ||
const TotemAnalysisMask & | mask, | ||
edm::DetSetVector< CTPPSDiamondDigi > & | digi, | ||
edm::DetSetVector< TotemVFATStatus > & | status | ||
) |
Creates Diamond digi.
Definition at line 248 of file RawToDigiConverter.cc.
References hcalRecHitTable_cff::detId, edm::DetSet< T >::emplace_back(), edm::DetSetVector< T >::find_or_insert(), pps::diamond::vfat::getHptdcErrorFlag(), pps::diamond::vfat::getLeadingEdgeTime(), pps::diamond::vfat::getMultihit(), pps::diamond::vfat::getThresholdVoltage(), pps::diamond::vfat::getTrailingEdgeTime(), taus_updatedMVAIds_cff::mapping, AlCaHLTBitMon_ParallelJobs::p, edm::DetSet< T >::push_back(), AlCaHarvesting_cff::record, runCommon(), and mps_update::status.
Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().
void RawToDigiConverter::run | ( | const VFATFrameCollection & | coll, |
const TotemDAQMapping & | mapping, | ||
const TotemAnalysisMask & | mask, | ||
edm::DetSetVector< TotemTimingDigi > & | digi, | ||
edm::DetSetVector< TotemVFATStatus > & | status | ||
) |
Creates Totem Timing digi.
Definition at line 285 of file RawToDigiConverter.cc.
References TotemDAQMapping::TotemTimingPlaneChannelPair::channel, TauDecayModes::dec, hcalRecHitTable_cff::detId, dumpTauVariables_cfi::eventInfo, edm::DetSetVector< T >::find_or_insert(), RawToDigiConverter::Record::frame, VFATFrame::getData(), TotemFramePosition::getGOHId(), TotemFramePosition::getIdxInFiber(), TotemFramePosition::getOptoRxId(), TotemFramePosition::getSubSystemId(), TotemFramePosition::getTOTFEDId(), createfilelist::int, taus_updatedMVAIds_cff::mapping, AlCaHLTBitMon_ParallelJobs::p, TotemDAQMapping::TotemTimingPlaneChannelPair::plane, edm::DetSet< T >::push_back(), AlCaHarvesting_cff::record, runCommon(), and verbosity.
Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().
void RawToDigiConverter::run | ( | const VFATFrameCollection & | coll, |
const TotemDAQMapping & | mapping, | ||
const TotemAnalysisMask & | mask, | ||
edmNew::DetSetVector< TotemT2Digi > & | digi, | ||
edm::DetSetVector< TotemVFATStatus > & | status | ||
) |
Creates Totem T2 digi.
Definition at line 393 of file RawToDigiConverter.cc.
References totem::nt2::vfat::channelMarker(), hcalRecHitTable_cff::detId, edmNew::DetSetVector< T >::FastFiller, createfilelist::int, totem::nt2::vfat::leadingEdgeTime(), taus_updatedMVAIds_cff::mapping, totem::nt2::vfat::newChannelId(), totem::nt2::vfat::num_channels_per_payload, olderTotemT2FileTest, AlCaHLTBitMon_ParallelJobs::p, edm::DetSet< T >::push_back(), AlCaHarvesting_cff::record, runCommon(), mps_update::status, totem::nt2::vfat::statusMarker(), totem::nt2::vfat::trailingEdgeTime(), verbosity, and y.
Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().
|
private |
Common processing for all VFAT based sub-systems.
Definition at line 45 of file RawToDigiConverter.cc.
References CounterChecker::Analyze(), BC_fraction, BC_min, CounterChecker::BCChecker, TauDecayModes::dec, EC_fraction, EC_min, CounterChecker::ECChecker, errorSummary, CounterChecker::Fill(), input, VFATFrameCollection::Iterator::IsEnd(), visualization-live-secondInstance_cfg::m, taus_updatedMVAIds_cff::mapping, AlCaHLTBitMon_ParallelJobs::p, printErrorSummary, AlCaHarvesting_cff::record, TotemVFATStatus::setMissing(), testBCMostFrequent, testCRC, testECMostFrequent, testFootprint, testID, tfErr, tfNoTest, unknownSummary, and verbosity.
Referenced by run().
|
private |
Definition at line 90 of file RawToDigiConverter.h.
Referenced by runCommon().
|
private |
Definition at line 87 of file RawToDigiConverter.h.
Referenced by runCommon().
|
private |
the minimal required (relative) occupancy of the most frequent counter value to be accepted
Definition at line 90 of file RawToDigiConverter.h.
Referenced by runCommon().
|
private |
the minimal required number of frames to determine the most frequent counter value
Definition at line 87 of file RawToDigiConverter.h.
Referenced by runCommon().
|
private |
error summaries
Definition at line 96 of file RawToDigiConverter.h.
Referenced by printSummaries(), and runCommon().
|
private |
Definition at line 93 of file RawToDigiConverter.h.
Referenced by run().
|
private |
Definition at line 74 of file RawToDigiConverter.h.
Referenced by printSummaries(), and runCommon().
|
private |
Definition at line 75 of file RawToDigiConverter.h.
Referenced by printSummaries().
|
private |
Definition at line 84 of file RawToDigiConverter.h.
Referenced by runCommon().
|
private |
Definition at line 81 of file RawToDigiConverter.h.
Referenced by runCommon().
|
private |
Definition at line 83 of file RawToDigiConverter.h.
Referenced by runCommon().
|
private |
flags for which tests to run
Definition at line 80 of file RawToDigiConverter.h.
Referenced by runCommon().
|
private |
Definition at line 82 of file RawToDigiConverter.h.
Referenced by runCommon().
|
private |
Definition at line 97 of file RawToDigiConverter.h.
Referenced by printSummaries(), and runCommon().
|
private |
Definition at line 72 of file RawToDigiConverter.h.
Referenced by run(), and runCommon().