ATLAS Offline Software
CombinedShapeErrorGetter.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 #include "TMath.h"
8 
9 #include <iostream>
10 using std::cout;
11 using std::endl;
12 
13 using namespace LArSamples;
14 
15 
17 {
18  TVectorD offsets(32);
19  CovMatrix errors(32);
20  ShapeErrorData* sed = nullptr;
21  for (const AbsShapeErrorGetter* getter : m_getters) {
22  const ShapeErrorData* other = getter->shapeErrorData(hash, gain);
23  if (!other) continue;
24  if (!sed)
25  sed = new ShapeErrorData(*other);
26  else {
27  ShapeErrorData* newSed = sed->add(*other);
28  delete sed;
29  sed = newSed;
30  if (!sed) return nullptr;
31  }
32  delete other;
33  }
34  return sed;
35 }
LArSamples::ShapeErrorData::add
ShapeErrorData * add(const ShapeErrorData &other) const
Definition: ShapeErrorData.cxx:58
LArSamples::CovMatrix
TMatrixTSym< double > CovMatrix
Definition: Definitions.h:11
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArSamples
Definition: AbsShape.h:24
LArSamples::AbsShapeErrorGetter
Definition: AbsShapeErrorGetter.h:23
CombinedShapeErrorGetter.h
LArSamples::Residual
storage of a pulse shape residual set
Definition: LArCalorimeter/LArSamplesMon/LArSamplesMon/Residual.h:29
mergePhysValFiles.errors
list errors
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:43
LArSamples::CombinedShapeErrorGetter::shapeErrorData
ShapeErrorData * shapeErrorData(unsigned int hash, CaloGain::CaloGain gain, const Residual *toExclude=0) const
Definition: CombinedShapeErrorGetter.cxx:16
CaloGain::CaloGain
CaloGain
Definition: CaloGain.h:11
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
LArSamples::ShapeErrorData
Definition: ShapeErrorData.h:19
LArSamples::FitterData::sed
const ScaledErrorData * sed
Definition: ShapeFitter.cxx:26
LArSamples::CombinedShapeErrorGetter::m_getters
std::vector< const AbsShapeErrorGetter * > m_getters
Definition: CombinedShapeErrorGetter.h:32