Public Member Functions | |
NanoSliceVersionConvention () | |
~NanoSliceVersionConvention () | |
std::ostream & | print (std::ostream &os=std::cout) const |
Encode_Type | getEncodeType (const version_t ver) const |
Get the encoding type. More... | |
uint32_t | getNSamples (const version_t ver) const |
Get the number of samples. More... | |
uint32_t | getNPretriggeredSamples (const version_t ver) const |
Get number of pretriggered samples. More... | |
Private Member Functions | |
bool | setup () |
bool | checkVersion (const version_t ver, const bool throw_exception=true) const |
Private Attributes | |
std::vector< FEBVersioningRegisters > | _versionRegisters |
Definition at line 102 of file NanoSliceVersionConvention.h.
|
inline |
Definition at line 105 of file NanoSliceVersionConvention.h.
References setup().
|
inline |
Definition at line 106 of file NanoSliceVersionConvention.h.
|
inlineprivate |
Check the version of nanoslice If it's wrong, throw an exception
See if it's an allowed version
Definition at line 166 of file NanoSliceVersionConvention.h.
References daqdataformats::rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION, and GENERATE_DATAFORMAT_EXCEPTION.
|
inline |
Get the encoding type.
Definition at line 133 of file NanoSliceVersionConvention.h.
References daqdataformats::ENCODE_UNKNOWN, daqdataformats::FEBVersioningRegisters::getEncode(), and makeTrainCVSamples::int.
Referenced by daqdataformats::VERSION_NAMESPACE::RawNanoSlice::getEncodeType().
|
inline |
Get number of pretriggered samples.
Definition at line 145 of file NanoSliceVersionConvention.h.
References daqdataformats::FEBVersioningRegisters::getNPretriggeredSamples(), and makeTrainCVSamples::int.
Referenced by rawdata::RawDigit::ADC(), novaddt::DAQHit::ADC_Extraction(), mcchk::DetAna::analyze(), rsim::FPGA_DualCorrelatedSampling::ASICToDigits(), bsf::BremShowerFilter::filter(), daqdataformats::VERSION_NAMESPACE::RawNanoSlice::getNPretriggeredSamples(), calib::Calibrator::GetTNS(), novaddt::WaveformProcessor::initmulti(), NovaDDTHitProducer::passes_MCS_filter(), and murem::MuonRemove::produce().
|
inline |
Get the number of samples.
Definition at line 139 of file NanoSliceVersionConvention.h.
References daqdataformats::FEBVersioningRegisters::getNSamples(), and makeTrainCVSamples::int.
Referenced by rawdata::RawDigit::ADC(), novaddt::DAQHit::ADC_Extraction(), mcchk::DetAna::analyze(), rsim::FPGA_DualCorrelatedSampling::ASICToDigits(), daqdataformats::VERSION_NAMESPACE::RawNanoSlice::getNSamples(), calib::Calibrator::GetTNS(), novaddt::WaveformProcessor::initmulti(), and NovaDDTHitProducer::passes_MCS_filter().
|
inline |
Definition at line 108 of file NanoSliceVersionConvention.h.
References MECModelEnuComparisons::i.
|
inlineprivate |
Definition at line 153 of file NanoSliceVersionConvention.h.
References daqdataformats::DCSENCODE_12_in_16, daqdataformats::FEBVersioningRegisters::FEBVersioningRegisters(), and daqdataformats::RAWENCODE_12_in_16.
|
private |
Definition at line 190 of file NanoSliceVersionConvention.h.