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
SiPixelGainCalibration Class Reference

#include <CondFormats/SiPixelObjects/src/SiPixelGainCalibration.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 &isDead, bool &isNoisy) 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 setData (float ped, float gain, std::vector< char > &vped, bool thisPixelIsDead=false, bool thisPixelIsNoisy=false)
 
void setDeadPixel (std::vector< char > &vped)
 
void setNoisyPixel (std::vector< char > &vped)
 
 SiPixelGainCalibration ()
 
 SiPixelGainCalibration (float minPed, float maxPed, float minGain, float maxGain)
 
 ~SiPixelGainCalibration ()
 

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. Store gain/pedestal information at pixel granularity

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

Definition at line 29 of file SiPixelGainCalibration.h.

Member Typedef Documentation

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

Definition at line 53 of file SiPixelGainCalibration.h.

Definition at line 54 of file SiPixelGainCalibration.h.

Definition at line 55 of file SiPixelGainCalibration.h.

typedef Registry::const_iterator SiPixelGainCalibration::RegistryIterator

Definition at line 56 of file SiPixelGainCalibration.h.

Constructor & Destructor Documentation

SiPixelGainCalibration::SiPixelGainCalibration ( )

Definition at line 9 of file SiPixelGainCalibration.cc.

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

Definition at line 24 of file SiPixelGainCalibration.cc.

SiPixelGainCalibration::~SiPixelGainCalibration ( )
inline

Definition at line 61 of file SiPixelGainCalibration.h.

61 {}

Member Function Documentation

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

Definition at line 188 of file SiPixelGainCalibration.cc.

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

Definition at line 180 of file SiPixelGainCalibration.cc.

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

Definition at line 154 of file SiPixelGainCalibration.cc.

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

Definition at line 167 of file SiPixelGainCalibration.cc.

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

Definition at line 87 of file SiPixelGainCalibration.cc.

float SiPixelGainCalibration::getGain ( const int &  col,
const int &  row,
const Range range,
const int &  nCols,
bool &  isDead,
bool &  isNoisy 
) const

Definition at line 139 of file SiPixelGainCalibration.cc.

double SiPixelGainCalibration::getGainHigh ( ) const
inline

Definition at line 73 of file SiPixelGainCalibration.h.

References maxGain_.

73 { return maxGain_; }
double SiPixelGainCalibration::getGainLow ( ) const
inline

Definition at line 72 of file SiPixelGainCalibration.h.

References minGain_.

72 { return minGain_; }
const int SiPixelGainCalibration::getNCols ( const uint32_t &  detID) const

Definition at line 58 of file SiPixelGainCalibration.cc.

unsigned int SiPixelGainCalibration::getNumberOfRowsToAverageOver ( ) const
inline

Definition at line 71 of file SiPixelGainCalibration.h.

References numberOfRowsToAverageOver_.

float SiPixelGainCalibration::getPed ( const int &  col,
const int &  row,
const Range range,
const int &  nCols,
bool &  isDead,
bool &  isNoisy 
) const

Definition at line 124 of file SiPixelGainCalibration.cc.

double SiPixelGainCalibration::getPedHigh ( ) const
inline

Definition at line 75 of file SiPixelGainCalibration.h.

References maxPed_.

75 { return maxPed_; }
double SiPixelGainCalibration::getPedLow ( ) const
inline

Definition at line 74 of file SiPixelGainCalibration.h.

References minPed_.

74 { return minPed_; }
const SiPixelGainCalibration::Range SiPixelGainCalibration::getRange ( const uint32_t &  detID) const

Definition at line 67 of file SiPixelGainCalibration.cc.

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

Definition at line 78 of file SiPixelGainCalibration.cc.

void SiPixelGainCalibration::initialize ( )
inline

Definition at line 63 of file SiPixelGainCalibration.h.

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

Definition at line 39 of file SiPixelGainCalibration.cc.

template<class Archive >
void SiPixelGainCalibration::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void SiPixelGainCalibration::setData ( float  ped,
float  gain,
std::vector< char > &  vped,
bool  thisPixelIsDead = false,
bool  thisPixelIsNoisy = false 
)

Definition at line 96 of file SiPixelGainCalibration.cc.

Referenced by setDeadPixel(), and setNoisyPixel().

void SiPixelGainCalibration::setDeadPixel ( std::vector< char > &  vped)
inline

Definition at line 80 of file SiPixelGainCalibration.h.

References setData().

80 { setData(0, 0, /*dummy values, not used*/ vped, true , false ); }
void setData(float ped, float gain, std::vector< char > &vped, bool thisPixelIsDead=false, bool thisPixelIsNoisy=false)
void SiPixelGainCalibration::setNoisyPixel ( std::vector< char > &  vped)
inline

Definition at line 81 of file SiPixelGainCalibration.h.

References setData().

81 { setData(0, 0, /*dummy values, not used*/ vped, false , true ); }
void setData(float ped, float gain, std::vector< char > &vped, bool thisPixelIsDead=false, bool thisPixelIsNoisy=false)

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 103 of file SiPixelGainCalibration.h.

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

Definition at line 103 of file SiPixelGainCalibration.h.

Member Data Documentation

unsigned int SiPixelGainCalibration::deadFlag_
private

Definition at line 99 of file SiPixelGainCalibration.h.

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

Definition at line 94 of file SiPixelGainCalibration.h.

float SiPixelGainCalibration::maxGain_
private

Definition at line 95 of file SiPixelGainCalibration.h.

Referenced by getGainHigh().

float SiPixelGainCalibration::maxPed_
private

Definition at line 95 of file SiPixelGainCalibration.h.

Referenced by getPedHigh().

float SiPixelGainCalibration::minGain_
private

Definition at line 95 of file SiPixelGainCalibration.h.

Referenced by getGainLow().

float SiPixelGainCalibration::minPed_
private

Definition at line 95 of file SiPixelGainCalibration.h.

Referenced by getPedLow().

unsigned int SiPixelGainCalibration::nBinsToUseForEncoding_
private

Definition at line 98 of file SiPixelGainCalibration.h.

unsigned int SiPixelGainCalibration::noisyFlag_
private

Definition at line 100 of file SiPixelGainCalibration.h.

unsigned int SiPixelGainCalibration::numberOfRowsToAverageOver_
private

Definition at line 97 of file SiPixelGainCalibration.h.

Referenced by getNumberOfRowsToAverageOver().

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

Definition at line 93 of file SiPixelGainCalibration.h.