ATLAS Offline Software
Loading...
Searching...
No Matches
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); }
std::vector< const AbsShapeErrorGetter * > m_getters

◆ 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}
ShapeErrorData * add(const ShapeErrorData &other) const
const ScaledErrorData * sed

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: