LDMX Software
PrimaryToEcalFilter.h
1#ifndef BIASING_PRIMARYTOECALFILTER_H
2#define BIASING_PRIMARYTOECALFILTER_H
3
4/*~~~~~~~~~~~~~~~~*/
5/* C++ StdLib */
6/*~~~~~~~~~~~~~~~~*/
7#include <string>
8
9/*~~~~~~~~~~~~~*/
10/* SimCore */
11/*~~~~~~~~~~~~~*/
12#include "SimCore/UserAction.h"
13
14// Forward declarations
15class G4Step;
16
17namespace biasing {
18
26 public:
34 PrimaryToEcalFilter(const std::string& name,
36
39
50 void stepping(const G4Step* step) override;
51
53 std::vector<simcore::TYPE> getTypes() override {
54 return {simcore::TYPE::STEPPING};
55 }
56
57 private:
59 double threshold_;
60
61}; // PrimaryToEcalFilter
62
63} // namespace biasing
64
65#endif // BIASING_PRIMARYTOECALFILTER_H
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.
double threshold_
Energy [MeV] below which a primary should be vetoed.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
Interface that defines a user action.
Definition UserAction.h:42