ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
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++) {
26  m_parameters[i].resize(m_nShapeParams);
27  for (int j = 0; j < m_nShapeParams; j++) m_parameters[i][j] = 0.0;
28  }
29 }

◆ ~eflowFirstIntParameters()

eflowFirstIntParameters::~eflowFirstIntParameters ( )
inline

Definition at line 41 of file eflowFirstIntParameters.h.

43 {

Member Function Documentation

◆ fudgeMean()

double eflowFirstInt::fudgeMean ( ) const
inlineinherited

Definition at line 39 of file eflowFirstInt.h.

◆ fudgeStdDev()

double eflowFirstInt::fudgeStdDev ( ) const
inlineinherited

Definition at line 40 of file eflowFirstInt.h.

◆ getShapeParameter()

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

Definition at line 46 of file eflowFirstIntParameters.h.

47 :
48 

◆ getShapeParameters()

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

Definition at line 45 of file eflowFirstIntParameters.h.

47 :
48 

◆ 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 
52  }
53 
54  return true;
55 }

◆ nShapeParams()

static int eflowFirstIntParameters::nShapeParams ( )
inlinestatic

Definition at line 51 of file eflowFirstIntParameters.h.

51  :
52  static const int m_nShapeParams;
53  std::vector< std::vector<double> > m_parameters;

◆ setFudgeMean()

void eflowFirstInt::setFudgeMean ( double  fudgeMean)
inlineinherited

Definition at line 42 of file eflowFirstInt.h.

◆ setFudgeStdDev()

void eflowFirstInt::setFudgeStdDev ( double  fudgeStdDev)
inlineinherited

Definition at line 43 of file eflowFirstInt.h.

◆ setShapeParameter()

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

Definition at line 48 of file eflowFirstIntParameters.h.

◆ setShapeParameters()

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

Definition at line 57 of file eflowFirstIntParameters.h.

Member Data Documentation

◆ m_fudgeMean

double eflowFirstInt::m_fudgeMean
protectedinherited

Definition at line 47 of file eflowFirstInt.h.

◆ m_fudgeStdDev

double eflowFirstInt::m_fudgeStdDev
protectedinherited

Definition at line 48 of file eflowFirstInt.h.

◆ m_nShapeParams

const int eflowFirstIntParameters::m_nShapeParams = 4
staticprivate

Definition at line 60 of file eflowFirstIntParameters.h.

◆ m_parameters

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

Definition at line 61 of file eflowFirstIntParameters.h.


The documentation for this class was generated from the following files:
eflowFirstInt::fudgeStdDev
double fudgeStdDev() const
Definition: eflowFirstInt.h:40
eflowFirstIntParameters::m_parameters
std::vector< std::vector< double > > m_parameters
Definition: eflowFirstIntParameters.h:61
lumiFormat.i
int i
Definition: lumiFormat.py:85
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
eflowFirstIntParameters::m_nShapeParams
static const int m_nShapeParams
Definition: eflowFirstIntParameters.h:60
bin2
Definition: KillBinsByStrip.h:34
eflowFirstInt::fudgeMean
double fudgeMean() const
Definition: eflowFirstInt.h:39
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
eflowCalo::nRegions
static const int nRegions
Definition: eflowCaloRegions.h:45
eflowFirstInt::setFudgeMean
void setFudgeMean(double fudgeMean)
Definition: eflowFirstInt.h:42
eflowCalo::LAYER
LAYER
Definition: eflowCaloRegions.h:36
dqt_zlumi_pandas.bin1
bin1
Definition: dqt_zlumi_pandas.py:336
eflowFirstInt::setFudgeStdDev
void setFudgeStdDev(double fudgeStdDev)
Definition: eflowFirstInt.h:43
eflowFirstIntParameters::setShapeParameters
void setShapeParameters(eflowCaloENUM layer, const std::vector< double > &p)
Definition: eflowFirstIntParameters.h:57
fitman.k
k
Definition: fitman.py:528
eflowCaloENUM
eflowCalo::LAYER eflowCaloENUM
Definition: eflowCaloRegions.h:49