CMS 3D CMS Logo

EcalMGPASample Class Reference

Simple container packer/unpacker for a single sample from teh MGPA electronics. More...

#include <DataFormats/EcalDigi/interface/EcalMGPASample.h>

List of all members.

Public Member Functions

int adc () const
 get the ADC sample (12 bits)
 EcalMGPASample (int adc, int gainId)
 EcalMGPASample (uint16_t data)
 EcalMGPASample ()
int gainId () const
 get the gainId (2 bits)
 operator uint16_t () const
uint16_t operator() () const
 for streaming
uint16_t raw () const
 get the raw word

Private Attributes

uint16_t theSample


Detailed Description

Simple container packer/unpacker for a single sample from teh MGPA electronics.

Id
EcalMGPASample.h,v 1.7 2007/08/07 07:03:06 innocent Exp

Definition at line 26 of file EcalMGPASample.h.


Constructor & Destructor Documentation

EcalMGPASample::EcalMGPASample (  )  [inline]

Definition at line 28 of file EcalMGPASample.h.

References theSample.

00028 { theSample=0; }

EcalMGPASample::EcalMGPASample ( uint16_t  data  )  [inline]

Definition at line 29 of file EcalMGPASample.h.

References theSample.

00029 { theSample=data; }

EcalMGPASample::EcalMGPASample ( int  adc,
int  gainId 
)

Definition at line 4 of file EcalMGPASample.cc.

References theSample.

00004                                                  {
00005   theSample=(adc&0xFFF) | ((gainId&0x3)<<12);
00006 }


Member Function Documentation

int EcalMGPASample::adc (  )  const [inline]

get the ADC sample (12 bits)

Definition at line 35 of file EcalMGPASample.h.

References theSample.

Referenced by EcalSelectiveReadoutSuppressor::accept(), EELedTask::analyze(), EcalEndcapRecHitsValidation::analyze(), EBLaserTask::analyze(), EBTestPulseTask::analyze(), EcalTPInputAnalyzer::analyze(), EBBeamCaloTask::analyze(), EELaserTask::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalCorrelatedNoisePedestalRunAnalyzer::analyze(), EcalDigisValidation::analyze(), EBPedestalOnlineTask::analyze(), EcalEndcapDigisValidation::analyze(), EEBeamCaloTask::analyze(), JetToDigiDump::analyze(), EcalBarrelRecHitsValidation::analyze(), EBPedestalTask::analyze(), EEPedestalOnlineTask::analyze(), EETestPulseTask::analyze(), EcalBarrelDigisValidation::analyze(), EcalTBValidation::analyze(), testChannel::analyze(), EEPedestalTask::analyze(), EcalMixingModuleValidation::analyze(), EcalCoder::decode(), GlobalDigisAnalyzer::fillECal(), GlobalDigisProducer::fillECal(), operator<<(), and EcalFenixLinearizer::setInput().

00035 { return theSample&0xFFF; }

int EcalMGPASample::gainId (  )  const [inline]

get the gainId (2 bits)

Definition at line 37 of file EcalMGPASample.h.

References theSample.

Referenced by EcalSelectiveReadoutSuppressor::accept(), EELedTask::analyze(), EBLaserTask::analyze(), EBTestPulseTask::analyze(), EBBeamCaloTask::analyze(), EELaserTask::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalDigisValidation::analyze(), EBPedestalOnlineTask::analyze(), JetToDigiDump::analyze(), EEBeamCaloTask::analyze(), EcalEndcapDigisValidation::analyze(), EBPedestalTask::analyze(), EEPedestalOnlineTask::analyze(), EETestPulseTask::analyze(), EcalBarrelDigisValidation::analyze(), testChannel::analyze(), EEPedestalTask::analyze(), EcalMixingModuleValidation::analyze(), EcalCoder::decode(), GlobalDigisAnalyzer::fillECal(), GlobalDigisProducer::fillECal(), operator<<(), EcalTBWeightUncalibRecHitProducer::produce(), and EcalFenixLinearizer::setInput().

00037 { return (theSample>>12)&0x3; }

EcalMGPASample::operator uint16_t (  )  const [inline]

Definition at line 40 of file EcalMGPASample.h.

References theSample.

00040 { return theSample; }

uint16_t EcalMGPASample::operator() (  )  const [inline]

for streaming

Definition at line 39 of file EcalMGPASample.h.

References theSample.

00039 { return theSample; }

uint16_t EcalMGPASample::raw (  )  const [inline]

get the raw word

Definition at line 33 of file EcalMGPASample.h.

References theSample.

Referenced by EcalFenixLinearizer::setInput().

00033 { return theSample; }


Member Data Documentation

uint16_t EcalMGPASample::theSample [private]

Definition at line 43 of file EcalMGPASample.h.

Referenced by adc(), EcalMGPASample(), gainId(), operator uint16_t(), operator()(), and raw().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:19:44 2009 for CMSSW by  doxygen 1.5.4