Use to keep particles with at least part of trajectory in a volume. More...
#include <ParticleFilters.h>
Classes | |
struct | VolumeInfo_t |
Public Types | |
using | Point_t = std::array< double, 3 > |
using | AllVolumeInfo_t = std::vector< VolumeInfo_t > |
Public Member Functions | |
bool | mustKeep (Point_t const &pos) const |
Returns whether a track along the specified point must be kept. More... | |
bool | mustKeep (TVector3 const &pos) const |
bool | mustKeep (TLorentzVector const &pos) const |
PositionInVolumeFilter (std::vector< VolumeInfo_t > const &volumes) | |
Constructors: read the volumes from the specified list. More... | |
PositionInVolumeFilter (std::vector< VolumeInfo_t > &&volumes) | |
Protected Attributes | |
std::vector< VolumeInfo_t > | volumeInfo |
all good volumes More... | |
Use to keep particles with at least part of trajectory in a volume.
The class stores a list of pointers to volumes to consider. If a point specified in the mustKeep() call is within one of the blessed volumes, the whole track it belongs to must to be kept.
No condition for prompt rejection is provided.
Definition at line 48 of file ParticleFilters.h.
Definition at line 63 of file ParticleFilters.h.
using gar::garg4::PositionInVolumeFilter::Point_t = std::array<double, 3> |
Definition at line 51 of file ParticleFilters.h.
|
inline |
Constructors: read the volumes from the specified list.
volumes | list of interesting volumes |
Definition at line 68 of file ParticleFilters.h.
|
inline |
Definition at line 71 of file ParticleFilters.h.
Returns whether a track along the specified point must be kept.
pos | point on the track, a [x,y,z] array in "Geant4 coordinates" whether a track along the specified point must be kept |
If the return value is true, the track must be kept. If the return value is false, no decision can be made yet. If no decision is made after the track is over, the track should be dropped.
Definition at line 86 of file ParticleFilters.h.
|
inline |
Definition at line 100 of file ParticleFilters.h.
|
inline |
Definition at line 103 of file ParticleFilters.h.
|
protected |
all good volumes
Definition at line 108 of file ParticleFilters.h.