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(), HFLightCalRand::analyze(), HFLightCal::analyze(), HFPreLightCal::analyze(), ESTimingTask::analyze(), CastorDigiStatistics::analyze(), HcalDigiStatistics::analyze(), SiStripMonitorDigi::analyze(), EBPedestalTask::analyze(), EELaserTask::analyze(), EELedTask::analyze(), EEPedestalTask::analyze(), EEPedestalOnlineTask::analyze(), EETestPulseTask::analyze(), EBLaserTask::analyze(), EBPedestalOnlineTask::analyze(), EBTestPulseTask::analyze(), EcalPreshowerNoiseDistrib::analyze(), SiStripBaselineValidator::analyze(), EcalTrigPrimAnalyzerMIPs::analyze(), EcalSimRawData::analyze(), EcalLaserAnalyzerYousi::analyze(), SiStripBaselineAnalyzer::analyze(), EcnaAnalyzer::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(), CastorSimpleRecAlgoImpl::corrSaturation(), DBlmapWriter::createLMap(), ESElectronicsSim::encode(), EcalCoder::encode(), ESRecHitAnalyticAlgo::EvalAmplitude(), ESRecHitFitAlgo::EvalAmplitude(), ESRecHitSimAlgo::EvalAmplitude(), PedestalsTask::fill(), PedsFullNoiseTask::fill(), SiPixelDigiModule::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(), CastorSimpleRecAlgoImpl::isSaturated(), 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(), MatacqDataFormatter::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(), TPNPulse::setPulse(), TAPDPulse::setPulse(), jptJetAnalysis::StripSignalOverNoiseCalculator::signalOverNoise(), EBDataFrame::spikeEstimator(), SiStripApvShotCleaner::subtractCM(), SiStripFedZeroSuppression::suppress(), ZeroSuppressFP420::trkFEDclusterizer(), DigiConverterFP420::truncate(), SiTrivialDigitalConverter::truncate(), SiTrivialDigitalConverter::truncateRaw(), HcalFiberPattern::unpack(), HcaluLUTTPGCoder::update(), ESUnpacker::word2digi(), PixelDataFormatter::word2digi(), PixelCPEBase::xCharge(), and PixelCPEBase::yCharge().

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)