ATLAS Offline Software
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>
10 using std::cout;
11 using std::endl;
12 
13 using namespace LArSamples;
14 
15 ShapeErrorData* 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 }
LArSamples::CovMatrix
TMatrixTSym< double > CovMatrix
Definition: Definitions.h:11
UniformShapeErrorGetter.h
LArSamples
Definition: AbsShape.h:24
LArSamples::UniformShapeErrorGetter::m_k
double m_k
Definition: UniformShapeErrorGetter.h:29
lumiFormat.i
int i
Definition: lumiFormat.py:92
LArSamples::Residual
storage of a pulse shape residual set
Definition: LArCalorimeter/LArSamplesMon/LArSamplesMon/Residual.h:29
CaloGain::CaloGain
CaloGain
Definition: CaloGain.h:11
LArSamples::ShapeErrorData
Definition: ShapeErrorData.h:19
LArSamples::UniformShapeErrorGetter::shapeErrorData
ShapeErrorData * shapeErrorData(unsigned int hash, CaloGain::CaloGain gain, const Residual *toExclude=0) const
Definition: UniformShapeErrorGetter.cxx:15