LDMX Software
TrackProcessFilter.h
1#ifndef BIASING_UTILITY_TRACKPROCESSFILTER_H
2#define BIASING_UTILITY_TRACKPROCESSFILTER_H
3
4/*~~~~~~~~~~~~~~~~*/
5/* C++ StdLib */
6/*~~~~~~~~~~~~~~~~*/
7#include <string>
8
9/*~~~~~~~~~~~~~*/
10/* SimCore */
11/*~~~~~~~~~~~~~*/
12#include "SimCore/UserAction.h"
13
14namespace biasing {
15namespace utility {
16
31 public:
39 TrackProcessFilter(const std::string& name,
41
44
50 void PostUserTrackingAction(const G4Track* track) override;
51
53 std::vector<simcore::TYPE> getTypes() override {
54 return {simcore::TYPE::TRACKING};
55 }
56
57 private:
59 std::string process_{""};
60
61}; // TrackProcessFilter
62
63} // namespace utility
64} // namespace biasing
65
66#endif // BIASING_UTILITY_TRACKPROCESSFILTER_H
Filter used to tag tracks for persistence based on the process they were created from.
void PostUserTrackingAction(const G4Track *track) override
Method called when a track is done being processed.
std::vector< simcore::TYPE > getTypes() override
Retrieve the type of actions this class defines.
std::string process_
The process to filter on.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
Interface that defines a user action.
Definition UserAction.h:42