LDMX Software
TargetBremFilter.h
1#ifndef BIASING_TARGETBREMFILTER_H
2#define BIASING_TARGETBREMFILTER_H
3
4//----------------//
5// C++ StdLib //
6//----------------//
7#include <algorithm>
8
9/*~~~~~~~~~~~~~*/
10/* SimCore */
11/*~~~~~~~~~~~~~*/
12#include "SimCore/UserAction.h"
13
14/*~~~~~~~~~~~~~~~*/
15/* Framework */
16/*~~~~~~~~~~~~~~~*/
17#include "Framework/Configure/Parameters.h"
18
19namespace biasing {
20
26 public:
28 TargetBremFilter(const std::string& name,
30
33
38 void stepping(const G4Step* step) override;
39
45 void EndOfEventAction(const G4Event*) override;
46
53 G4ClassificationOfNewTrack ClassifyNewTrack(
54 const G4Track* aTrack,
55 const G4ClassificationOfNewTrack& currentTrackClass) override;
56
58 std::vector<simcore::TYPE> getTypes() override {
59 return {simcore::TYPE::EVENT, simcore::TYPE::STACKING,
60 simcore::TYPE::STEPPING};
61 }
62
63 private:
65 double recoilMaxPThreshold_{1500}; // MeV
66
69
71 bool killRecoil_{false};
72
73}; // TargetBremFilter
74} // namespace biasing
75
76#endif // BIASING_TARGETBREMFILTER_H
User action that allows a user to filter out events that don't result in a brem within the target.
bool killRecoil_
Flag indicating if the recoil electron track should be killed.
std::vector< simcore::TYPE > getTypes() override
Retrieve the type of actions this class defines.
void EndOfEventAction(const G4Event *) override
Method called at the end of every event.
void stepping(const G4Step *step) override
Implement the stepping action which performs the target volume biasing.
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack, const G4ClassificationOfNewTrack &currentTrackClass) override
Classify a new track which postpones track processing.
double recoilMaxPThreshold_
Recoil electron threshold.
double bremEnergyThreshold_
Brem gamma energy treshold.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
Interface that defines a user action.
Definition UserAction.h:42