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 29 of file SiPixelGainCalibrationServiceBase.h.

Member Typedef Documentation

◆ DigiIterator

Definition at line 31 of file SiPixelGainCalibrationServiceBase.h.

Constructor & Destructor Documentation

◆ SiPixelGainCalibrationServiceBase()

SiPixelGainCalibrationServiceBase::SiPixelGainCalibrationServiceBase ( )
inline

Definition at line 33 of file SiPixelGainCalibrationServiceBase.h.

33 {};

◆ ~SiPixelGainCalibrationServiceBase()

virtual SiPixelGainCalibrationServiceBase::~SiPixelGainCalibrationServiceBase ( )
inlinevirtual

Definition at line 34 of file SiPixelGainCalibrationServiceBase.h.

34 {};

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.

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 = di->adc() * DBgain - DBpedestal;
32  // float vcal = (di->adc() - DBpedestal) * DBgain;
33  electron[i++] = int(vcal * conversionFactor + offset);
34  }
35  }
36  assert(i == (e - b));
37 }

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

◆ fillPSetDescription()

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

Definition at line 36 of file SiPixelGainCalibrationServiceBase.h.

36 {}

Referenced by SiPixelClusterProducer::fillDescriptions().

◆ 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
mps_fire.i
i
Definition: mps_fire.py:428
SiPixelGainCalibrationServiceBase::DigiIterator
edm::DetSet< PixelDigi >::const_iterator DigiIterator
Definition: SiPixelGainCalibrationServiceBase.h:31
SiPixelGainCalibrationServiceBase::isDead
virtual bool isDead(const uint32_t &detID, const int &col, const int &row)=0
SiPixelGainCalibrationServiceBase::getGain
virtual float getGain(const uint32_t &detID, const int &col, const int &row)=0
cuy.col
col
Definition: cuy.py:1010
cms::cuda::assert
assert(be >=bs)
metsig::electron
Definition: SignAlgoResolutions.h:48
b
double b
Definition: hdecay.h:118
createfilelist.int
int
Definition: createfilelist.py:10
SiPixelGainCalibrationServiceBase::getPedestal
virtual float getPedestal(const uint32_t &detID, const int &col, const int &row)=0
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
SiPixelGainCalibrationServiceBase::isNoisy
virtual bool isNoisy(const uint32_t &detID, const int &col, const int &row)=0