ATLAS Offline Software
eflowFirstIntParameters.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /********************************************************************
6 
7 NAME: eflowFirstIntParameters.h
8 PACKAGE: offline/Reconstruction/eflowRec
9 
10 AUTHORS: M.Hodgkinson, R Duxfield (based on R.Duxfields Root package)
11 CREATED: 18th Aug, 2005
12 
13 ********************************************************************/
14 
15 //Athena Headers
19 #include <iostream>
20 
22 
24  m_parameters(eflowCalo::nRegions) {
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 }
30 
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 }
eflowCaloRegions.h
eflowCalo
This defines the eflowCalo enum, which is used to label calorimeter layers in a simplified scheme whi...
Definition: eflowCaloRegions.h:25
eflowFirstIntParameters.h
eflowFirstIntParameters::getWeightedParameters
bool getWeightedParameters(const eflowFirstIntParameters *bin1, const eflowFirstIntParameters *bin2, const double w1)
Definition: eflowFirstIntParameters.cxx:31
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
eflowFirstIntParameters::eflowFirstIntParameters
eflowFirstIntParameters()
Definition: eflowFirstIntParameters.cxx:23
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
eflowFirstIntParameters
Extends eflowFirstInt to include parameters of the fits to radial shower profiles.
Definition: eflowFirstIntParameters.h:28
eflowEEtaBinnedParameters.h
fitman.k
k
Definition: fitman.py:528
eflowCaloENUM
eflowCalo::LAYER eflowCaloENUM
Definition: eflowCaloRegions.h:49