ATLAS Offline Software
Loading...
Searching...
No Matches
eflowFirstIntParameters Class Reference

Extends eflowFirstInt to include parameters of the fits to radial shower profiles. More...

#include <eflowFirstIntParameters.h>

Inheritance diagram for eflowFirstIntParameters:
Collaboration diagram for eflowFirstIntParameters:

Public Member Functions

 eflowFirstIntParameters ()
 ~eflowFirstIntParameters ()
bool getWeightedParameters (const eflowFirstIntParameters *bin1, const eflowFirstIntParameters *bin2, const double w1)
const std::vector< double > & getShapeParameters (eflowCaloENUM layer) const
double getShapeParameter (eflowCaloENUM layer, int paramIndex) const
void setShapeParameter (eflowCaloENUM layer, int paramNumber, double shapeParam)
double fudgeMean () const
double fudgeStdDev () const
void setFudgeMean (double fudgeMean)
void setFudgeStdDev (double fudgeStdDev)

Static Public Member Functions

static int nShapeParams ()

Protected Attributes

double m_fudgeMean
double m_fudgeStdDev

Private Member Functions

void setShapeParameters (eflowCaloENUM layer, const std::vector< double > &p)

Private Attributes

std::vector< std::vector< double > > m_parameters

Static Private Attributes

static const int m_nShapeParams = 4

Detailed Description

Extends eflowFirstInt to include parameters of the fits to radial shower profiles.

Also adds functionality to allow interpolation between fixed energy and eta reference bins. This object is used internally in the eflowRingSubtractionManager.

Definition at line 28 of file eflowFirstIntParameters.h.

Constructor & Destructor Documentation

◆ eflowFirstIntParameters()

eflowFirstIntParameters::eflowFirstIntParameters ( )

Definition at line 23 of file eflowFirstIntParameters.cxx.

23 :
25 for (int i = 0; i < eflowCalo::nRegions; i++) {
27 for (int j = 0; j < m_nShapeParams; j++) m_parameters[i][j] = 0.0;
28 }
29}
static const int nRegions
std::vector< std::vector< double > > m_parameters

◆ ~eflowFirstIntParameters()

eflowFirstIntParameters::~eflowFirstIntParameters ( )
inline

Definition at line 33 of file eflowFirstIntParameters.h.

33{}

Member Function Documentation

◆ fudgeMean()

double eflowFirstInt::fudgeMean ( ) const
inlineinherited

Definition at line 31 of file eflowFirstInt.h.

31{return m_fudgeMean;}

◆ fudgeStdDev()

double eflowFirstInt::fudgeStdDev ( ) const
inlineinherited

Definition at line 32 of file eflowFirstInt.h.

32{return m_fudgeStdDev;}
double m_fudgeStdDev

◆ getShapeParameter()

double eflowFirstIntParameters::getShapeParameter ( eflowCaloENUM layer,
int paramIndex ) const
inline

Definition at line 38 of file eflowFirstIntParameters.h.

38{return m_parameters[layer][paramIndex];}
@ layer
Definition HitInfo.h:79

◆ getShapeParameters()

const std::vector< double > & eflowFirstIntParameters::getShapeParameters ( eflowCaloENUM layer) const
inline

Definition at line 37 of file eflowFirstIntParameters.h.

37{return m_parameters[layer];}

◆ getWeightedParameters()

bool eflowFirstIntParameters::getWeightedParameters ( const eflowFirstIntParameters * bin1,
const eflowFirstIntParameters * bin2,
const double w1 )

Definition at line 31 of file eflowFirstIntParameters.cxx.

31 {
32 if (!(bin1 && bin2)) { return false; }
33
34 double fudgeMean = w1 * bin1->fudgeMean() + (1.0 - w1) * bin2->fudgeMean();
35 double fudgeStdDev = w1 * bin1->fudgeStdDev() + (1.0 - w1) * bin2->fudgeStdDev();
36 std::vector<double> par(m_nShapeParams);
37
40
41 for (int j = 0; j < eflowCalo::nRegions; j++) {
43
44 const std::vector<double>& par1 = bin1->getShapeParameters(layer);
45 const std::vector<double>& par2 = bin2->getShapeParameters(layer);
46
47 for (int k = 0; k < m_nShapeParams; k++) {
48 par[k] = w1 * par1[k] + (1.0 - w1) * par2[k];
49 }
50
51 setShapeParameters(layer, par);
52 }
53
54 return true;
55}
void setShapeParameters(eflowCaloENUM layer, const std::vector< double > &p)
double fudgeMean() const
void setFudgeMean(double fudgeMean)
double fudgeStdDev() const
void setFudgeStdDev(double fudgeStdDev)
eflowCalo::LAYER eflowCaloENUM

◆ nShapeParams()

int eflowFirstIntParameters::nShapeParams ( )
inlinestatic

Definition at line 43 of file eflowFirstIntParameters.h.

43 {
44 return m_nShapeParams;
45 }

◆ setFudgeMean()

void eflowFirstInt::setFudgeMean ( double fudgeMean)
inlineinherited

Definition at line 34 of file eflowFirstInt.h.

◆ setFudgeStdDev()

void eflowFirstInt::setFudgeStdDev ( double fudgeStdDev)
inlineinherited

Definition at line 35 of file eflowFirstInt.h.

◆ setShapeParameter()

void eflowFirstIntParameters::setShapeParameter ( eflowCaloENUM layer,
int paramNumber,
double shapeParam )
inline

Definition at line 40 of file eflowFirstIntParameters.h.

40{m_parameters[layer][paramNumber] = shapeParam;}

◆ setShapeParameters()

void eflowFirstIntParameters::setShapeParameters ( eflowCaloENUM layer,
const std::vector< double > & p )
inlineprivate

Member Data Documentation

◆ m_fudgeMean

double eflowFirstInt::m_fudgeMean
protectedinherited

Definition at line 39 of file eflowFirstInt.h.

◆ m_fudgeStdDev

double eflowFirstInt::m_fudgeStdDev
protectedinherited

Definition at line 40 of file eflowFirstInt.h.

◆ m_nShapeParams

const int eflowFirstIntParameters::m_nShapeParams = 4
staticprivate

Definition at line 52 of file eflowFirstIntParameters.h.

◆ m_parameters

std::vector< std::vector<double> > eflowFirstIntParameters::m_parameters
private

Definition at line 53 of file eflowFirstIntParameters.h.


The documentation for this class was generated from the following files: