ATLAS Offline Software
Loading...
Searching...
No Matches
HitResidualPlots.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef XAOD_ANALYSIS
7
8namespace Trk{
9
11
12 residuals=nullptr;
13 pulls=nullptr;
14}
15
17
18 if (!m_sType.empty()) m_sType=m_sType+"_";
19 residuals = Book1D(m_sType+"residuals",m_sType+" Hit residuals;residual;Entries",100,-20.,20.);
20 pulls = Book1D(m_sType+"pulls",m_sType+" Hit pulls;pull;Entries",100,-20.,20.);
21
22}
23
25
26 const float residual = resPull.residual().front();
27 const float pull = resPull.pull().front();
28
29 residuals->Fill(residual);
30 pulls->Fill(pull);
31
32}
33
34}//close namespace
35#endif // not XAOD_ANALYSIS
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
Definition PlotBase.cxx:94
void fill(const Trk::ResidualPull &resPull)
This class containes residual and pull information.
const std::vector< double > & residual() const
return residual vector
const std::vector< double > & pull() const
return pull vector
Ensure that the ATLAS eigen extensions are properly loaded.