Skip to content
Snippets Groups Projects

Draft: The second attempt to use status() instead of barcode() in Simulation

Closed Andrii Verbytskyi requested to merge averbyts/athena:use_status2 into main
Compare and Show latest version
3 files
+ 26
2
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -113,6 +113,8 @@ namespace ISFTesting {
virtual double childEkin(unsigned short) const override {return 1.0;};
/** Return the PDG Code of the i-th child particle */
virtual int childPdgCode(unsigned short) const override {return 1;};
/** Return the barcode of the i-th child particle (if defined as part of the TruthIncident) otherwise return 0 */
Barcode::ParticleBarcode childBarcode(unsigned short) const override final {return 0;};
/** Return the i-th child as a HepMC particle type and assign the given
status to the simulator particle (only called for particles that will
enter the HepMC truth event) */
@@ -124,6 +126,8 @@ namespace ISFTesting {
simulation). */
virtual HepMC::GenParticlePtr updateChildParticle(unsigned short,
HepMC::GenParticlePtr ) const override {return nullptr;};
/** Set the the barcode of all child particles to the given bc */
virtual void setAllChildrenBarcodes(Barcode::ParticleBarcode) override {};
/** Set the the status of all child particles to the given bc */
virtual void setAllChildrenStatus(int) override {};
private:
Loading