CMS 3D CMS Logo

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

#include <LumiCorrections.h>

Public Member Functions

float getCorrectionAtBX (float bx)
 
const std::vector< float > & getCorrectionsBX () const
 
float getOverallCorrection ()
 
float getType1Fraction ()
 
float getType1Residual ()
 
float getType2Residual ()
 
void setCorrectionsBX (std::vector< float > &correctBX)
 
void setOverallCorrection (float overallCorrection)
 
void setType1Fraction (float type1frac)
 
void setType1Residual (float type1res)
 
void setType2Residual (float type2res)
 

Private Member Functions

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

Private Attributes

std::vector< float > m_correctionsBX
 
float m_overallCorrection
 
float m_type1Fraction
 
float m_type1Residual
 
float m_type2Residual
 

Friends

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

Detailed Description

Author
Sam Higginbotham, Chris Palmer

This class should contain scale factors for correcting out-of-time pile-up per bunch crossing on rates intended for luminosity estimates. There is the option of saving the total scale factor on the total luminosity in m_overallCorrection as well.

Definition at line 23 of file LumiCorrections.h.

Member Function Documentation

float LumiCorrections::getCorrectionAtBX ( float  bx)
inline

Definition at line 31 of file LumiCorrections.h.

References m_correctionsBX.

31 {return m_correctionsBX[bx];}
std::vector< float > m_correctionsBX
const std::vector<float>& LumiCorrections::getCorrectionsBX ( ) const
inline

Definition at line 35 of file LumiCorrections.h.

References m_correctionsBX.

Referenced by RawPCCProducer::endLuminosityBlock().

35 {return m_correctionsBX;}
std::vector< float > m_correctionsBX
float LumiCorrections::getOverallCorrection ( )
inline

Definition at line 30 of file LumiCorrections.h.

References m_overallCorrection.

30 {return m_overallCorrection;}
float LumiCorrections::getType1Fraction ( )
inline

Definition at line 32 of file LumiCorrections.h.

References m_type1Fraction.

32 {return m_type1Fraction;}
float LumiCorrections::getType1Residual ( )
inline

Definition at line 33 of file LumiCorrections.h.

References m_type1Residual.

33 {return m_type1Residual;}
float LumiCorrections::getType2Residual ( )
inline

Definition at line 34 of file LumiCorrections.h.

References m_type2Residual.

34 {return m_type2Residual;}
template<class Archive >
void LumiCorrections::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void LumiCorrections::setCorrectionsBX ( std::vector< float > &  correctBX)
inline

Definition at line 29 of file LumiCorrections.h.

References m_correctionsBX.

Referenced by CorrPCCProducer::endRunProduce().

29 {m_correctionsBX.assign(correctBX.begin(),correctBX.end());}
std::vector< float > m_correctionsBX
void LumiCorrections::setOverallCorrection ( float  overallCorrection)
inline

Definition at line 25 of file LumiCorrections.h.

References m_overallCorrection.

Referenced by CorrPCCProducer::endRunProduce().

25 {m_overallCorrection=overallCorrection;}
void LumiCorrections::setType1Fraction ( float  type1frac)
inline

Definition at line 26 of file LumiCorrections.h.

References m_type1Fraction.

Referenced by CorrPCCProducer::endRunProduce().

26 {m_type1Fraction=type1frac;}
void LumiCorrections::setType1Residual ( float  type1res)
inline

Definition at line 27 of file LumiCorrections.h.

References m_type1Residual.

Referenced by CorrPCCProducer::endRunProduce().

27 {m_type1Residual=type1res;}
void LumiCorrections::setType2Residual ( float  type2res)
inline

Definition at line 28 of file LumiCorrections.h.

References m_type2Residual.

Referenced by CorrPCCProducer::endRunProduce().

28 {m_type2Residual=type2res;}

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 42 of file LumiCorrections.h.

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

Definition at line 42 of file LumiCorrections.h.

Member Data Documentation

std::vector<float> LumiCorrections::m_correctionsBX
private

Definition at line 41 of file LumiCorrections.h.

Referenced by getCorrectionAtBX(), getCorrectionsBX(), and setCorrectionsBX().

float LumiCorrections::m_overallCorrection
private

Definition at line 37 of file LumiCorrections.h.

Referenced by getOverallCorrection(), and setOverallCorrection().

float LumiCorrections::m_type1Fraction
private

Definition at line 38 of file LumiCorrections.h.

Referenced by getType1Fraction(), and setType1Fraction().

float LumiCorrections::m_type1Residual
private

Definition at line 39 of file LumiCorrections.h.

Referenced by getType1Residual(), and setType1Residual().

float LumiCorrections::m_type2Residual
private

Definition at line 40 of file LumiCorrections.h.

Referenced by getType2Residual(), and setType2Residual().