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 22 of file LumiCorrections.h.

Member Function Documentation

◆ getCorrectionAtBX()

float LumiCorrections::getCorrectionAtBX ( float  bx)
inline

Definition at line 30 of file LumiCorrections.h.

References nano_mu_digi_cff::bx, and m_correctionsBX.

30 { return m_correctionsBX[bx]; }
std::vector< float > m_correctionsBX

◆ getCorrectionsBX()

const std::vector<float>& LumiCorrections::getCorrectionsBX ( ) const
inline

Definition at line 34 of file LumiCorrections.h.

References m_correctionsBX.

34 { return m_correctionsBX; }
std::vector< float > m_correctionsBX

◆ getOverallCorrection()

float LumiCorrections::getOverallCorrection ( )
inline

Definition at line 29 of file LumiCorrections.h.

References m_overallCorrection.

29 { return m_overallCorrection; }

◆ getType1Fraction()

float LumiCorrections::getType1Fraction ( )
inline

Definition at line 31 of file LumiCorrections.h.

References m_type1Fraction.

31 { return m_type1Fraction; }

◆ getType1Residual()

float LumiCorrections::getType1Residual ( )
inline

Definition at line 32 of file LumiCorrections.h.

References m_type1Residual.

32 { return m_type1Residual; }

◆ getType2Residual()

float LumiCorrections::getType2Residual ( )
inline

Definition at line 33 of file LumiCorrections.h.

References m_type2Residual.

33 { return m_type2Residual; }

◆ serialize()

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

◆ setCorrectionsBX()

void LumiCorrections::setCorrectionsBX ( std::vector< float > &  correctBX)
inline

Definition at line 28 of file LumiCorrections.h.

References m_correctionsBX.

Referenced by CorrPCCProducer::dqmEndRunProduce().

28 { m_correctionsBX.assign(correctBX.begin(), correctBX.end()); }
std::vector< float > m_correctionsBX

◆ setOverallCorrection()

void LumiCorrections::setOverallCorrection ( float  overallCorrection)
inline

Definition at line 24 of file LumiCorrections.h.

References m_overallCorrection.

Referenced by CorrPCCProducer::dqmEndRunProduce().

24 { m_overallCorrection = overallCorrection; }

◆ setType1Fraction()

void LumiCorrections::setType1Fraction ( float  type1frac)
inline

Definition at line 25 of file LumiCorrections.h.

References m_type1Fraction.

Referenced by CorrPCCProducer::dqmEndRunProduce().

25 { m_type1Fraction = type1frac; }

◆ setType1Residual()

void LumiCorrections::setType1Residual ( float  type1res)
inline

Definition at line 26 of file LumiCorrections.h.

References m_type1Residual.

Referenced by CorrPCCProducer::dqmEndRunProduce().

26 { m_type1Residual = type1res; }

◆ setType2Residual()

void LumiCorrections::setType2Residual ( float  type2res)
inline

Definition at line 27 of file LumiCorrections.h.

References m_type2Residual.

Referenced by CorrPCCProducer::dqmEndRunProduce().

27 { m_type2Residual = type2res; }

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 42 of file LumiCorrections.h.

◆ cond::serialization::access

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

Definition at line 42 of file LumiCorrections.h.

Member Data Documentation

◆ m_correctionsBX

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

Definition at line 41 of file LumiCorrections.h.

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

◆ m_overallCorrection

float LumiCorrections::m_overallCorrection
private

Definition at line 37 of file LumiCorrections.h.

Referenced by getOverallCorrection(), and setOverallCorrection().

◆ m_type1Fraction

float LumiCorrections::m_type1Fraction
private

Definition at line 38 of file LumiCorrections.h.

Referenced by getType1Fraction(), and setType1Fraction().

◆ m_type1Residual

float LumiCorrections::m_type1Residual
private

Definition at line 39 of file LumiCorrections.h.

Referenced by getType1Residual(), and setType1Residual().

◆ m_type2Residual

float LumiCorrections::m_type2Residual
private

Definition at line 40 of file LumiCorrections.h.

Referenced by getType2Residual(), and setType2Residual().