ATLAS Offline Software
Loading...
Searching...
No Matches
UniformShapeErrorGetter.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>
10using std::cout;
11using std::endl;
12
13using namespace LArSamples;
14
15ShapeErrorData* UniformShapeErrorGetter::shapeErrorData(unsigned int /*hash*/, CaloGain::CaloGain /*gain*/, const Residual* /*toExclude*/) const
16{
17 TVectorD xi(32);
18 TVectorD xip(32);
19 CovMatrix xiErr(32);
20 CovMatrix xipErr(32);
21
22 for (unsigned int i = 0; i < 32; i++)
23 xiErr(i, i) = TMath::Power(m_k, 2);
24
25 return new ShapeErrorData(xi, xip, xiErr, xipErr);
26}
ShapeErrorData * shapeErrorData(unsigned int hash, CaloGain::CaloGain gain, const Residual *toExclude=0) const