ATLAS Offline Software
Loading...
Searching...
No Matches
TruthHitAnalysis.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRUTH_HIT_ANALYSIS_H
6#define TRUTH_HIT_ANALYSIS_H
7
11
12
13
15
16 public:
17
19 ~TruthHitAnalysis() = default;
20 virtual StatusCode execute() override final;
21 virtual StatusCode initialize() override final;
22
23 private:
24
26 TH1* m_h_n_vert{nullptr};
27 TH1* m_h_n_part{nullptr};
28 TH1* m_h_n_vert_prim{nullptr};
29 TH1* m_h_n_part_prim{nullptr};
30 TH1* m_h_n_vert_sec{nullptr};
31 TH1* m_h_n_part_sec{nullptr};
32 TH1* m_h_vtx_x{nullptr};
33 TH1* m_h_vtx_y{nullptr};
34 TH1* m_h_vtx_z{nullptr};
35 TH1* m_h_vtx_r{nullptr};
36 TH2* m_h_vtx_prim_xy{nullptr};
37 TH2* m_h_vtx_prim_zr{nullptr};
38 TH2* m_h_vtx_sec_xy{nullptr};
39 TH2* m_h_vtx_sec_zr{nullptr};
40 TH1* m_h_n_generations{nullptr};
41 TH1* m_h_truth_px{nullptr};
42 TH1* m_h_truth_py{nullptr};
43 TH1* m_h_truth_pz{nullptr};
44 TH1* m_h_truth_pt{nullptr};
45 TH1* m_h_truth_eta{nullptr};
46 TH1* m_h_truth_phi{nullptr};
47 TH1* m_h_barcode{nullptr};
48 TH1* m_h_part_status{nullptr};
49 TH1* m_h_part_pdgid{nullptr};
50 TH1* m_h_part_pdgid_sec{nullptr};
51 TH1* m_h_part_eta{nullptr};
52 TH1* m_h_part_phi{nullptr};
53 TH1* m_h_part_p{nullptr};
54
55 std::vector<float>* m_vtx_x{nullptr};
56 std::vector<float>* m_vtx_y{nullptr};
57 std::vector<float>* m_vtx_z{nullptr};
58 std::vector<float>* m_vtx_r{nullptr};
59 std::vector<float>* m_vtx_barcode{nullptr};
60 std::vector<float>* m_truth_px{nullptr};
61 std::vector<float>* m_truth_py{nullptr};
62 std::vector<float>* m_truth_pz{nullptr};
63 std::vector<float>* m_truth_pt{nullptr};
64 std::vector<float>* m_truth_eta{nullptr};
65 std::vector<float>* m_truth_phi{nullptr};
66 std::vector<float>* m_barcode{nullptr};
67 std::vector<float>* m_status{nullptr};
68 std::vector<float>* m_pdgid{nullptr};
69
70 TTree * m_tree{nullptr};
71
72 Gaudi::Property<std::string> m_path{this, "HistPath","/TruthHitAnalysis/"};
73 Gaudi::Property<std::string> m_ntupleFileName{this, "NtupleFileName","/TruthHitAnalysis/"};
74 SG::ReadHandleKey<McEventCollection> m_readKey{this, "InputKey", "TruthEvent"};
75
76};
77
78#endif // TRUTH_HIT_ANALYSIS_H
Property holding a SG store/key/clid from which a ReadHandle is made.
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Property holding a SG store/key/clid from which a ReadHandle is made.
std::vector< float > * m_vtx_z
std::vector< float > * m_truth_pt
virtual StatusCode initialize() override final
std::vector< float > * m_truth_py
std::vector< float > * m_pdgid
std::vector< float > * m_vtx_y
~TruthHitAnalysis()=default
Gaudi::Property< std::string > m_path
TH1 * m_h_n_vert
Some variables.
virtual StatusCode execute() override final
std::vector< float > * m_vtx_x
SG::ReadHandleKey< McEventCollection > m_readKey
std::vector< float > * m_vtx_barcode
std::vector< float > * m_truth_pz
Gaudi::Property< std::string > m_ntupleFileName
std::vector< float > * m_truth_eta
std::vector< float > * m_barcode
std::vector< float > * m_truth_phi
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::vector< float > * m_status
std::vector< float > * m_vtx_r
std::vector< float > * m_truth_px
#define private