ATLAS Offline Software
Tracking
TrkValidation
TrkValHistUtils
Root
ImpactPlots.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
#include "
TrkValHistUtils/ImpactPlots.h
"
6
7
namespace
Trk
{
8
void
9
ImpactPlots::init
() {
10
z0
=
nullptr
;
11
z0sig
=
nullptr
;
12
d0
=
nullptr
;
13
d0sig
=
nullptr
;
14
d0_small
=
nullptr
;
15
}
16
17
void
18
ImpactPlots::initializePlots
() {
19
z0
=
Book1D
(
"z0"
,
"z0;Signed Impact Parameter z0 (mm);Entries / 5 mm"
, 120, -300, 300);
20
// z0sig = Book1D("z0sig","z0sig,;Signed Impact Parameter Significance; Entries / 0.1", 100, 0, 10);
21
d0
=
Book1D
(
"d0"
,
"d0;Signed Impact Parameter d0 (mm);Entries / 0.025 mm"
, 24000, -300, 300);
22
// d0sig = Book1D("d0sig","d0sig,;Signed Impact Parameter Significance; Entries / 0.1", 100, 0, 10);
23
d0_small
=
Book1D
(
"d0_small"
,
"d0;Signed Impact Parameter d0 (mm);Entries / 0.0025 mm"
, 80, -0.1, 0.1);
24
}
25
26
void
27
ImpactPlots::fill
(
const
xAOD::TrackParticle
&trkprt,
float
weight
) {
28
d0
->Fill(trkprt.
d0
(),
weight
);
29
d0_small
->Fill(trkprt.
d0
(),
weight
);
30
z0
->Fill(trkprt.
z0
(),
weight
);
31
}
32
}
xAOD::TrackParticle_v1::z0
float z0() const
Returns the parameter.
Trk::ImpactPlots::z0
TH1 * z0
Definition:
ImpactPlots.h:18
Trk::ImpactPlots::d0_small
TH1 * d0_small
Definition:
ImpactPlots.h:22
Trk::ImpactPlots::d0
TH1 * d0
Definition:
ImpactPlots.h:20
xAOD::TrackParticle_v1::d0
float d0() const
Returns the parameter.
dqt_zlumi_pandas.weight
int weight
Definition:
dqt_zlumi_pandas.py:189
PlotBase::Book1D
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
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition:
FakeTrackBuilder.h:9
Trk::ImpactPlots::initializePlots
void initializePlots()
Definition:
ImpactPlots.cxx:18
Trk::ImpactPlots::fill
void fill(const xAOD::TrackParticle &trkprt, float weight=1.0)
Definition:
ImpactPlots.cxx:27
Trk::ImpactPlots::z0sig
TH1 * z0sig
Definition:
ImpactPlots.h:19
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition:
TrackParticle_v1.h:43
Trk::ImpactPlots::init
void init()
Definition:
ImpactPlots.cxx:9
Trk::ImpactPlots::d0sig
TH1 * d0sig
Definition:
ImpactPlots.h:21
ImpactPlots.h
Generated on Thu Nov 7 2024 21:16:43 for ATLAS Offline Software by
1.8.18