ATLAS Offline Software
Tracking
TrkValidation
TrkValHistUtils
TrkValHistUtils
TruthTrkExtrapolationPlots.h
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 TRKVALHISTUTILS_TRUTHTRKEXTRAPOLATIONPLOTS_H
6
#define TRKVALHISTUTILS_TRUTHTRKEXTRAPOLATIONPLOTS_H
7
8
#include "
PlotBase.h
"
9
#include "
xAODTruth/TruthParticle.h
"
10
#include "TVector3.h"
11
12
namespace
Trk
{
13
//this class creates kinematic plots at different layers in the detector
14
class
ExtrLayerPlots
:
public
PlotBase
{
15
public
:
16
ExtrLayerPlots
(
PlotBase
*pParent,
const
std::string&
sDir
, std::string sLayerName);
17
18
void
fill
(
const
xAOD::TruthParticle
& truthprt,
const
std::string& sLayerName,
float
weight
=1.0);
19
std::string
m_sLayerName
;
20
21
TH1*
p
;
22
TH1*
px
;
23
TH1*
py
;
24
TH1*
pz
;
25
TH1*
p_extr
;
26
TH1*
px_extr
;
27
TH1*
py_extr
;
28
TH1*
pz_extr
;
29
TH1*
dp_truth
;
30
TH1*
dpx_truth
;
31
TH1*
dpy_truth
;
32
TH1*
dpz_truth
;
33
TH1*
pt
;
34
TH1*
eta
;
35
TH1*
phi
;
36
TH1*
theta
;
37
38
private
:
39
void
initializePlots
();
40
};
41
//this class creates kinematic plots for different regions in the detector
42
class
ExtrRegionPlots
:
public
PlotBase
{
43
public
:
44
ExtrRegionPlots
(
PlotBase
*pParent,
const
std::string&
sDir
, std::string sRegionBegin, std::string sRegionEnd);
45
46
void
fill
(
const
xAOD::TruthParticle
& truthprt,
const
std::string& sRegionBegin,
const
std::string& sRegionEnd,
float
weight
=1.0);
47
std::string
m_sRegionBegin
;
48
std::string
m_sRegionEnd
;
49
50
TH1*
dp
;
51
TH1*
dpt
;
52
TH1*
dpx
;
53
TH1*
dpy
;
54
TH1*
dpz
;
55
TH1*
dp_extr
;
56
TH1*
dpx_extr
;
57
TH1*
dpy_extr
;
58
TH1*
dpz_extr
;
59
60
TH2*
dp_vs_p
;
61
TH2*
dp_vs_phi
;
62
TH2*
dp_vs_eta
;
63
TH2*
dp_vs_eta_phi
;
64
TH2*
p_vs_p
;
65
TH2*
p_extr_vs_p_extr
;
66
TH2*
dp_extr_vs_eta
;
67
68
69
TH1*
dR
;
70
TH2*
dR_vs_p
;
71
TH2*
dR_vs_dp
;
72
TH2*
dR_vs_eta
;
73
TH2*
dR_vs_phi
;
74
TH2*
dR_vs_eta_phi
;
75
76
TH1*
dphi
;
77
TH1*
dtheta
;
78
TH1*
dAngle
;
79
80
TH2*
dp_CaloEntry_IP_dp_CaloEntry_etxr
;
81
82
private
:
83
void
initializePlots
();
84
};
85
86
87
class
TruthTrkExtrapolationPlots
:
public
PlotBase
{
88
public
:
89
TruthTrkExtrapolationPlots
(
PlotBase
*pParent,
const
std::string&
sDir
);
90
void
fill
(
const
xAOD::TruthParticle
& truthprt,
float
weight
=1.0);
91
92
ExtrLayerPlots
m_CaloEntry
;
93
ExtrLayerPlots
m_MuonEntry
;
94
ExtrLayerPlots
m_MuonExit
;
95
96
/* ExtrRegionPlots m_Calo; */
97
/* ExtrRegionPlots m_MS; */
98
/* ExtrRegionPlots m_IP; */
99
/* ExtrRegionPlots m_IP_Calo; */
100
/* ExtrRegionPlots m_Calo_MS; */
101
/* ExtrRegionPlots m_IP_MS; */
102
};
103
104
}
105
106
#endif
107
Trk::ExtrRegionPlots
Definition:
TruthTrkExtrapolationPlots.h:42
Trk::ExtrLayerPlots::theta
TH1 * theta
Definition:
TruthTrkExtrapolationPlots.h:36
Trk::ExtrLayerPlots::py_extr
TH1 * py_extr
Definition:
TruthTrkExtrapolationPlots.h:27
Trk::ExtrRegionPlots::dp_vs_phi
TH2 * dp_vs_phi
Definition:
TruthTrkExtrapolationPlots.h:61
Trk::ExtrRegionPlots::dR_vs_phi
TH2 * dR_vs_phi
Definition:
TruthTrkExtrapolationPlots.h:73
Trk::ExtrRegionPlots::m_sRegionEnd
std::string m_sRegionEnd
Definition:
TruthTrkExtrapolationPlots.h:48
Trk::ExtrRegionPlots::dpz_extr
TH1 * dpz_extr
Definition:
TruthTrkExtrapolationPlots.h:58
Trk::ExtrLayerPlots::pt
TH1 * pt
Definition:
TruthTrkExtrapolationPlots.h:33
Trk::TruthTrkExtrapolationPlots::TruthTrkExtrapolationPlots
TruthTrkExtrapolationPlots(PlotBase *pParent, const std::string &sDir)
Definition:
TruthTrkExtrapolationPlots.cxx:13
Trk::ExtrRegionPlots::dp_vs_eta
TH2 * dp_vs_eta
Definition:
TruthTrkExtrapolationPlots.h:62
Trk::ExtrRegionPlots::dp_vs_p
TH2 * dp_vs_p
Definition:
TruthTrkExtrapolationPlots.h:60
PlotBase
Definition:
PlotBase.h:34
Trk::ExtrRegionPlots::dp
TH1 * dp
Definition:
TruthTrkExtrapolationPlots.h:50
Trk::ExtrRegionPlots::dpx
TH1 * dpx
Definition:
TruthTrkExtrapolationPlots.h:52
python.copyTCTOutput.sDir
sDir
Definition:
copyTCTOutput.py:60
Trk::ExtrRegionPlots::dtheta
TH1 * dtheta
Definition:
TruthTrkExtrapolationPlots.h:77
Trk::ExtrRegionPlots::dpx_extr
TH1 * dpx_extr
Definition:
TruthTrkExtrapolationPlots.h:56
Trk::ExtrRegionPlots::dpy
TH1 * dpy
Definition:
TruthTrkExtrapolationPlots.h:53
Trk::ExtrLayerPlots::p
TH1 * p
Definition:
TruthTrkExtrapolationPlots.h:21
Trk::ExtrRegionPlots::dp_extr
TH1 * dp_extr
Definition:
TruthTrkExtrapolationPlots.h:55
Trk::ExtrLayerPlots::dpz_truth
TH1 * dpz_truth
Definition:
TruthTrkExtrapolationPlots.h:32
Trk::ExtrRegionPlots::initializePlots
void initializePlots()
Definition:
TruthTrkExtrapolationPlots.cxx:133
Trk::TruthTrkExtrapolationPlots::fill
void fill(const xAOD::TruthParticle &truthprt, float weight=1.0)
Definition:
TruthTrkExtrapolationPlots.cxx:27
Trk::ExtrLayerPlots::pz
TH1 * pz
Definition:
TruthTrkExtrapolationPlots.h:24
Trk::TruthTrkExtrapolationPlots::m_CaloEntry
ExtrLayerPlots m_CaloEntry
Definition:
TruthTrkExtrapolationPlots.h:92
Trk::ExtrRegionPlots::dR
TH1 * dR
Definition:
TruthTrkExtrapolationPlots.h:69
Trk::ExtrRegionPlots::p_extr_vs_p_extr
TH2 * p_extr_vs_p_extr
Definition:
TruthTrkExtrapolationPlots.h:65
Trk::ExtrRegionPlots::dR_vs_eta
TH2 * dR_vs_eta
Definition:
TruthTrkExtrapolationPlots.h:72
Trk::TruthTrkExtrapolationPlots::m_MuonExit
ExtrLayerPlots m_MuonExit
Definition:
TruthTrkExtrapolationPlots.h:94
Trk::ExtrRegionPlots::dp_CaloEntry_IP_dp_CaloEntry_etxr
TH2 * dp_CaloEntry_IP_dp_CaloEntry_etxr
Definition:
TruthTrkExtrapolationPlots.h:80
Trk::ExtrLayerPlots::m_sLayerName
std::string m_sLayerName
Definition:
TruthTrkExtrapolationPlots.h:19
dqt_zlumi_pandas.weight
int weight
Definition:
dqt_zlumi_pandas.py:189
Trk::ExtrLayerPlots::py
TH1 * py
Definition:
TruthTrkExtrapolationPlots.h:23
Trk::ExtrLayerPlots::px_extr
TH1 * px_extr
Definition:
TruthTrkExtrapolationPlots.h:26
Trk::ExtrRegionPlots::ExtrRegionPlots
ExtrRegionPlots(PlotBase *pParent, const std::string &sDir, std::string sRegionBegin, std::string sRegionEnd)
Definition:
TruthTrkExtrapolationPlots.cxx:121
Trk::ExtrRegionPlots::fill
void fill(const xAOD::TruthParticle &truthprt, const std::string &sRegionBegin, const std::string &sRegionEnd, float weight=1.0)
Definition:
TruthTrkExtrapolationPlots.cxx:227
Trk::ExtrLayerPlots::px
TH1 * px
Definition:
TruthTrkExtrapolationPlots.h:22
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition:
TruthParticle_v1.h:37
Trk::ExtrRegionPlots::dpy_extr
TH1 * dpy_extr
Definition:
TruthTrkExtrapolationPlots.h:57
Trk::ExtrRegionPlots::m_sRegionBegin
std::string m_sRegionBegin
Definition:
TruthTrkExtrapolationPlots.h:47
Trk::ExtrRegionPlots::dpz
TH1 * dpz
Definition:
TruthTrkExtrapolationPlots.h:54
Trk::ExtrLayerPlots::fill
void fill(const xAOD::TruthParticle &truthprt, const std::string &sLayerName, float weight=1.0)
Definition:
TruthTrkExtrapolationPlots.cxx:79
Trk::ExtrRegionPlots::dp_extr_vs_eta
TH2 * dp_extr_vs_eta
Definition:
TruthTrkExtrapolationPlots.h:66
Trk::ExtrRegionPlots::dp_vs_eta_phi
TH2 * dp_vs_eta_phi
Definition:
TruthTrkExtrapolationPlots.h:63
Trk::ExtrLayerPlots
Definition:
TruthTrkExtrapolationPlots.h:14
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition:
FakeTrackBuilder.h:9
Trk::ExtrLayerPlots::dpy_truth
TH1 * dpy_truth
Definition:
TruthTrkExtrapolationPlots.h:31
Trk::ExtrLayerPlots::dpx_truth
TH1 * dpx_truth
Definition:
TruthTrkExtrapolationPlots.h:30
Trk::ExtrRegionPlots::dR_vs_p
TH2 * dR_vs_p
Definition:
TruthTrkExtrapolationPlots.h:70
Trk::ExtrLayerPlots::ExtrLayerPlots
ExtrLayerPlots(PlotBase *pParent, const std::string &sDir, std::string sLayerName)
Definition:
TruthTrkExtrapolationPlots.cxx:40
Trk::ExtrLayerPlots::pz_extr
TH1 * pz_extr
Definition:
TruthTrkExtrapolationPlots.h:28
Trk::ExtrRegionPlots::dphi
TH1 * dphi
Definition:
TruthTrkExtrapolationPlots.h:76
Trk::ExtrLayerPlots::p_extr
TH1 * p_extr
Definition:
TruthTrkExtrapolationPlots.h:25
Trk::ExtrRegionPlots::dpt
TH1 * dpt
Definition:
TruthTrkExtrapolationPlots.h:51
Trk::ExtrRegionPlots::dAngle
TH1 * dAngle
Definition:
TruthTrkExtrapolationPlots.h:78
TruthParticle.h
Trk::ExtrRegionPlots::dR_vs_eta_phi
TH2 * dR_vs_eta_phi
Definition:
TruthTrkExtrapolationPlots.h:74
PlotBase.h
Trk::ExtrLayerPlots::eta
TH1 * eta
Definition:
TruthTrkExtrapolationPlots.h:34
Trk::TruthTrkExtrapolationPlots
Definition:
TruthTrkExtrapolationPlots.h:87
Trk::ExtrLayerPlots::initializePlots
void initializePlots()
Definition:
TruthTrkExtrapolationPlots.cxx:48
Trk::ExtrLayerPlots::phi
TH1 * phi
Definition:
TruthTrkExtrapolationPlots.h:35
Trk::ExtrRegionPlots::dR_vs_dp
TH2 * dR_vs_dp
Definition:
TruthTrkExtrapolationPlots.h:71
Trk::ExtrRegionPlots::p_vs_p
TH2 * p_vs_p
Definition:
TruthTrkExtrapolationPlots.h:64
Trk::TruthTrkExtrapolationPlots::m_MuonEntry
ExtrLayerPlots m_MuonEntry
Definition:
TruthTrkExtrapolationPlots.h:93
Trk::ExtrLayerPlots::dp_truth
TH1 * dp_truth
Definition:
TruthTrkExtrapolationPlots.h:29
Generated on Sun Dec 22 2024 21:22:09 for ATLAS Offline Software by
1.8.18