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 detectorId{0};
11 std::int32_t geometryNodeId{0};
12 std::int32_t trackId{0};
13 std::int32_t pdgCode{0};
14 std::array<double, 3> position{0, 0, 0};
15 std::array<double, 3> momentum{0, 0, 0};
16 double energyDeposit{0};
17 double time{0};
18 double pathLength{0};
19
20 bool operator==(SimHit const&) const = default;
21};
22
23} // namespace SHiP
Definition CaloHit.hpp:4
Simulation hit from Geant4 sensitive detectors.
Definition SimHit.hpp:9
std::int32_t geometryNodeId
Definition SimHit.hpp:11
bool operator==(SimHit const &) const =default
double energyDeposit
Energy deposited [GeV].
Definition SimHit.hpp:16
std::array< double, 3 > momentum
Momentum at hit [GeV/c].
Definition SimHit.hpp:15
std::int32_t detectorId
Definition SimHit.hpp:10
std::int32_t trackId
Definition SimHit.hpp:12
std::array< double, 3 > position
Hit position [mm].
Definition SimHit.hpp:14
double time
Global time [ns].
Definition SimHit.hpp:17
std::int32_t pdgCode
Definition SimHit.hpp:13
double pathLength
Step length [mm].
Definition SimHit.hpp:18