46 void setHistoryId(
int id) { history_id_ = id; }
47 void setParentId(
int id) { parent_id_ = id; }
48 void setPdgId(
int id) { pdg_id_ = id; }
49 void setMomentum(
double px,
double py,
double pz,
double e) {
55 void setPosition(
double x,
double y,
double z) {
60 void setGeneration(
int gen) { generation_ = gen; }
61 void setZone(
int zone) { zone_ = zone; }
62 void setDaughterIds(
const std::vector<int>& ids) { daughter_ids_ = ids; }
63 void addDaughterId(
int id) { daughter_ids_.push_back(
id); }
64 void setTargetPdgId(
int id) { target_pdg_id_ = id; }
65 void setInteracted(
bool interacted) { interacted_ = interacted; }
66 void setEscaped(
bool escaped) { escaped_ = escaped; }
68 void setStage(
int stage) { stage_ =
static_cast<CascadeStage>(stage); }
70 int getHistoryId()
const {
return history_id_; }
71 int getParentId()
const {
return parent_id_; }
72 int getPdgId()
const {
return pdg_id_; }
73 double getPx()
const {
return px_; }
74 double getPy()
const {
return py_; }
75 double getPz()
const {
return pz_; }
76 double getEnergy()
const {
return energy_; }
77 double getX()
const {
return x_; }
78 double getY()
const {
return y_; }
79 double getZ()
const {
return z_; }
80 int getGeneration()
const {
return generation_; }
81 int getZone()
const {
return zone_; }
82 const std::vector<int>& getDaughterIds()
const {
return daughter_ids_; }
83 int getNumDaughters()
const {
return static_cast<int>(daughter_ids_.size()); }
84 int getTargetPdgId()
const {
return target_pdg_id_; }
85 bool didInteract()
const {
return interacted_; }
86 bool didEscape()
const {
return escaped_; }
88 int getStageInt()
const {
return static_cast<int>(stage_); }
90 double getKineticEnergy()
const;
91 double getMass()
const;
110 std::vector<int> daughter_ids_;
111 int target_pdg_id_{0};
113 bool interacted_{
false};
114 bool escaped_{
false};