Collection of code to convert TOTEM raw data into digi. More...
#include <RawToDigiConverter.h>
Classes | |
struct | Record |
Public Member Functions | |
void | PrintSummaries () const |
Print error summaries. More... | |
RawToDigiConverter (const edm::ParameterSet &conf) | |
void | Run (const VFATFrameCollection &coll, const TotemDAQMapping &mapping, const TotemAnalysisMask &mask, edm::DetSetVector< TotemRPDigi > &digi, edm::DetSetVector< TotemVFATStatus > &status) |
Creates RP digi. More... | |
void | Run (const VFATFrameCollection &coll, const TotemDAQMapping &mapping, const TotemAnalysisMask &mask, edm::DetSetVector< CTPPSDiamondDigi > &digi, edm::DetSetVector< TotemVFATStatus > &status) |
Creates Diamond digi. More... | |
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 | |
double | BC_fraction |
unsigned int | BC_min |
double | EC_fraction |
the minimal required (relative) occupancy of the most frequent counter value to be accepted More... | |
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... | |
unsigned int | printErrorSummary |
unsigned int | printUnknownFrameSummary |
unsigned int | testBCMostFrequent |
unsigned int | testCRC |
unsigned int | testECDAQ |
unsigned int | testECMostFrequent |
unsigned int | testECRaw |
unsigned int | testFootprint |
flags for which tests to run More... | |
unsigned int | testID |
std::map< TotemFramePosition, unsigned int > | unknownSummary |
unsigned char | verbosity |
Collection of code to convert TOTEM raw data into digi.
Definition at line 25 of file RawToDigiConverter.h.
|
private |
Enumerator | |
---|---|
tfNoTest | |
tfWarn | |
tfErr |
Definition at line 54 of file RawToDigiConverter.h.
RawToDigiConverter::RawToDigiConverter | ( | const edm::ParameterSet & | conf | ) |
Definition at line 27 of file RawToDigiConverter.cc.
void RawToDigiConverter::PrintSummaries | ( | ) | const |
Print error summaries.
Definition at line 301 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 199 of file RawToDigiConverter.cc.
References TotemAnalysisMask::analysisMask, TotemRPDetId::chip(), edm::DetSetVector< T >::find_or_insert(), RawToDigiConverter::Record::frame, TotemVFATAnalysisMask::fullMask, VFATFrame::getActiveChannels(), TotemRPDetId::getPlaneId(), RawToDigiConverter::Record::info, TotemVFATStatus::isOK(), TotemVFATAnalysisMask::maskedChannels, PFRecoTauDiscriminationByIsolation_cfi::offset, AlCaHLTBitMon_ParallelJobs::p, edm::DetSet< T >::push_back(), record, RunCommon(), TotemVFATStatus::setChipPosition(), TotemVFATStatus::setFullyMaskedOut(), TotemVFATStatus::setPartiallyMaskedOut(), RawToDigiConverter::Record::status, TotemSymbID::symbolicID, and TotemVFATInfo::symbolicID.
Referenced by 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 263 of file RawToDigiConverter.cc.
References edm::DetSetVector< T >::find_or_insert(), RawToDigiConverter::Record::frame, VFATFrame::getEC(), DiamondVFATFrame::getHptdcErrorFlag(), DiamondVFATFrame::getLeadingEdgeTime(), DiamondVFATFrame::getMultihit(), DiamondVFATFrame::getThresholdVoltage(), DiamondVFATFrame::getTrailingEdgeTime(), RawToDigiConverter::Record::info, TotemVFATStatus::isOK(), AlCaHLTBitMon_ParallelJobs::p, edm::DetSet< T >::push_back(), record, RunCommon(), TotemVFATStatus::setEC(), RawToDigiConverter::Record::status, TotemSymbID::symbolicID, and TotemVFATInfo::symbolicID.
|
private |
Common processing for all VFAT based sub-systems.
Definition at line 48 of file RawToDigiConverter.cc.
References CounterChecker::Analyze(), BC_fraction, BC_min, CounterChecker::BCChecker, VFATFrame::checkCRC(), VFATFrame::checkFootprint(), TauDecayModes::dec, EC_fraction, EC_min, CounterChecker::ECChecker, errorSummary, CounterChecker::Fill(), RawToDigiConverter::Record::frame, VFATFrame::getChipID(), VFATFrame::getNumberOfClusters(), TotemVFATInfo::hwID, RawToDigiConverter::Record::info, VFATFrameCollection::Iterator::IsEnd(), VFATFrame::isIDPresent(), VFATFrame::isNumberOfClustersPresent(), funct::m, python.rootplot.argparse::message, AlCaHLTBitMon_ParallelJobs::p, printErrorSummary, record, TotemVFATStatus::setCRCError(), TotemVFATStatus::setFootprintError(), TotemVFATStatus::setIDMismatch(), TotemVFATStatus::setMissing(), TotemVFATStatus::setNumberOfClusters(), TotemVFATStatus::setNumberOfClustersSpecified(), RawToDigiConverter::Record::status, TotemSymbID::symbolicID, TotemVFATInfo::symbolicID, testBCMostFrequent, testCRC, testECMostFrequent, testFootprint, testID, tfErr, tfNoTest, unknownSummary, verbosity, and TotemDAQMapping::VFATMapping.
Referenced by Run().
|
private |
Definition at line 69 of file RawToDigiConverter.h.
Referenced by RunCommon().
|
private |
Definition at line 66 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 69 of file RawToDigiConverter.h.
Referenced by RunCommon().
|
private |
the minimal required number of frames to determine the most frequent counter value
Definition at line 66 of file RawToDigiConverter.h.
Referenced by RunCommon().
|
private |
error summaries
Definition at line 72 of file RawToDigiConverter.h.
Referenced by PrintSummaries(), and RunCommon().
|
private |
Definition at line 51 of file RawToDigiConverter.h.
Referenced by PrintSummaries(), and RunCommon().
|
private |
Definition at line 52 of file RawToDigiConverter.h.
Referenced by PrintSummaries().
|
private |
Definition at line 63 of file RawToDigiConverter.h.
Referenced by RunCommon().
|
private |
Definition at line 58 of file RawToDigiConverter.h.
Referenced by RunCommon().
|
private |
Definition at line 61 of file RawToDigiConverter.h.
|
private |
Definition at line 62 of file RawToDigiConverter.h.
Referenced by RunCommon().
|
private |
Definition at line 60 of file RawToDigiConverter.h.
|
private |
flags for which tests to run
Definition at line 57 of file RawToDigiConverter.h.
Referenced by RunCommon().
|
private |
Definition at line 59 of file RawToDigiConverter.h.
Referenced by RunCommon().
|
private |
Definition at line 73 of file RawToDigiConverter.h.
Referenced by PrintSummaries(), and RunCommon().
|
private |
Definition at line 49 of file RawToDigiConverter.h.
Referenced by RunCommon().