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)
int gainId (sample_type sample)
 get the gainId (2 bits)
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 HcalCoderDb::adc2fC_(), CastorCoderDb::adc2fC_(), HcaluLUTTPGCoder::adc2Linear(), DBlmapWriter::addLMapHBEFDataset(), XMLProcessor::addLMapHBEFDataset(), LMapLoader::addLMapHBEFDataset(), ESElectronicsSimFast::analogToDigital(), HFLightCalRand::analyze(), EELedTask::analyze(), HcalDigiStatistics::analyze(), EBLaserTask::analyze(), CSCComparatorDigiValidation::analyze(), EcalSimRawData::analyze(), CastorDigiStatistics::analyze(), ESTimingTask::analyze(), EBTestPulseTask::analyze(), EcnaAnalyzer::analyze(), EELaserTask::analyze(), EBBeamCaloTask::analyze(), HFLightCal::analyze(), SiStripBaselineValidator::analyze(), EBPedestalOnlineTask::analyze(), SiStripMonitorDigi::analyze(), EEBeamCaloTask::analyze(), EEPedestalOnlineTask::analyze(), EBPedestalTask::analyze(), EcalPreshowerNoiseDistrib::analyze(), EETestPulseTask::analyze(), SiStripBaselineAnalyzer::analyze(), HFPreLightCal::analyze(), EEPedestalTask::analyze(), EcalLaserAnalyzerYousi::analyze(), EcalTrigPrimAnalyzerMIPs::analyze(), SiStripClusterToDigiProducer::applyGain(), ThreeThresholdAlgorithm::applyGains(), EcalClusterLazyTools::BasicClusterTime(), DCCTBDataMapper::buildXtalFields(), SiStripAPVRestorer::Cleaner_LocalMinimumAdder(), PixelCPEGeneric::collect_edge_charges(), Digi2Raw2Digi::compare(), DigiConverterFP420::convert(), SiTrivialDigitalConverter::convert(), SiTrivialDigitalConverter::convertRaw(), PixelThresholdClusterizer::copy_to_buffer(), DBlmapWriter::createLMap(), ESElectronicsSim::encode(), EcalCoder::encode(), ESRecHitFitAlgo::EvalAmplitude(), ESRecHitAnalyticAlgo::EvalAmplitude(), ESRecHitSimAlgo::EvalAmplitude(), SiPixelDigiModule::fill(), PedsFullNoiseTask::fill(), PedestalsTask::fill(), sistrip::FEDBufferPayloadCreator::fillClusterData(), reco::HcalNoiseInfoProducer::filldigis(), QcdLowPtDQM::fillPixels(), CSCXonStrip_MatchGatti::findXOnStrip(), SiStripAPVRestorer::FlatRegionsFinder(), EcalSimRawData::genFeData(), EcalSimRawData::getEbDigi(), HcalQIEManager::getHfQieTable(), HcalLutManager::getLinearizationLutXmlFromAsciiMasterEmap(), HcalLutManager::getLinearizationLutXmlFromCoderEmap(), CSCMake2DRecHit::hitFromStripAndWire(), SiStripFedZeroSuppression::IsAValidDigi(), CastorLedAnalysis::LedCastorHists(), HcalLedAnalysis::LedHBHEHists(), HcalLedAnalysis::LedHFHists(), HcalLedAnalysis::LedHOHists(), EcalBarrelRecHitsMaker::loadEcalBarrelRecHits(), EcalEndcapRecHitsMaker::loadEcalEndcapRecHits(), OptoScanTask::locateTicks(), SiPixelDigitizerAlgorithm::make_digis(), CSCHitFromStripOnly::makeStripData(), SiStripZeroSuppression::MergeCollectionsZeroSuppression(), ShallowClustersProducer::NearDigis::NearDigis(), SiPixelHistoricInfoReader::plot(), PrintRecoObjects::print(), MatacqTBDataFormatter::printData(), EcalFenixStripFgvbEE::process(), HcalZDCMonitor::processEvent(), edm::DataMixingEMDigiWorker::putEM(), edm::DataMixingSiPixelWorker::putSiPixel(), EcalPedOffset::readDACs(), EcalPedHists::readEBdigis(), EcalPedHists::readEEdigis(), SiPixelArrayBuffer::set_adc(), DCUCapsuleTempRawDat::setCapsuleTempADC(), CastorQIEShape::setLowEdges(), HcalQIEShape::setLowEdges(), TAPDPulse::setPulse(), TPNPulse::setPulse(), jptJetAnalysis::StripSignalOverNoiseCalculator::signalOverNoise(), EBDataFrame::spikeEstimator(), SiStripApvShotCleaner::subtractCM(), SiStripFedZeroSuppression::suppress(), ZeroSuppressFP420::trkFEDclusterizer(), DigiConverterFP420::truncate(), SiTrivialDigitalConverter::truncateRaw(), HcalFiberPattern::unpack(), HcaluLUTTPGCoder::update(), ESUnpacker::word2digi(), PixelDataFormatter::word2digi(), PixelCPEBase::xCharge(), and PixelCPEBase::yCharge().

{ return sample&0xFFF; }
int ecalMGPA::gainId ( sample_type  sample) [inline]
sample_type ecalMGPA::pack ( int  adc,
int  gainId 
) [inline]

Definition at line 14 of file EcalMGPASample.h.

                                               {
    return (adc&0xFFF) | ((gainId&0x3)<<12);
  }