ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LArSamples::CombinedShapeErrorGetter Class Reference

#include <CombinedShapeErrorGetter.h>

Inheritance diagram for LArSamples::CombinedShapeErrorGetter:
Collaboration diagram for LArSamples::CombinedShapeErrorGetter:

Public Member Functions

 CombinedShapeErrorGetter ()
 
virtual ~CombinedShapeErrorGetter ()
 
void add (const AbsShapeErrorGetter &getter)
 
ShapeErrorDatashapeErrorData (unsigned int hash, CaloGain::CaloGain gain, const Residual *toExclude=0) const
 
ShapeErrorDataphiSymShapeErrorData (short, CaloGain::CaloGain, const Residual *) const
 

Private Attributes

std::vector< const AbsShapeErrorGetter * > m_getters
 

Detailed Description

Definition at line 18 of file CombinedShapeErrorGetter.h.

Constructor & Destructor Documentation

◆ CombinedShapeErrorGetter()

LArSamples::CombinedShapeErrorGetter::CombinedShapeErrorGetter ( )
inline

Definition at line 22 of file CombinedShapeErrorGetter.h.

22 { }

◆ ~CombinedShapeErrorGetter()

virtual LArSamples::CombinedShapeErrorGetter::~CombinedShapeErrorGetter ( )
inlinevirtual

Definition at line 23 of file CombinedShapeErrorGetter.h.

23 { }

Member Function Documentation

◆ add()

void LArSamples::CombinedShapeErrorGetter::add ( const AbsShapeErrorGetter getter)
inline

Definition at line 25 of file CombinedShapeErrorGetter.h.

25 { m_getters.push_back(&getter); }

◆ phiSymShapeErrorData()

ShapeErrorData* LArSamples::CombinedShapeErrorGetter::phiSymShapeErrorData ( short  ,
CaloGain::CaloGain  ,
const Residual  
) const
inlinevirtual

Implements LArSamples::AbsShapeErrorGetter.

Definition at line 28 of file CombinedShapeErrorGetter.h.

28 { return 0; }

◆ shapeErrorData()

ShapeErrorData * CombinedShapeErrorGetter::shapeErrorData ( unsigned int  hash,
CaloGain::CaloGain  gain,
const Residual toExclude = 0 
) const
virtual

Implements LArSamples::AbsShapeErrorGetter.

Definition at line 16 of file CombinedShapeErrorGetter.cxx.

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 }

Member Data Documentation

◆ m_getters

std::vector<const AbsShapeErrorGetter*> LArSamples::CombinedShapeErrorGetter::m_getters
private

Definition at line 32 of file CombinedShapeErrorGetter.h.


The documentation for this class was generated from the following files:
LArSamples::ShapeErrorData::add
ShapeErrorData * add(const ShapeErrorData &other) const
Definition: ShapeErrorData.cxx:58
LArSamples::CovMatrix
TMatrixTSym< double > CovMatrix
Definition: LArCalorimeter/LArCafJobs/LArCafJobs/Definitions.h:11
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArSamples::AbsShapeErrorGetter
Definition: AbsShapeErrorGetter.h:23
mergePhysValFiles.errors
list errors
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:43
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