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.

30 { return m_correctionsBX[bx]; }

References simKBmtfDigis_cfi::bx, and m_correctionsBX.

◆ getCorrectionsBX()

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

Definition at line 34 of file LumiCorrections.h.

34 { return m_correctionsBX; }

References m_correctionsBX.

Referenced by RawPCCProducer::globalEndLuminosityBlockProduce().

◆ getOverallCorrection()

float LumiCorrections::getOverallCorrection ( )
inline

Definition at line 29 of file LumiCorrections.h.

29 { return m_overallCorrection; }

References m_overallCorrection.

◆ getType1Fraction()

float LumiCorrections::getType1Fraction ( )
inline

Definition at line 31 of file LumiCorrections.h.

31 { return m_type1Fraction; }

References m_type1Fraction.

◆ getType1Residual()

float LumiCorrections::getType1Residual ( )
inline

Definition at line 32 of file LumiCorrections.h.

32 { return m_type1Residual; }

References m_type1Residual.

◆ getType2Residual()

float LumiCorrections::getType2Residual ( )
inline

Definition at line 33 of file LumiCorrections.h.

33 { return m_type2Residual; }

References 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.

28 { m_correctionsBX.assign(correctBX.begin(), correctBX.end()); }

References m_correctionsBX.

Referenced by CorrPCCProducer::dqmEndRunProduce().

◆ setOverallCorrection()

void LumiCorrections::setOverallCorrection ( float  overallCorrection)
inline

Definition at line 24 of file LumiCorrections.h.

24 { m_overallCorrection = overallCorrection; }

References m_overallCorrection.

Referenced by CorrPCCProducer::dqmEndRunProduce().

◆ setType1Fraction()

void LumiCorrections::setType1Fraction ( float  type1frac)
inline

Definition at line 25 of file LumiCorrections.h.

25 { m_type1Fraction = type1frac; }

References m_type1Fraction.

Referenced by CorrPCCProducer::dqmEndRunProduce().

◆ setType1Residual()

void LumiCorrections::setType1Residual ( float  type1res)
inline

Definition at line 26 of file LumiCorrections.h.

26 { m_type1Residual = type1res; }

References m_type1Residual.

Referenced by CorrPCCProducer::dqmEndRunProduce().

◆ setType2Residual()

void LumiCorrections::setType2Residual ( float  type2res)
inline

Definition at line 27 of file LumiCorrections.h.

27 { m_type2Residual = type2res; }

References m_type2Residual.

Referenced by CorrPCCProducer::dqmEndRunProduce().

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().

LumiCorrections::m_correctionsBX
std::vector< float > m_correctionsBX
Definition: LumiCorrections.h:41
simKBmtfDigis_cfi.bx
bx
Definition: simKBmtfDigis_cfi.py:55
LumiCorrections::m_overallCorrection
float m_overallCorrection
Definition: LumiCorrections.h:37
LumiCorrections::m_type1Fraction
float m_type1Fraction
Definition: LumiCorrections.h:38
LumiCorrections::m_type2Residual
float m_type2Residual
Definition: LumiCorrections.h:40
LumiCorrections::m_type1Residual
float m_type1Residual
Definition: LumiCorrections.h:39