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/*~~~~~~~~~~~~~*/
13
14/*~~~~~~~~~~~~~~~*/
15/* Framework */
16/*~~~~~~~~~~~~~~~*/
17#include "Framework/Logger.h"
18/*~~~~~~~~~~~~*/
19/* Geant4 */
20/*~~~~~~~~~~~~*/
21#include "G4Step.hh"
22
23// Forward declarations
24class G4Step;
25
26namespace biasing {
27
35 public:
43 PrimaryToEcalFilter(const std::string& name,
45
48
59 void stepping(const G4Step* step) override;
60
62 std::vector<simcore::TYPE> getTypes() override {
63 return {simcore::TYPE::STEPPING};
64 }
65
66 private:
68 double threshold_;
69
70}; // PrimaryToEcalFilter
71
72} // namespace biasing
73
74#endif // BIASING_PRIMARYTOECALFILTER_H
File holding UserAction prototype and supporting macro.
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.
PrimaryToEcalFilter(const std::string &name, framework::config::Parameters &parameters)
Constructor.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:26
Interface that defines a user action.
Definition UserAction.h:46