ATLAS Offline Software
Loading...
Searching...
No Matches
UniformShapeErrorGetter.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include "TMath.h"
8
9#include <iostream>
10using std::cout;
11using std::endl;
12
13using namespace LArSamples;
14
15std::unique_ptr<ShapeErrorData>
16UniformShapeErrorGetter::shapeErrorData(unsigned int /*hash*/, CaloGain::CaloGain /*gain*/, const Residual* /*toExclude*/) const
17{
18 TVectorD xi(32);
19 TVectorD xip(32);
20 CovMatrix xiErr(32);
21 CovMatrix xipErr(32);
22
23 for (unsigned int i = 0; i < 32; i++)
24 xiErr(i, i) = TMath::Power(m_k, 2);
25
26 return std::make_unique<ShapeErrorData>(xi, xip, xiErr, xipErr);
27}
virtual std::unique_ptr< ShapeErrorData > shapeErrorData(unsigned int hash, CaloGain::CaloGain gain, const Residual *toExclude=0) const override