1#ifndef BIASING_PRIMARYTOECALFILTER_H
2#define BIASING_PRIMARYTOECALFILTER_H
12#include "SimCore/UserAction.h"
17#include "Framework/Logger.h"
55 void stepping(
const G4Step* step)
override;
58 std::vector<simcore::TYPE>
getTypes()
override {
59 return {simcore::TYPE::STEPPING};
User stepping action used to filter events where the primary particle falls below a threshold before ...
void stepping(const G4Step *step) override
Only process if the track is a primary (parentID == 0) and if the event is not aborted and the partic...
std::vector< simcore::TYPE > getTypes() override
Retrieve the type of actions this class defines.
~PrimaryToEcalFilter()
Destructor.
double threshold_
Energy [MeV] below which a primary should be vetoed.
PrimaryToEcalFilter(const std::string &name, framework::config::Parameters ¶meters)
Constructor.
Class encapsulating parameters for configuring a processor.
Interface that defines a user action.