SHiP Data Model
Event data model for the SHiP experiment: C++ data classes with ROOT dictionary support.
Loading...
Searching...
No Matches
SimHit.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4#include <cstdint>
5
6namespace SHiP {
7
9struct SimHit {
10 std::int32_t detector_id{0};
11 std::int32_t geometry_node_id{0};
12 std::int32_t track_id{0};
13 std::int32_t pdg_code{0};
14 std::array<double, 3> position{0, 0, 0};
15 std::array<double, 3> momentum{0, 0, 0};
16 double energy_deposit{0};
17 double time{0};
18 double path_length{0};
19
20 bool operator==(SimHit const&) const = default;
21};
22
23} // namespace SHiP
Canonical ShipSoft unit vocabulary.
Definition CaloHit.hpp:4
detector_id
Definition detector_id.hpp:7
Simulation hit from Geant4 sensitive detectors.
Definition SimHit.hpp:9
bool operator==(SimHit const &) const =default
double energy_deposit
Energy deposited [GeV].
Definition SimHit.hpp:16
std::array< double, 3 > momentum
Momentum at hit [GeV/c].
Definition SimHit.hpp:15
std::int32_t track_id
Definition SimHit.hpp:12
std::int32_t geometry_node_id
Definition SimHit.hpp:11
std::array< double, 3 > position
Hit position [mm].
Definition SimHit.hpp:14
double time
Global time [ns].
Definition SimHit.hpp:17
std::int32_t pdg_code
Definition SimHit.hpp:13
double path_length
Step length [mm].
Definition SimHit.hpp:18