ATLAS Offline Software
Simulation
G4Atlas
G4AtlasTests
src
TruthTestTool.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 G4ATLASTESTS_TRUTHTESTTOOL_H
6
#define G4ATLASTESTS_TRUTHTESTTOOL_H
7
8
#include "
SimTestToolBase.h
"
9
#include "
StoreGate/ReadHandleKey.h
"
10
#include "
xAODEventInfo/EventInfo.h
"
11
12
13
class
TruthTestTool
:
public
SimTestToolBase
{
14
15
16
public
:
17
18
TruthTestTool
(
const
std::string&
type
,
const
std::string&
name
,
const
IInterface*
parent
);
19
20
virtual
StatusCode
initialize
()
override
;
21
virtual
StatusCode
processEvent
()
override
;
22
23
private
:
25
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
this
,
"EventInfo"
,
"EventInfo"
,
"EventInfo name"
};
26
27
// histograms
28
TH1 *
m_n_vert
, *
m_n_part
;
29
TH1 *
m_n_vert_prim
, *
m_n_vert_sec
;
30
TH1 *
m_n_part_prim
, *
m_n_part_sec
;
31
TH1 *
m_x_vert
, *
m_y_vert
, *
m_z_vert
;
32
TH1 *
m_n_generations
;
33
TH1 *
m_vtx_r
, *
m_vtx_z
;
34
TH2 *
m_vtx_zr_indet
, *
m_vtx_xy_indet
;
35
TH1 *
m_meanx_vert
, *
m_meany_vert
, *
m_meanz_vert
;
36
TH1 *
m_px_truth
, *
m_py_truth
, *
m_pz_truth
, *
m_pt_truth
, *
m_log_pt_truth
;
37
TH1 *
m_theta_truth
, *
m_eta_truth
, *
m_phi_truth
;
38
TH1 *
m_origin
;
39
TH1 *
m_particle_status
, *
m_particle_type
;
40
TH1 *
m_p_gen
,*
m_log_p_gen
, *
m_eta_gen
,*
m_phi_gen
,*
m_pion_mass
;
41
42
int
m_mcEventDump
;
43
};
44
45
#endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TruthTestTool::m_theta_truth
TH1 * m_theta_truth
Definition:
TruthTestTool.h:37
TruthTestTool::TruthTestTool
TruthTestTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
TruthTestTool.cxx:17
TruthTestTool::m_n_part_sec
TH1 * m_n_part_sec
Definition:
TruthTestTool.h:30
TruthTestTool::initialize
virtual StatusCode initialize() override
Definition:
TruthTestTool.cxx:37
TruthTestTool::m_phi_truth
TH1 * m_phi_truth
Definition:
TruthTestTool.h:37
TruthTestTool::m_pz_truth
TH1 * m_pz_truth
Definition:
TruthTestTool.h:36
TruthTestTool::m_meanz_vert
TH1 * m_meanz_vert
Definition:
TruthTestTool.h:35
SG::ReadHandleKey< xAOD::EventInfo >
TruthTestTool::m_pt_truth
TH1 * m_pt_truth
Definition:
TruthTestTool.h:36
TruthTestTool::m_vtx_zr_indet
TH2 * m_vtx_zr_indet
Definition:
TruthTestTool.h:34
TruthTestTool::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
SG key for Event Info.
Definition:
TruthTestTool.h:25
TruthTestTool::m_n_generations
TH1 * m_n_generations
Definition:
TruthTestTool.h:32
TruthTestTool::m_pion_mass
TH1 * m_pion_mass
Definition:
TruthTestTool.h:40
TruthTestTool::m_meanx_vert
TH1 * m_meanx_vert
Definition:
TruthTestTool.h:35
TruthTestTool::m_particle_type
TH1 * m_particle_type
Definition:
TruthTestTool.h:39
TruthTestTool::m_log_p_gen
TH1 * m_log_p_gen
Definition:
TruthTestTool.h:40
SimTestToolBase
Definition:
SimTestToolBase.h:20
SimTestToolBase.h
TruthTestTool::m_vtx_r
TH1 * m_vtx_r
Definition:
TruthTestTool.h:33
TruthTestTool::m_p_gen
TH1 * m_p_gen
Definition:
TruthTestTool.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TruthTestTool::m_particle_status
TH1 * m_particle_status
Definition:
TruthTestTool.h:39
TruthTestTool::m_n_vert_sec
TH1 * m_n_vert_sec
Definition:
TruthTestTool.h:29
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
TruthTestTool::m_n_vert
TH1 * m_n_vert
Definition:
TruthTestTool.h:28
TruthTestTool::m_meany_vert
TH1 * m_meany_vert
Definition:
TruthTestTool.h:35
TruthTestTool::m_n_part
TH1 * m_n_part
Definition:
TruthTestTool.h:28
TruthTestTool::m_y_vert
TH1 * m_y_vert
Definition:
TruthTestTool.h:31
TruthTestTool
Definition:
TruthTestTool.h:13
TruthTestTool::m_x_vert
TH1 * m_x_vert
Definition:
TruthTestTool.h:31
TruthTestTool::m_vtx_z
TH1 * m_vtx_z
Definition:
TruthTestTool.h:33
TruthTestTool::m_z_vert
TH1 * m_z_vert
Definition:
TruthTestTool.h:31
TruthTestTool::m_phi_gen
TH1 * m_phi_gen
Definition:
TruthTestTool.h:40
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
TruthTestTool::m_eta_truth
TH1 * m_eta_truth
Definition:
TruthTestTool.h:37
TruthTestTool::m_px_truth
TH1 * m_px_truth
Definition:
TruthTestTool.h:36
TruthTestTool::m_n_part_prim
TH1 * m_n_part_prim
Definition:
TruthTestTool.h:30
EventInfo.h
TruthTestTool::processEvent
virtual StatusCode processEvent() override
Definition:
TruthTestTool.cxx:143
TruthTestTool::m_vtx_xy_indet
TH2 * m_vtx_xy_indet
Definition:
TruthTestTool.h:34
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
TruthTestTool::m_log_pt_truth
TH1 * m_log_pt_truth
Definition:
TruthTestTool.h:36
TruthTestTool::m_mcEventDump
int m_mcEventDump
Definition:
TruthTestTool.h:42
TruthTestTool::m_n_vert_prim
TH1 * m_n_vert_prim
Definition:
TruthTestTool.h:29
TruthTestTool::m_py_truth
TH1 * m_py_truth
Definition:
TruthTestTool.h:36
TruthTestTool::m_eta_gen
TH1 * m_eta_gen
Definition:
TruthTestTool.h:40
TruthTestTool::m_origin
TH1 * m_origin
Definition:
TruthTestTool.h:38
Generated on Thu Nov 7 2024 21:31:10 for ATLAS Offline Software by
1.8.18