CMS 3D CMS Logo

Typedefs | Functions
ecalMGPA Namespace Reference

Typedefs

typedef uint16_t sample_type
 

Functions

constexpr int adc (sample_type sample)
 get the ADC sample (12 bits) More...
 
constexpr int gainId (sample_type sample)
 get the gainId (2 bits) More...
 
constexpr sample_type pack (int adc, int gainId)
 

Typedef Documentation

typedef uint16_t ecalMGPA::sample_type

Definition at line 8 of file EcalMGPASample.h.

Function Documentation

constexpr int ecalMGPA::adc ( sample_type  sample)

get the ADC sample (12 bits)

Definition at line 11 of file EcalMGPASample.h.

Referenced by QIE10Task::_process(), QIE11Task::_process(), PedestalTask::_process(), LEDTask::_process(), DigiPhase1Task::_process(), DigiTask::_process(), LaserTask::_process(), CastorCoderDb::adc2fC_(), HcalCoderDb::adc2fC_(), HcaluLUTTPGCoder::adc2Linear(), SiPixelArrayBuffer::add_adc(), XMLProcessor::addLMapHBEFDataset(), ThreeThresholdAlgorithm::addToCandidate(), ESElectronicsSimFast::analogToDigital(), CSCComparatorDigiValidation::analyze(), ZDCQIE10Task::analyze(), CastorDigiStatistics::analyze(), HcalDigiStatistics::analyze(), FCDTask::analyze(), ZDCTask::analyze(), ESTimingTask::analyze(), SiStripBaselineValidator::analyze(), SiStripMonitorDigi::analyze(), EcalPreshowerNoiseDistrib::analyze(), CTPPSPixelDQMSource::analyze(), BtlDigiHitsValidation::analyze(), EcalSimRawData::analyze(), EcalLaserAnalyzerYousi::analyze(), HGCalTBAnalyzer::analyze(), HGCalDigiValidation::analyze(), RecAnalyzerMinbias::analyze(), EcnaAnalyzer::analyze(), SiStripClusterToDigiProducer::applyGain(), ThreeThresholdAlgorithm::applyGains(), EcalClusterLazyToolsBase::BasicClusterTime(), FWSiPixelClusterProxyBuilder::build(), RPixDetClusterizer::buildClusters(), DCCTBDataMapper::buildXtalFields(), SiStripAPVRestorer::cleaner_LocalMinimumAdder(), Phase2ITPixelArrayBuffer::columns(), SiPixelArrayBuffer::columns(), DigiConverterFP420::convert(), SiTrivialDigitalConverter::convert(), SiTrivialDigitalConverter::convertRaw(), PixelThresholdClusterizer::copy_to_buffer(), CastorSimpleRecAlgoImpl::corrSaturation(), Phase2TrackerDigitizerAlgorithm::digitize(), HGCalDigiValidation::digiValidation(), EcalMGPASample::EcalMGPASample(), ESElectronicsSim::encode(), EcalCoder::encode(), HGCalTBAnalyzer::endRun(), ESRecHitAnalyticAlgo::EvalAmplitude(), ESRecHitFitAlgo::EvalAmplitude(), ESRecHitSimAlgo::evalAmplitude(), PedestalsTask::fill(), DaqScopeModeTask::fill(), PedsFullNoiseTask::fill(), SiPixelDigiModule::fill(), sistrip::FEDBufferPayloadCreator::fillClusterData(), sistrip::FEDBufferPayloadCreator::fillClusterDataPreMixMode(), reco::HcalNoiseInfoProducer::filldigis(), QcdLowPtDQM::fillPixels(), HLTHcalLaserMisfireFilter::filter(), CSCXonStrip_MatchGatti::findXOnStrip(), JetCoreClusterSplitter::fittingSplit(), SiStripAPVRestorer::flatRegionsFinder(), SiStripClusterToDigiProducer::gain(), EcalSimRawData::genFeData(), EcalSimRawData::getEbDigi(), HcalQIEManager::getHfQieTable(), HcalLutManager::getLinearizationLutXmlFromAsciiMasterEmap(), CSCMake2DRecHit::hitFromStripAndWire(), SiStripAPVRestorer::hybridFormatInspect(), PFHBHERecHitCreatorMaxSample::importRecHits(), CTPPSPixelDataFormatter::interpretRawData(), PixelDataFormatter::interpretRawData(), SiStripFedZeroSuppression::isAValidDigi(), CastorSimpleRecAlgoImpl::isSaturated(), EcalSimRawData::iTtPhi2cIndex(), HcalZSAlgoRealistic::keepMe(), CastorLedAnalysis::LedCastorHists(), HcalLedAnalysis::LedHBHEHists(), HcalLedAnalysis::LedHFHists(), HcalLedAnalysis::LedHOHists(), OptoScanTask::locateTicks(), HcaluLUTTPGCoder::lookupMSB(), SiPixelDigitizerAlgorithm::make_digis(), CSCHitFromStripOnly::makeStripData(), ShallowClustersProducer::NearDigis::NearDigis(), ESRecHitSimAlgo::oldEvalAmplitude(), UHTRpacker::packQIE8sample(), HcalTriggerPrimitiveAlgo::passTDC(), PrintRecoObjects::print(), MatacqTBDataFormatter::printData(), MatacqDataFormatter::printData(), EcalFenixStripFgvbEE::process(), sistrip::FEDRawChannelUnpacker::procRawModeUnpacker(), PreMixingSiPixelWorker::put(), edm::DataMixingEMDigiWorker::putEM(), edm::DataMixingSiPixelWorker::putSiPixel(), EcalPedOffset::readDACs(), EcalPedHists::readEBdigis(), EcalPedHists::readEEdigis(), HcalDigisValidation::reco(), ecaldqm::PresampleTask::runOnDigis(), ecaldqm::LedTask::runOnDigis(), ecaldqm::LaserTask::runOnDigis(), SimpleElectronicsSimInMIPs::runTrivialShaper(), ETLElectronicsSim::runTrivialShaper(), BTLElectronicsSim::runTrivialShaper(), HGCFEElectronics< DFr >::runTrivialShaper(), HcalSignalGenerator< HBHEDigitizerTraits >::samplesInPE(), EcalSignalGenerator< ESDigitizerTraits >::samplesInPE(), EcalSignalGenerator< EEDigitizerTraits >::samplesInPE(), EcalSignalGenerator< EBDigitizerTraits >::samplesInPE(), SiPixelArrayBuffer::set_adc(), Phase2ITPixelArrayBuffer::set_adc(), HcaluLUTTPGCoder::setAllLinear(), DCUCapsuleTempRawDat::setCapsuleTempADC(), CastorQIEShape::setLowEdges(), HcalQIEShape::setLowEdges(), TPNPulse::setPulse(), TAPDPulse::setPulse(), EBDataFrame::spikeEstimator(), SiStripApvShotCleaner::subtractCM(), hcaldqm::utilities::sumQ_v10(), SiStripFedZeroSuppression::suppress(), ZeroSuppressFP420::trkFEDclusterizer(), DigiConverterFP420::truncate(), SiTrivialDigitalConverter::truncate(), SiTrivialDigitalConverter::truncateRaw(), HcalFiberPattern::unpack(), HcaluLUTTPGCoder::update(), HcalSignalGenerator< HBHEDigitizerTraits >::validDigi(), EcalSignalGenerator< EEDigitizerTraits >::validDigi(), ESUnpacker::word2digi(), PixelDataFormatter::word2digi(), and CSCFindPeakTime::~CSCFindPeakTime().

constexpr int ecalMGPA::gainId ( sample_type  sample)
constexpr sample_type ecalMGPA::pack ( int  adc,
int  gainId 
)

Definition at line 14 of file EcalMGPASample.h.

14  {
15  return (adc&0xFFF) | ((gainId&0x3)<<12);
16  }
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
constexpr int gainId(sample_type sample)
get the gainId (2 bits)