ATLAS Offline Software
Loading...
Searching...
No Matches
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"
10#include "TVector3.h"
11
12namespace 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;
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
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;
62 TH2* dp_vs_eta;
64 TH2* p_vs_p;
67
68
69 TH1* dR;
70 TH2* dR_vs_p ;
75
76 TH1* dphi;
77 TH1* dtheta;
78 TH1* dAngle;
79
81
82 private:
83 void initializePlots();
84 };
85
86
88 public:
89 TruthTrkExtrapolationPlots(PlotBase *pParent, const std::string& sDir);
90 void fill(const xAOD::TruthParticle& truthprt, float weight=1.0);
91
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
PlotBase(PlotBase *parent, const std::string &sDir)
Definition PlotBase.cxx:29
void fill(const xAOD::TruthParticle &truthprt, const std::string &sLayerName, float weight=1.0)
ExtrLayerPlots(PlotBase *pParent, const std::string &sDir, std::string sLayerName)
ExtrRegionPlots(PlotBase *pParent, const std::string &sDir, std::string sRegionBegin, std::string sRegionEnd)
void fill(const xAOD::TruthParticle &truthprt, const std::string &sRegionBegin, const std::string &sRegionEnd, float weight=1.0)
void fill(const xAOD::TruthParticle &truthprt, float weight=1.0)
TruthTrkExtrapolationPlots(PlotBase *pParent, const std::string &sDir)
Ensure that the ATLAS eigen extensions are properly loaded.
TruthParticle_v1 TruthParticle
Typedef to implementation.