1#ifndef BIASING_MIDSHOWERBKGDFILTER_H_
2#define BIASING_MIDSHOWERBKGDFILTER_H_
7#include "SimCore/UserAction.h"
49 std::vector<simcore::TYPE>
getTypes()
override {
50 return {simcore::TYPE::STACKING, simcore::TYPE::STEPPING,
51 simcore::TYPE::EVENT};
77 void stepping(
const G4Step* step)
override;
120 void save(
const G4Track* track)
const;
130 void AbortEvent(
const std::string& reason)
const;
The basic premis of this filter is to add up all of the energy "lost" to the configured process.
void save(const G4Track *track) const
Helper to save the passed track.
void AbortEvent(const std::string &reason) const
Helper to abort an event with a message.
void BeginOfEventAction(const G4Event *event) override
Reset the total energy going to the configured process.
bool isOutsideCalorimeterRegion(const G4Step *step) const
Checks if the passed step is outside of the CalorimeterRegion.
std::vector< simcore::TYPE > getTypes() override
Get the types of actions this class can do.
void NewStage() override
When using the PartialEnergySorter, the first time that a new stage begins is when all particles are ...
~MidShowerNuclearBkgdFilter()
Class destructor.
bool isNuclearProcess(const G4VProcess *proc) const
Checks if the passed process is any of the nuclear interactions.
void stepping(const G4Step *step) override
We follow the simulation along each step and check if any secondaries of the input process were creat...
double threshold_
Minimum energy [MeV] that the process products need to have to keep the event.
std::vector< std::string > nuclear_processes_
Processes to look for.
double total_process_energy_
Total energy gone to the process in the current event.
Class encapsulating parameters for configuring a processor.
Interface that defines a user action.