CMS 3D CMS Logo

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

#include <CondFormats/SiPixelObjects/src/SiPixelGainCalibrationOffline.cc>

Classes

struct  DecodingStructure
 
struct  DetRegistry
 
class  StrictWeakOrdering
 

Public Types

typedef std::vector< char >
::const_iterator 
ContainerIterator
 
typedef std::pair
< ContainerIterator,
ContainerIterator
Range
 
typedef std::vector< DetRegistryRegistry
 
typedef Registry::const_iterator RegistryIterator
 

Public Member Functions

void getDetIds (std::vector< uint32_t > &DetIds_) const
 
float getGain (const int &col, const int &row, const Range &range, const int &nCols, bool &isDeadColumn, bool &isNoisyColumn) const
 
double getGainHigh () const
 
double getGainLow () const
 
const int getNCols (const uint32_t &detID) const
 
unsigned int getNumberOfRowsToAverageOver () const
 
float getPed (const int &col, const int &row, const Range &range, const int &nCols, bool &isDead, bool &isNoisy) const
 
double getPedHigh () const
 
double getPedLow () const
 
const Range getRange (const uint32_t &detID) const
 
const std::pair< const Range,
const int > 
getRangeAndNCols (const uint32_t &detID) const
 
void initialize ()
 
bool put (const uint32_t &detID, Range input, const int &nCols)
 
void setDataGain (float gain, const int &nRows, std::vector< char > &vped, bool thisColumnIsDead=false, bool thisColumnIsNoisy=false)
 
void setDataPedestal (float pedestal, std::vector< char > &vped, bool thisPixelIsDead=false, bool thisPixelIsNoisy=false)
 
void setDeadColumn (const int &nRows, std::vector< char > &vped)
 
void setDeadPixel (std::vector< char > &vped)
 
void setNoisyColumn (const int &nRows, std::vector< char > &vped)
 
void setNoisyPixel (std::vector< char > &vped)
 
 SiPixelGainCalibrationOffline ()
 
 SiPixelGainCalibrationOffline (float minPed, float maxPed, float minGain, float maxGain)
 
 ~SiPixelGainCalibrationOffline ()
 

Private Member Functions

float decodeGain (unsigned int gain) const
 
float decodePed (unsigned int ped) const
 
float encodeGain (const float &gain)
 
float encodePed (const float &ped)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

unsigned int deadFlag_
 
std::vector< DetRegistryindexes
 
float maxGain_
 
float maxPed_
 
float minGain_
 
float minPed_
 
unsigned int nBinsToUseForEncoding_
 
unsigned int noisyFlag_
 
unsigned int numberOfRowsToAverageOver_
 
std::vector< char > v_pedestals
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Description: Gain calibration object for the Silicon Pixel detector. Stores pedestal at pixel granularity, gain at column granularity.

Implementation: <Notes on="" implementation>="">

Definition at line 29 of file SiPixelGainCalibrationOffline.h.

Member Typedef Documentation

typedef std::vector<char>::const_iterator SiPixelGainCalibrationOffline::ContainerIterator

Definition at line 51 of file SiPixelGainCalibrationOffline.h.

Definition at line 52 of file SiPixelGainCalibrationOffline.h.

Definition at line 53 of file SiPixelGainCalibrationOffline.h.

typedef Registry::const_iterator SiPixelGainCalibrationOffline::RegistryIterator

Definition at line 54 of file SiPixelGainCalibrationOffline.h.

Constructor & Destructor Documentation

SiPixelGainCalibrationOffline::SiPixelGainCalibrationOffline ( )

Definition at line 9 of file SiPixelGainCalibrationOffline.cc.

SiPixelGainCalibrationOffline::SiPixelGainCalibrationOffline ( float  minPed,
float  maxPed,
float  minGain,
float  maxGain 
)

Definition at line 27 of file SiPixelGainCalibrationOffline.cc.

SiPixelGainCalibrationOffline::~SiPixelGainCalibrationOffline ( )
inline

Definition at line 59 of file SiPixelGainCalibrationOffline.h.

59 {}

Member Function Documentation

float SiPixelGainCalibrationOffline::decodeGain ( unsigned int  gain) const
private

Definition at line 230 of file SiPixelGainCalibrationOffline.cc.

float SiPixelGainCalibrationOffline::decodePed ( unsigned int  ped) const
private

Definition at line 222 of file SiPixelGainCalibrationOffline.cc.

float SiPixelGainCalibrationOffline::encodeGain ( const float &  gain)
private

Definition at line 196 of file SiPixelGainCalibrationOffline.cc.

float SiPixelGainCalibrationOffline::encodePed ( const float &  ped)
private

Definition at line 209 of file SiPixelGainCalibrationOffline.cc.

void SiPixelGainCalibrationOffline::getDetIds ( std::vector< uint32_t > &  DetIds_) const

Definition at line 93 of file SiPixelGainCalibrationOffline.cc.

float SiPixelGainCalibrationOffline::getGain ( const int &  col,
const int &  row,
const Range range,
const int &  nCols,
bool &  isDeadColumn,
bool &  isNoisyColumn 
) const

Definition at line 173 of file SiPixelGainCalibrationOffline.cc.

double SiPixelGainCalibrationOffline::getGainHigh ( ) const
inline

Definition at line 76 of file SiPixelGainCalibrationOffline.h.

References maxGain_.

double SiPixelGainCalibrationOffline::getGainLow ( ) const
inline

Definition at line 75 of file SiPixelGainCalibrationOffline.h.

References minGain_.

const int SiPixelGainCalibrationOffline::getNCols ( const uint32_t &  detID) const

Definition at line 64 of file SiPixelGainCalibrationOffline.cc.

unsigned int SiPixelGainCalibrationOffline::getNumberOfRowsToAverageOver ( ) const
inline
float SiPixelGainCalibrationOffline::getPed ( const int &  col,
const int &  row,
const Range range,
const int &  nCols,
bool &  isDead,
bool &  isNoisy 
) const

Definition at line 149 of file SiPixelGainCalibrationOffline.cc.

double SiPixelGainCalibrationOffline::getPedHigh ( ) const
inline

Definition at line 78 of file SiPixelGainCalibrationOffline.h.

References maxPed_.

double SiPixelGainCalibrationOffline::getPedLow ( ) const
inline

Definition at line 77 of file SiPixelGainCalibrationOffline.h.

References minPed_.

const SiPixelGainCalibrationOffline::Range SiPixelGainCalibrationOffline::getRange ( const uint32_t &  detID) const

Definition at line 73 of file SiPixelGainCalibrationOffline.cc.

const std::pair< const SiPixelGainCalibrationOffline::Range, const int > SiPixelGainCalibrationOffline::getRangeAndNCols ( const uint32_t &  detID) const

Definition at line 84 of file SiPixelGainCalibrationOffline.cc.

void SiPixelGainCalibrationOffline::initialize ( )
inline

Definition at line 61 of file SiPixelGainCalibrationOffline.h.

61 {}
bool SiPixelGainCalibrationOffline::put ( const uint32_t &  detID,
Range  input,
const int &  nCols 
)

Definition at line 45 of file SiPixelGainCalibrationOffline.cc.

template<class Archive >
void SiPixelGainCalibrationOffline::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void SiPixelGainCalibrationOffline::setDataGain ( float  gain,
const int &  nRows,
std::vector< char > &  vped,
bool  thisColumnIsDead = false,
bool  thisColumnIsNoisy = false 
)

Definition at line 102 of file SiPixelGainCalibrationOffline.cc.

Referenced by setDeadColumn(), and setNoisyColumn().

void SiPixelGainCalibrationOffline::setDataPedestal ( float  pedestal,
std::vector< char > &  vped,
bool  thisPixelIsDead = false,
bool  thisPixelIsNoisy = false 
)

Definition at line 133 of file SiPixelGainCalibrationOffline.cc.

Referenced by setDeadPixel(), and setNoisyPixel().

void SiPixelGainCalibrationOffline::setDeadColumn ( const int &  nRows,
std::vector< char > &  vped 
)
inline

Definition at line 82 of file SiPixelGainCalibrationOffline.h.

References setDataGain().

82 { setDataGain(0 /*dummy value, not used*/, nRows, vped, true ); }
void setDataGain(float gain, const int &nRows, std::vector< char > &vped, bool thisColumnIsDead=false, bool thisColumnIsNoisy=false)
void SiPixelGainCalibrationOffline::setDeadPixel ( std::vector< char > &  vped)
inline

Definition at line 81 of file SiPixelGainCalibrationOffline.h.

References setDataPedestal().

81 { setDataPedestal(0 /*dummy value, not used*/, vped, true ); }
void setDataPedestal(float pedestal, std::vector< char > &vped, bool thisPixelIsDead=false, bool thisPixelIsNoisy=false)
void SiPixelGainCalibrationOffline::setNoisyColumn ( const int &  nRows,
std::vector< char > &  vped 
)
inline

Definition at line 86 of file SiPixelGainCalibrationOffline.h.

References setDataGain().

86 { setDataGain(0 /*dummy value, not used*/, nRows, vped, false, true ); }
void setDataGain(float gain, const int &nRows, std::vector< char > &vped, bool thisColumnIsDead=false, bool thisColumnIsNoisy=false)
void SiPixelGainCalibrationOffline::setNoisyPixel ( std::vector< char > &  vped)
inline

Definition at line 85 of file SiPixelGainCalibrationOffline.h.

References setDataPedestal().

85 { setDataPedestal(0 /*dummy value, not used*/, vped, false, true ); }
void setDataPedestal(float pedestal, std::vector< char > &vped, bool thisPixelIsDead=false, bool thisPixelIsNoisy=false)

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 110 of file SiPixelGainCalibrationOffline.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 110 of file SiPixelGainCalibrationOffline.h.

Member Data Documentation

unsigned int SiPixelGainCalibrationOffline::deadFlag_
private

Definition at line 106 of file SiPixelGainCalibrationOffline.h.

std::vector<DetRegistry> SiPixelGainCalibrationOffline::indexes
private

Definition at line 101 of file SiPixelGainCalibrationOffline.h.

float SiPixelGainCalibrationOffline::maxGain_
private

Definition at line 102 of file SiPixelGainCalibrationOffline.h.

Referenced by getGainHigh().

float SiPixelGainCalibrationOffline::maxPed_
private

Definition at line 102 of file SiPixelGainCalibrationOffline.h.

Referenced by getPedHigh().

float SiPixelGainCalibrationOffline::minGain_
private

Definition at line 102 of file SiPixelGainCalibrationOffline.h.

Referenced by getGainLow().

float SiPixelGainCalibrationOffline::minPed_
private

Definition at line 102 of file SiPixelGainCalibrationOffline.h.

Referenced by getPedLow().

unsigned int SiPixelGainCalibrationOffline::nBinsToUseForEncoding_
private

Definition at line 105 of file SiPixelGainCalibrationOffline.h.

unsigned int SiPixelGainCalibrationOffline::noisyFlag_
private

Definition at line 107 of file SiPixelGainCalibrationOffline.h.

unsigned int SiPixelGainCalibrationOffline::numberOfRowsToAverageOver_
private

Definition at line 104 of file SiPixelGainCalibrationOffline.h.

Referenced by getNumberOfRowsToAverageOver().

std::vector<char> SiPixelGainCalibrationOffline::v_pedestals
private

Definition at line 100 of file SiPixelGainCalibrationOffline.h.