Commit bf99997a authored by Paul Schütze's avatar Paul Schütze
Browse files

Prepare MCParticle for storage of total deposited energy

parent e3851ecf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -64,6 +64,10 @@ unsigned int MCParticle::getTotalDepositedCharge() const { return deposited_char

void MCParticle::setTotalDepositedCharge(unsigned int total_charge) { deposited_charge_ = total_charge; }

double MCParticle::getTotalDepositedEnergy() const { return deposited_energy_; }

void MCParticle::setTotalDepositedEnergy(double total_energy) { deposited_energy_ = total_energy; }

int MCParticle::getParticleID() const { return particle_id_; }

double MCParticle::getGlobalTime() const { return global_time_; }
+13 −0
Original line number Diff line number Diff line
@@ -131,6 +131,18 @@ namespace allpix {
         */
        unsigned int getTotalDepositedCharge() const;

        /**
         * @brief Set the total energy deposited by this particle
         * @param total_energy Total energy deposited by this particle
         */
        void setTotalDepositedEnergy(double total_energy);

        /**
         * @brief Return the total energy deposited by this particle
         * @return Total energy deposited by this particle
         */
        double getTotalDepositedEnergy() const;

        /**
         * @brief Set the Monte-Carlo particle
         * @param mc_particle The Monte-Carlo particle
@@ -194,6 +206,7 @@ namespace allpix {
        double local_time_{};
        double global_time_{};
        unsigned int deposited_charge_{};
        double deposited_energy_{};
        double total_energy_start_{};
        double kinetic_energy_start_{};