ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
RatesCPS Class Reference

Helper class to keep track of coherent prescales between chains in a group This class knows about its group's common prescale factor and can hence apply it coherently at the end. More...

#include <RatesGroup.h>

Collaboration diagram for RatesCPS:

Public Member Functions

 RatesCPS ()
 
void setCoherentFactor (const double coherentFactor)
 Set a common prescale factor for this group. More...
 
void execute (const double prescale)
 Keep track of a union product (OR of many chains) excluding the coherent part. More...
 
double getWeight () const
 Return the union product (OR of many chains) coherently weighted by the coherent factor. More...
 

Private Attributes

double m_weight
 
double m_coherentFactor
 

Detailed Description

Helper class to keep track of coherent prescales between chains in a group This class knows about its group's common prescale factor and can hence apply it coherently at the end.

Definition at line 14 of file RatesGroup.h.

Constructor & Destructor Documentation

◆ RatesCPS()

RatesCPS::RatesCPS ( )
inline

Definition at line 16 of file RatesGroup.h.

16 : m_weight(1.), m_coherentFactor(0.) {}

Member Function Documentation

◆ execute()

void RatesCPS::execute ( const double  prescale)

Keep track of a union product (OR of many chains) excluding the coherent part.

Definition at line 8 of file RatesGroup.cxx.

8  {
9  m_weight *= 1. - (1. / ( prescale / m_coherentFactor ) );
10 }

◆ getWeight()

double RatesCPS::getWeight ( ) const

Return the union product (OR of many chains) coherently weighted by the coherent factor.

Definition at line 12 of file RatesGroup.cxx.

12  {
13  return (1. - m_weight) / m_coherentFactor;
14 }

◆ setCoherentFactor()

void RatesCPS::setCoherentFactor ( const double  coherentFactor)
inline

Set a common prescale factor for this group.

Definition at line 17 of file RatesGroup.h.

Member Data Documentation

◆ m_coherentFactor

double RatesCPS::m_coherentFactor
private

Definition at line 23 of file RatesGroup.h.

◆ m_weight

double RatesCPS::m_weight
private

Definition at line 22 of file RatesGroup.h.


The documentation for this class was generated from the following files:
RatesCPS::m_coherentFactor
double m_coherentFactor
Definition: RatesGroup.h:23
RatesCPS::m_weight
double m_weight
Definition: RatesGroup.h:22