CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 CastorCoderDb::adc2fC_(), HcalCoderDb::adc2fC_(), HcaluLUTTPGCoder::adc2Linear(), DBlmapWriter::addLMapHBEFDataset(), LMapLoader::addLMapHBEFDataset(), XMLProcessor::addLMapHBEFDataset(), ESElectronicsSimFast::analogToDigital(), CSCComparatorDigiValidation::analyze(), CastorDigiStatistics::analyze(), HcalDigiStatistics::analyze(), ESTimingTask::analyze(), SiStripBaselineValidator::analyze(), SiStripMonitorDigi::analyze(), EcalPreshowerNoiseDistrib::analyze(), EcalSimRawData::analyze(), HGCalDigiValidation::analyze(), EcalLaserAnalyzerYousi::analyze(), SiStripBaselineAnalyzer::analyze(), EcnaAnalyzer::analyze(), SiStripClusterToDigiProducer::applyGain(), ThreeThresholdAlgorithm::applyGains(), EcalClusterLazyToolsBase::BasicClusterTime(), FWSiPixelClusterProxyBuilder::build(), DCCTBDataMapper::buildXtalFields(), SiStripAPVRestorer::Cleaner_LocalMinimumAdder(), Digi2Raw2Digi::compare(), DigiConverterFP420::convert(), SiTrivialDigitalConverter::convert(), SiTrivialDigitalConverter::convertRaw(), PixelThresholdClusterizer::copy_to_buffer(), CastorSimpleRecAlgoImpl::corrSaturation(), DBlmapWriter::createLMap(), HGCalDigiValidation::digiValidation(), ESElectronicsSim::encode(), EcalCoder::encode(), 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(), EcalSimRawData::genFeData(), EcalSimRawData::getEbDigi(), HcalQIEManager::getHfQieTable(), HcalLutManager::getLinearizationLutXmlFromAsciiMasterEmap(), HcalLutManager::getLinearizationLutXmlFromCoderEmap(), CSCMake2DRecHit::hitFromStripAndWire(), PFHBHERecHitCreatorMaxSample::importRecHits(), PixelDataFormatter::interpretRawData(), SiStripFedZeroSuppression::IsAValidDigi(), CastorSimpleRecAlgoImpl::isSaturated(), CastorLedAnalysis::LedCastorHists(), HcalLedAnalysis::LedHBHEHists(), HcalLedAnalysis::LedHFHists(), HcalLedAnalysis::LedHOHists(), OptoScanTask::locateTicks(), SiPixelDigitizerAlgorithm::make_digis(), CSCHitFromStripOnly::makeStripData(), SiStripZeroSuppression::MergeCollectionsZeroSuppression(), ShallowClustersProducer::NearDigis::NearDigis(), ESRecHitSimAlgo::oldEvalAmplitude(), PrintRecoObjects::print(), MatacqTBDataFormatter::printData(), MatacqDataFormatter::printData(), EcalFenixStripFgvbEE::process(), HcalZDCMonitor::processEvent(), edm::DataMixingEMDigiWorker::putEM(), edm::DataMixingSiPixelWorker::putSiPixel(), edm::DataMixingSiPixelMCDigiWorker::putSiPixel(), EcalPedOffset::readDACs(), EcalPedHists::readEBdigis(), EcalPedHists::readEEdigis(), ecaldqm::PresampleTask::runOnDigis(), ecaldqm::LaserTask::runOnDigis(), ecaldqm::LedTask::runOnDigis(), HGCFEElectronics< DFr >::runTrivialShaper(), HcalSignalGenerator< HBHEDigitizerTraits >::samplesInPE(), EcalSignalGenerator< ESDigitizerTraits >::samplesInPE(), EcalSignalGenerator< EEDigitizerTraits >::samplesInPE(), EcalSignalGenerator< EBDigitizerTraits >::samplesInPE(), SiPixelArrayBuffer::set_adc(), DCUCapsuleTempRawDat::setCapsuleTempADC(), CastorQIEShape::setLowEdges(), HcalQIEShape::setLowEdges(), TPNPulse::setPulse(), TAPDPulse::setPulse(), EBDataFrame::spikeEstimator(), SiStripApvShotCleaner::subtractCM(), SiStripFedZeroSuppression::suppress(), ZeroSuppressFP420::trkFEDclusterizer(), DigiConverterFP420::truncate(), SiTrivialDigitalConverter::truncate(), SiTrivialDigitalConverter::truncateRaw(), HcalFiberPattern::unpack(), HcaluLUTTPGCoder::update(), HcalSignalGenerator< HBHEDigitizerTraits >::validDigi(), EcalSignalGenerator< EEDigitizerTraits >::validDigi(), ESUnpacker::word2digi(), and PixelDataFormatter::word2digi().

11 { 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.

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)