ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7namespace Trk {
8 void
10 z0 = nullptr;
11 z0sig = nullptr;
12 d0 = nullptr;
13 d0sig = nullptr;
14 d0_small = nullptr;
15 }
16
17 void
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}
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 xAOD::TrackParticle &trkprt, float weight=1.0)
float z0() const
Returns the parameter.
float d0() const
Returns the parameter.
Ensure that the ATLAS eigen extensions are properly loaded.
TrackParticle_v1 TrackParticle
Reference the current persistent version: