CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
DeDxCalibration Class Reference

#include <DeDxCalibration.h>

Public Types

typedef std::pair< uint32_t, unsigned char > ChipId
 

Public Member Functions

const std::vector< double > & alpha () const
 
 DeDxCalibration ()
 
 DeDxCalibration (const std::vector< double > &thr, const std::vector< double > &alpha, const std::vector< double > &sigma, const std::map< ChipId, float > &gain)
 
const std::map< ChipId, float > & gain () const
 
void setAlpha (const std::vector< double > &v)
 
void setGain (const std::map< ChipId, float > &v)
 
void setSigma (const std::vector< double > &v)
 
void setThr (const std::vector< double > &v)
 
const std::vector< double > & sigma () const
 
const std::vector< double > & thr () const
 
virtual ~DeDxCalibration ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::vector< double > alpha_
 
std::map< ChipId, float > gain_
 
std::vector< double > sigma_
 
std::vector< double > thr_
 

Friends

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

Detailed Description

Definition at line 6 of file DeDxCalibration.h.

Member Typedef Documentation

◆ ChipId

typedef std::pair<uint32_t, unsigned char> DeDxCalibration::ChipId

Definition at line 11 of file DeDxCalibration.h.

Constructor & Destructor Documentation

◆ DeDxCalibration() [1/2]

DeDxCalibration::DeDxCalibration ( )

Definition at line 2 of file DeDxCalibration.cc.

References alpha_, sigma_, and thr_.

2  {
3  thr_.reserve(5);
4  alpha_.reserve(5);
5  sigma_.reserve(5);
6 }
std::vector< double > thr_
std::vector< double > sigma_
std::vector< double > alpha_

◆ ~DeDxCalibration()

virtual DeDxCalibration::~DeDxCalibration ( )
inlinevirtual

Definition at line 9 of file DeDxCalibration.h.

9 {}

◆ DeDxCalibration() [2/2]

DeDxCalibration::DeDxCalibration ( const std::vector< double > &  thr,
const std::vector< double > &  alpha,
const std::vector< double > &  sigma,
const std::map< ChipId, float > &  gain 
)
inline

Definition at line 12 of file DeDxCalibration.h.

std::map< ChipId, float > gain_
std::vector< double > thr_
const std::vector< double > & thr() const
const std::vector< double > & alpha() const
const std::map< ChipId, float > & gain() const
std::vector< double > sigma_
std::vector< double > alpha_
const std::vector< double > & sigma() const

Member Function Documentation

◆ alpha()

const std::vector<double>& DeDxCalibration::alpha ( ) const
inline

Definition at line 19 of file DeDxCalibration.h.

References alpha_.

Referenced by DeDxHitCalibrator::processHitInfo().

19 { return alpha_; }
std::vector< double > alpha_

◆ gain()

const std::map<ChipId, float>& DeDxCalibration::gain ( ) const
inline

Definition at line 21 of file DeDxCalibration.h.

References gain_.

Referenced by DeDxHitCalibrator::correctEnergy().

21 { return gain_; }
std::map< ChipId, float > gain_

◆ serialize()

template<class Archive >
void DeDxCalibration::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setAlpha()

void DeDxCalibration::setAlpha ( const std::vector< double > &  v)
inline

Definition at line 24 of file DeDxCalibration.h.

References alpha_, and findQualityFiles::v.

24 { alpha_ = v; }
std::vector< double > alpha_

◆ setGain()

void DeDxCalibration::setGain ( const std::map< ChipId, float > &  v)
inline

Definition at line 26 of file DeDxCalibration.h.

References gain_, and findQualityFiles::v.

26 { gain_ = v; }
std::map< ChipId, float > gain_

◆ setSigma()

void DeDxCalibration::setSigma ( const std::vector< double > &  v)
inline

Definition at line 25 of file DeDxCalibration.h.

References sigma_, and findQualityFiles::v.

25 { sigma_ = v; }
std::vector< double > sigma_

◆ setThr()

void DeDxCalibration::setThr ( const std::vector< double > &  v)
inline

Definition at line 23 of file DeDxCalibration.h.

References thr_, and findQualityFiles::v.

23 { thr_ = v; }
std::vector< double > thr_

◆ sigma()

const std::vector<double>& DeDxCalibration::sigma ( ) const
inline

Definition at line 20 of file DeDxCalibration.h.

References sigma_.

Referenced by DeDxHitCalibrator::processHitInfo().

20 { return sigma_; }
std::vector< double > sigma_

◆ thr()

const std::vector<double>& DeDxCalibration::thr ( ) const
inline

Definition at line 18 of file DeDxCalibration.h.

References thr_.

Referenced by DeDxHitCalibrator::processHitInfo().

18 { return thr_; }
std::vector< double > thr_

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 34 of file DeDxCalibration.h.

◆ cond::serialization::access

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

Definition at line 34 of file DeDxCalibration.h.

Member Data Documentation

◆ alpha_

std::vector<double> DeDxCalibration::alpha_
private

Definition at line 30 of file DeDxCalibration.h.

Referenced by alpha(), DeDxCalibration(), and setAlpha().

◆ gain_

std::map<ChipId, float> DeDxCalibration::gain_
private

Definition at line 32 of file DeDxCalibration.h.

Referenced by gain(), and setGain().

◆ sigma_

std::vector<double> DeDxCalibration::sigma_
private

Definition at line 31 of file DeDxCalibration.h.

Referenced by DeDxCalibration(), setSigma(), and sigma().

◆ thr_

std::vector<double> DeDxCalibration::thr_
private

Definition at line 29 of file DeDxCalibration.h.

Referenced by DeDxCalibration(), setThr(), and thr().