CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
SiPixelGainCalibrationForHLTService Class Reference

#include <SiPixelGainCalibrationForHLTService.h>

Inheritance diagram for SiPixelGainCalibrationForHLTService:
SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd > SiPixelGainCalibrationServiceBase

Public Member Functions

float getGain (const uint32_t &detID, const int &col, const int &row)
 
float getPedestal (const uint32_t &detID, const int &col, const int &row)
 
bool isDead (const uint32_t &detID, const int &col, const int &row)
 
bool isDeadColumn (const uint32_t &detID, const int &col, const int &row)
 
bool isNoisy (const uint32_t &detID, const int &col, const int &row)
 
bool isNoisyColumn (const uint32_t &detID, const int &col, const int &row)
 
 SiPixelGainCalibrationForHLTService (const edm::ParameterSet &conf)
 
 ~SiPixelGainCalibrationForHLTService ()
 
- Public Member Functions inherited from SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >
std::vector< uint32_t > getDetIds ()
 
double getGainHigh ()
 
double getGainLow ()
 
double getPedHigh ()
 
double getPedLow ()
 
void setESObjects (const edm::EventSetup &es)
 
 SiPixelGainCalibrationServicePayloadGetter (const edm::ParameterSet &conf)
 
virtual ~SiPixelGainCalibrationServicePayloadGetter ()
 
- Public Member Functions inherited from SiPixelGainCalibrationServiceBase
 SiPixelGainCalibrationServiceBase ()
 
virtual ~SiPixelGainCalibrationServiceBase ()
 

Additional Inherited Members

- Protected Member Functions inherited from SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >
float getGainByColumn (const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
 
float getGainByPixel (const uint32_t &detID, const int &col, const int &row, bool &isDeadPixel, bool &isNoisyPixel)
 
float getPedestalByColumn (const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
 
float getPedestalByPixel (const uint32_t &detID, const int &col, const int &row, bool &isDeadPixel, bool &isNoisyPixel)
 
void throwExepctionForBadRead (std::string payload, const uint32_t &detID, const int &col, const int &row, double value=-1) const
 

Detailed Description

Definition at line 21 of file SiPixelGainCalibrationForHLTService.h.

Constructor & Destructor Documentation

SiPixelGainCalibrationForHLTService::SiPixelGainCalibrationForHLTService ( const edm::ParameterSet conf)
inlineexplicit
SiPixelGainCalibrationForHLTService::~SiPixelGainCalibrationForHLTService ( )
inline

Definition at line 26 of file SiPixelGainCalibrationForHLTService.h.

26 {};

Member Function Documentation

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

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.

Definition at line 32 of file SiPixelGainCalibrationForHLTService.cc.

References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getGainByColumn(), isDead(), isNoisy(), and SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::throwExepctionForBadRead().

33 {
34  bool isDead = false;
35  bool isNoisy = false;
36  float gainValue = this->getGainByColumn(detID, col, row, isDead, isNoisy);
37  if (isDead || isNoisy)
38  {
39  this->throwExepctionForBadRead("HLT getGain()", detID, col, row, gainValue);
40  return 0.0;
41  }
42  return gainValue;
43 }
float getGainByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
void throwExepctionForBadRead(std::string payload, const uint32_t &detID, const int &col, const int &row, double value=-1) const
bool isDead(const uint32_t &detID, const int &col, const int &row)
int col
Definition: cuy.py:1008
bool isNoisy(const uint32_t &detID, const int &col, const int &row)
float SiPixelGainCalibrationForHLTService::getPedestal ( const uint32_t &  detID,
const int &  col,
const int &  row 
)
virtual

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.

Definition at line 19 of file SiPixelGainCalibrationForHLTService.cc.

References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getPedestalByColumn(), isDead(), isNoisy(), and SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::throwExepctionForBadRead().

20 {
21  bool isDead = false;
22  bool isNoisy = false;
23  float pedestalValue = this->getPedestalByColumn(detID, col, row, isDead, isNoisy);
24  if (isDead || isNoisy)
25  {
26  this->throwExepctionForBadRead("HLT getPedestal()", detID, col, row, pedestalValue);
27  return 0.0;
28  }
29  return pedestalValue;
30 }
float getPedestalByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
void throwExepctionForBadRead(std::string payload, const uint32_t &detID, const int &col, const int &row, double value=-1) const
bool isDead(const uint32_t &detID, const int &col, const int &row)
int col
Definition: cuy.py:1008
bool isNoisy(const uint32_t &detID, const int &col, const int &row)
bool SiPixelGainCalibrationForHLTService::isDead ( const uint32_t &  detID,
const int &  col,
const int &  row 
)
virtual

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.

Definition at line 45 of file SiPixelGainCalibrationForHLTService.cc.

References alignCSCRings::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getPedestalByColumn(), isNoisy(), and cms::Exception::what().

Referenced by getGain(), getPedestal(), isDeadColumn(), isNoisy(), and isNoisyColumn().

46 {
47  bool isDead = false;
48  bool isNoisy = false;
49  try
50  {
51  this->getPedestalByColumn(detID, col, row, isDead, isNoisy); //pedestal stores dead column value as well
52  }
53  catch (cms::Exception& e)
54  {
55  // Do not stop processing if you check if a nonexistant pixel is dead
56  edm::LogInfo("SiPixelGainCalibrationForHLTService") << "Attempting to check if nonexistant pixel is dead. Exception message: " << e.what();
57  isDead = false;
58  }
59  return isDead;
60 }
virtual char const * what() const
Definition: Exception.cc:141
float getPedestalByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
bool isDead(const uint32_t &detID, const int &col, const int &row)
int col
Definition: cuy.py:1008
bool isNoisy(const uint32_t &detID, const int &col, const int &row)
bool SiPixelGainCalibrationForHLTService::isDeadColumn ( const uint32_t &  detID,
const int &  col,
const int &  row 
)
virtual

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.

Definition at line 79 of file SiPixelGainCalibrationForHLTService.cc.

References alignCSCRings::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getGainByColumn(), isDead(), isNoisy(), and cms::Exception::what().

80 {
81  bool isDead = false;
82  bool isNoisy = false;
83  try
84  {
85  this->getGainByColumn(detID, col, row, isDead, isNoisy);
86  }
87  catch (cms::Exception& e)
88  {
89  // Do not stop processing if you check if a nonexistant pixel is dead
90  edm::LogInfo("SiPixelGainCalibrationForHLTService") << "Attempting to check if nonexistant pixel is dead. Exception message: " << e.what();
91  isDead = false;
92  }
93  return isDead;
94 }
virtual char const * what() const
Definition: Exception.cc:141
float getGainByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
bool isDead(const uint32_t &detID, const int &col, const int &row)
int col
Definition: cuy.py:1008
bool isNoisy(const uint32_t &detID, const int &col, const int &row)
bool SiPixelGainCalibrationForHLTService::isNoisy ( const uint32_t &  detID,
const int &  col,
const int &  row 
)
virtual

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.

Definition at line 62 of file SiPixelGainCalibrationForHLTService.cc.

References alignCSCRings::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getPedestalByColumn(), isDead(), and cms::Exception::what().

Referenced by getGain(), getPedestal(), isDead(), isDeadColumn(), and isNoisyColumn().

63 {
64  bool isDead = false;
65  bool isNoisy = false;
66  try
67  {
68  this->getPedestalByColumn(detID, col, row, isDead, isNoisy); //pedestal stores noisy column value as well
69  }
70  catch (cms::Exception& e)
71  {
72  // Do not stop processing if you check if a nonexistant pixel is noisy
73  edm::LogInfo("SiPixelGainCalibrationForHLTService") << "Attempting to check if nonexistant pixel is noisy. Exception message: " << e.what();
74  isNoisy = false;
75  }
76  return isNoisy;
77 }
virtual char const * what() const
Definition: Exception.cc:141
float getPedestalByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
bool isDead(const uint32_t &detID, const int &col, const int &row)
int col
Definition: cuy.py:1008
bool isNoisy(const uint32_t &detID, const int &col, const int &row)
bool SiPixelGainCalibrationForHLTService::isNoisyColumn ( const uint32_t &  detID,
const int &  col,
const int &  row 
)
virtual

Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.

Definition at line 96 of file SiPixelGainCalibrationForHLTService.cc.

References alignCSCRings::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getGainByColumn(), isDead(), isNoisy(), and cms::Exception::what().

97 {
98  bool isDead = false;
99  bool isNoisy = false;
100  try
101  {
102  this->getGainByColumn(detID, col, row, isDead, isNoisy);
103  }
104  catch (cms::Exception& e)
105  {
106  // Do not stop processing if you check if a nonexistant pixel is noisy
107  edm::LogInfo("SiPixelGainCalibrationForHLTService") << "Attempting to check if nonexistant pixel is noisy. Exception message: " << e.what();
108  isNoisy = false;
109  }
110  return isNoisy;
111 }
virtual char const * what() const
Definition: Exception.cc:141
float getGainByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
bool isDead(const uint32_t &detID, const int &col, const int &row)
int col
Definition: cuy.py:1008
bool isNoisy(const uint32_t &detID, const int &col, const int &row)