#include <LayerTestTool.h>
Definition at line 10 of file LayerTestTool.h.
◆ LayerTestTool()
| LayerTestTool::LayerTestTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 14 of file LayerTestTool.cxx.
18 m_energy(0),
m_pos_x(0),
m_pos_y(0),
m_pos_z(0),
m_pos_r(0),
m_p_x(0),
m_p_y(0),
m_p_z(0),
m_p_rho(0),
m_p_phi(0),
m_p_eta(0)
19{
20 declareProperty(
"CollectionName",
m_collection=
"CaloEntry");
21}
◆ getPrimary()
Definition at line 20 of file SimTestToolBase.cxx.
21{
23 if (evtStore()->retrieve(mcCollection,
m_key).isSuccess()) {
25 for (e=mcCollection->
begin();e!=mcCollection->
end(); ++e) {
26 for (auto p : (**e)) {
29 }
30 }
31 }
32 }
33 return 0;
34}
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
bool is_simulation_particle(const T &p)
Method to establish if a particle (or barcode) was created during the simulation (TODO update to be s...
◆ initialize()
| StatusCode LayerTestTool::initialize |
( |
| ) |
|
|
virtual |
Reimplemented from SimTestToolBase.
Definition at line 24 of file LayerTestTool.cxx.
25{
28
31
34
37
40
43
46
49
56
63
66 return StatusCode::SUCCESS;
67}
#define _TH2D(var, name, nbinx, xmin, xmax, nbiny, ymin, ymax)
#define _TH1D(var, name, nbin, xmin, xmax)
#define _SET_TITLE(var, title, xaxis, yaxis)
◆ processEvent()
| StatusCode LayerTestTool::processEvent |
( |
| ) |
|
Definition at line 70 of file LayerTestTool.cxx.
71{
72
75
76 if (evtStore()->retrieve(trCollection,
m_key).isSuccess()) {
77
78 for(const auto& e : *trCollection){
79
82
83 if(
e.GetPDGCode() == 11){
85 }
86
87 if(
e.GetPDGCode() == -11){
89 }
90
91 if(
e.GetPDGCode() == 22){
93 }
94
95 if(
e.GetPDGCode() == 2112){
97 }
98
99 if(
e.GetPDGCode() == 13){
101 }
102
103 if(
e.GetPDGCode() == -13){
105 }
106
112
113 m_p_x=
e.GetMomentum().x();
114 m_p_y=
e.GetMomentum().y();
115 m_p_z=
e.GetMomentum().z();
116
120
124
128 }
129
130 }
131
132 return StatusCode::SUCCESS;
133}
AtlasHitsVector< TrackRecord > TrackRecordCollection
◆ m_collection
| std::string LayerTestTool::m_collection |
|
private |
◆ m_energy
| double LayerTestTool::m_energy |
|
private |
◆ m_histSvc
| ServiceHandle<ITHistSvc> SimTestHisto::m_histSvc {"THistSvc", "SimTestHisto"} |
|
protectedinherited |
◆ m_key
| std::string SimTestToolBase::m_key |
|
protectedinherited |
◆ m_n_energy
| TH1* LayerTestTool::m_n_energy |
|
private |
◆ m_n_energy_e
| TH1* LayerTestTool::m_n_energy_e |
|
private |
◆ m_n_energy_ep
| TH1* LayerTestTool::m_n_energy_ep |
|
private |
◆ m_n_energy_gamma
| TH1* LayerTestTool::m_n_energy_gamma |
|
private |
◆ m_n_energy_muon
| TH1* LayerTestTool::m_n_energy_muon |
|
private |
◆ m_n_energy_muonp
| TH1* LayerTestTool::m_n_energy_muonp |
|
private |
◆ m_n_energy_neutron
| TH1* LayerTestTool::m_n_energy_neutron |
|
private |
◆ m_n_eta
| TH1* LayerTestTool::m_n_eta |
|
private |
◆ m_n_phi
| TH1* LayerTestTool::m_n_phi |
|
private |
◆ m_n_pos
| TH2* LayerTestTool::m_n_pos |
|
private |
◆ m_n_px
| TH1* LayerTestTool::m_n_px |
|
private |
◆ m_n_py
| TH1* LayerTestTool::m_n_py |
|
private |
◆ m_n_pz
| TH1* LayerTestTool::m_n_pz |
|
private |
◆ m_n_rho
| TH1* LayerTestTool::m_n_rho |
|
private |
◆ m_p_eta
| double LayerTestTool::m_p_eta |
|
private |
◆ m_p_phi
| double LayerTestTool::m_p_phi |
|
private |
◆ m_p_rho
| double LayerTestTool::m_p_rho |
|
private |
◆ m_p_x
| double LayerTestTool::m_p_x |
|
private |
◆ m_p_y
| double LayerTestTool::m_p_y |
|
private |
◆ m_p_z
| double LayerTestTool::m_p_z |
|
private |
◆ m_path
| std::string SimTestHisto::m_path {"/truth/"} |
|
protectedinherited |
◆ m_pos_r
| double LayerTestTool::m_pos_r |
|
private |
◆ m_pos_x
| double LayerTestTool::m_pos_x |
|
private |
◆ m_pos_y
| double LayerTestTool::m_pos_y |
|
private |
◆ m_pos_z
| double LayerTestTool::m_pos_z |
|
private |
The documentation for this class was generated from the following files: