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)
virtual std::unique_ptr< ShapeErrorDatashapeErrorData (unsigned int hash, CaloGain::CaloGain gain, const Residual *toExclude=0) const override
virtual std::unique_ptr< ShapeErrorDataphiSymShapeErrorData (short, CaloGain::CaloGain, const Residual *) const override

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()

virtual std::unique_ptr< ShapeErrorData > LArSamples::CombinedShapeErrorGetter::phiSymShapeErrorData ( short ,
CaloGain::CaloGain ,
const Residual *  ) const
inlineoverridevirtual

Implements LArSamples::AbsShapeErrorGetter.

Definition at line 28 of file CombinedShapeErrorGetter.h.

28{ return nullptr; }

◆ shapeErrorData()

std::unique_ptr< ShapeErrorData > CombinedShapeErrorGetter::shapeErrorData ( unsigned int hash,
CaloGain::CaloGain gain,
const Residual * toExclude = 0 ) const
overridevirtual

Implements LArSamples::AbsShapeErrorGetter.

Definition at line 16 of file CombinedShapeErrorGetter.cxx.

17{
18 TVectorD offsets(32);
19 CovMatrix errors(32);
20 std::unique_ptr<ShapeErrorData> sed;
21 for (const AbsShapeErrorGetter* getter : m_getters) {
22 std::unique_ptr<const ShapeErrorData> other = getter->shapeErrorData(hash, gain);
23 if (!other) continue;
24 if (!sed)
25 sed = std::make_unique<ShapeErrorData>(*other);
26 else {
27 sed = sed->add(*other);
28 if (!sed) return nullptr;
29 }
30 }
31 return sed;
32}
std::unique_ptr< 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: