CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions
SiPixelGainCalibrationServiceBase Class Referenceabstract

#include <SiPixelGainCalibrationServiceBase.h>

Inheritance diagram for SiPixelGainCalibrationServiceBase:
SiPixelGainCalibrationServicePayloadGetter< thePayloadObject, theDBRecordType > SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibration, SiPixelGainCalibrationRcd > SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd > SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTSimRcd > SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineRcd > SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationOffline, SiPixelGainCalibrationOfflineSimRcd > SiPixelGainCalibrationService SiPixelGainCalibrationForHLTService SiPixelGainCalibrationForHLTSimService SiPixelGainCalibrationOfflineService SiPixelGainCalibrationOfflineSimService

Public Types

typedef edm::DetSet< PixelDigi >::const_iterator DigiIterator
 

Public Member Functions

virtual void calibrate (uint32_t detID, DigiIterator b, DigiIterator e, float conversionFactor, float offset, int *electron)
 
virtual std::vector< uint32_t > getDetIds ()=0
 
virtual float getGain (const uint32_t &detID, const int &col, const int &row)=0
 
virtual double getGainHigh ()=0
 
virtual double getGainLow ()=0
 
virtual float getPedestal (const uint32_t &detID, const int &col, const int &row)=0
 
virtual double getPedHigh ()=0
 
virtual double getPedLow ()=0
 
virtual bool isDead (const uint32_t &detID, const int &col, const int &row)=0
 
virtual bool isDeadColumn (const uint32_t &detID, const int &col, const int &row)=0
 
virtual bool isNoisy (const uint32_t &detID, const int &col, const int &row)=0
 
virtual bool isNoisyColumn (const uint32_t &detID, const int &col, const int &row)=0
 
virtual void setESObjects (const edm::EventSetup &es)=0
 
 SiPixelGainCalibrationServiceBase ()
 
virtual ~SiPixelGainCalibrationServiceBase ()
 

Static Public Member Functions

static void fillPSetDescription (edm::ParameterSetDescription &desc)
 

Detailed Description

Definition at line 30 of file SiPixelGainCalibrationServiceBase.h.

Member Typedef Documentation

◆ DigiIterator

Definition at line 32 of file SiPixelGainCalibrationServiceBase.h.

Constructor & Destructor Documentation

◆ SiPixelGainCalibrationServiceBase()

SiPixelGainCalibrationServiceBase::SiPixelGainCalibrationServiceBase ( )
inline

Definition at line 34 of file SiPixelGainCalibrationServiceBase.h.

34 {};

◆ ~SiPixelGainCalibrationServiceBase()

virtual SiPixelGainCalibrationServiceBase::~SiPixelGainCalibrationServiceBase ( )
inlinevirtual

Definition at line 35 of file SiPixelGainCalibrationServiceBase.h.

35 {};

Member Function Documentation

◆ calibrate()

void SiPixelGainCalibrationServiceBase::calibrate ( uint32_t  detID,
DigiIterator  b,
DigiIterator  e,
float  conversionFactor,
float  offset,
int *  electron 
)
virtual

Reimplemented in SiPixelGainCalibrationForHLTService.

Definition at line 19 of file SiPixelGainCalibrationService.cc.

References cms::cuda::assert(), b, cuy::col, MillePedeFileConverter_cfg::e, HPSPFTauProducerPuppi_cfi::electron, nano_mu_digi_cff::float, getGain(), getPedestal(), mps_fire::i, createfilelist::int, isDead(), isNoisy(), and hltrates_dqm_sourceclient-live_cfg::offset.

20  {
21  int i = 0;
22  for (DigiIterator di = b; di != e; ++di) {
23  int row = di->row();
24  int col = di->column();
25 
26  if (isDead(detID, col, row) || isNoisy(detID, col, row))
27  electron[i++] = 0;
28  else {
29  float DBgain = getGain(detID, col, row);
30  float DBpedestal = getPedestal(detID, col, row) * DBgain;
31  float vcal = float(di->adc()) * DBgain - DBpedestal;
32  electron[i++] = int(vcal * conversionFactor + offset);
33  }
34  }
35  assert(i == (e - b));
36 }
edm::DetSet< PixelDigi >::const_iterator DigiIterator
virtual bool isDead(const uint32_t &detID, const int &col, const int &row)=0
assert(be >=bs)
virtual float getPedestal(const uint32_t &detID, const int &col, const int &row)=0
double b
Definition: hdecay.h:120
col
Definition: cuy.py:1009
virtual float getGain(const uint32_t &detID, const int &col, const int &row)=0
virtual bool isNoisy(const uint32_t &detID, const int &col, const int &row)=0

◆ fillPSetDescription()

static void SiPixelGainCalibrationServiceBase::fillPSetDescription ( edm::ParameterSetDescription desc)
inlinestatic

Definition at line 37 of file SiPixelGainCalibrationServiceBase.h.

Referenced by SiPixelClusterProducer::fillDescriptions().

37 {}

◆ getDetIds()

virtual std::vector<uint32_t> SiPixelGainCalibrationServiceBase::getDetIds ( )
pure virtual

◆ getGain()

virtual float SiPixelGainCalibrationServiceBase::getGain ( const uint32_t &  detID,
const int &  col,
const int &  row 
)
pure virtual

◆ getGainHigh()

virtual double SiPixelGainCalibrationServiceBase::getGainHigh ( )
pure virtual

◆ getGainLow()

virtual double SiPixelGainCalibrationServiceBase::getGainLow ( )
pure virtual

◆ getPedestal()

virtual float SiPixelGainCalibrationServiceBase::getPedestal ( const uint32_t &  detID,
const int &  col,
const int &  row 
)
pure virtual

◆ getPedHigh()

virtual double SiPixelGainCalibrationServiceBase::getPedHigh ( )
pure virtual

◆ getPedLow()

virtual double SiPixelGainCalibrationServiceBase::getPedLow ( )
pure virtual

◆ isDead()

virtual bool SiPixelGainCalibrationServiceBase::isDead ( const uint32_t &  detID,
const int &  col,
const int &  row 
)
pure virtual

◆ isDeadColumn()

virtual bool SiPixelGainCalibrationServiceBase::isDeadColumn ( const uint32_t &  detID,
const int &  col,
const int &  row 
)
pure virtual

◆ isNoisy()

virtual bool SiPixelGainCalibrationServiceBase::isNoisy ( const uint32_t &  detID,
const int &  col,
const int &  row 
)
pure virtual

◆ isNoisyColumn()

virtual bool SiPixelGainCalibrationServiceBase::isNoisyColumn ( const uint32_t &  detID,
const int &  col,
const int &  row 
)
pure virtual

◆ setESObjects()

virtual void SiPixelGainCalibrationServiceBase::setESObjects ( const edm::EventSetup es)
pure virtual