ATLAS Offline Software
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 
8 namespace 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 
24 void HitResidualPlots::fill( const Trk::ResidualPull& resPull ) {
25 
26  const float residual = resPull.residual().front();
27  const float pull = resPull.pull().front();
28 
30  pulls->Fill(pull);
31 
32 }
33 
34 }//close namespace
35 #endif // not XAOD_ANALYSIS
PlotBase::Book1D
TH1F * 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:88
Trk::HitResidualPlots::init
void init()
Definition: HitResidualPlots.cxx:10
ClusterSeg::residual
@ residual
Definition: ClusterNtuple.h:20
Trk::ResidualPull::pull
const std::vector< double > & pull() const
return pull vector
Trk::ResidualPull
This class containes residual and pull information.
Definition: ResidualPull.h:46
Trk::HitResidualPlots::initializePlots
void initializePlots()
Definition: HitResidualPlots.cxx:16
Trk::HitResidualPlots::residuals
TH1 * residuals
Definition: HitResidualPlots.h:20
Trk::HitResidualPlots::m_sType
std::string m_sType
Definition: HitResidualPlots.h:24
python.StandardJetMods.pull
pull
Definition: StandardJetMods.py:264
TH1::Fill
int Fill(double)
Definition: rootspy.cxx:285
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::HitResidualPlots::fill
void fill(const Trk::ResidualPull &resPull)
Definition: HitResidualPlots.cxx:24
Trk::HitResidualPlots::pulls
TH1 * pulls
Definition: HitResidualPlots.h:21
HitResidualPlots.h
Trk::ResidualPull::residual
const std::vector< double > & residual() const
return residual vector