CMS 3D CMS Logo

Typedefs | Functions
ecalMGPA Namespace Reference

Typedefs

typedef uint16_t sample_type
 

Functions

int adc (sample_type sample)
 get the ADC sample (12 bits) More...
 
int gainId (sample_type sample)
 get the gainId (2 bits) More...
 
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

int ecalMGPA::adc ( sample_type  sample)
inline

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(), CastorDigiStatistics::analyze(), HcalDigiStatistics::analyze(), ESTimingTask::analyze(), ZDCTask::analyze(), SiStripBaselineValidator::analyze(), SiStripMonitorDigi::analyze(), CTPPSPixelDQMSource::analyze(), EcalPreshowerNoiseDistrib::analyze(), EcalSimRawData::analyze(), HGCalDigiValidation::analyze(), EcalLaserAnalyzerYousi::analyze(), HGCalTBAnalyzer::analyze(), SiStripBaselineAnalyzer::analyze(), EcnaAnalyzer::analyze(), SiStripClusterToDigiProducer::applyGain(), ThreeThresholdAlgorithm::applyGains(), EcalClusterLazyToolsBase::BasicClusterTime(), FWSiPixelClusterProxyBuilder::build(), DCCTBDataMapper::buildXtalFields(), SiStripAPVRestorer::Cleaner_LocalMinimumAdder(), Phase2ITPixelArrayBuffer::columns(), SiPixelArrayBuffer::columns(), Digi2Raw2Digi::compare(), 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(), PedsFullNoiseTask::fill(), SiPixelDigiModule::fill(), sistrip::FEDBufferPayloadCreator::fillClusterData(), sistrip::FEDBufferPayloadCreator::fillClusterDataPreMixMode(), reco::HcalNoiseInfoProducer::filldigis(), QcdLowPtDQM::fillPixels(), CSCXonStrip_MatchGatti::findXOnStrip(), JetCoreClusterSplitter::fittingSplit(), SiStripAPVRestorer::FlatRegionsFinder(), SiStripClusterToDigiProducer::gain(), EcalSimRawData::genFeData(), EcalSimRawData::getEbDigi(), HcalQIEManager::getHfQieTable(), HcalLutManager::getLinearizationLutXmlFromAsciiMasterEmap(), HcalLutManager::getLinearizationLutXmlFromCoderEmap(), CSCMake2DRecHit::hitFromStripAndWire(), 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(), SiStripZeroSuppression::MergeCollectionsZeroSuppression(), ShallowClustersProducer::NearDigis::NearDigis(), ESRecHitSimAlgo::oldEvalAmplitude(), UHTRpacker::packQIE8sample(), PrintRecoObjects::print(), MatacqTBDataFormatter::printData(), MatacqDataFormatter::printData(), EcalFenixStripFgvbEE::process(), sistrip::FEDRawChannelUnpacker::procRawModeUnpacker(), edm::DataMixingEMDigiWorker::putEM(), edm::DataMixingSiPixelWorker::putSiPixel(), edm::DataMixingSiPixelMCDigiWorker::putSiPixel(), EcalPedOffset::readDACs(), EcalPedHists::readEBdigis(), EcalPedHists::readEEdigis(), HcalDigisValidation::reco(), ecaldqm::PresampleTask::runOnDigis(), ecaldqm::LaserTask::runOnDigis(), ecaldqm::LedTask::runOnDigis(), SimpleElectronicsSimInMIPs::runTrivialShaper(), HGCFEElectronics< DFr >::runTrivialShaper(), HcalSignalGenerator< HBHEDigitizerTraits >::samplesInPE(), EcalSignalGenerator< EEDigitizerTraits >::samplesInPE(), EcalSignalGenerator< ESDigitizerTraits >::samplesInPE(), EcalSignalGenerator< EBDigitizerTraits >::samplesInPE(), Phase2ITPixelArrayBuffer::set_adc(), SiPixelArrayBuffer::set_adc(), DCUCapsuleTempRawDat::setCapsuleTempADC(), CastorQIEShape::setLowEdges(), HcalQIEShape::setLowEdges(), HcaluLUTTPGCoder::setMaskBit(), 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(), HcalTriggerPrimitiveAlgo::validChannel(), HcalSignalGenerator< HBHEDigitizerTraits >::validDigi(), EcalSignalGenerator< EEDigitizerTraits >::validDigi(), ESUnpacker::word2digi(), PixelDataFormatter::word2digi(), and CSCFindPeakTime::~CSCFindPeakTime().

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

Definition at line 14 of file EcalMGPASample.h.

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