LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
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) | |
Constructors: read the volumes from the specified list. More... | |
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 46 of file ParticleFilters.h.
using util::PositionInVolumeFilter::AllVolumeInfo_t = std::vector<VolumeInfo_t> |
Definition at line 61 of file ParticleFilters.h.
using util::PositionInVolumeFilter::Point_t = std::array<double, 3> |
Definition at line 48 of file ParticleFilters.h.
|
inline |
Constructors: read the volumes from the specified list.
volumes | list of interesting volumes |
Definition at line 66 of file ParticleFilters.h.
|
inline |
Constructors: read the volumes from the specified list.
volumes | list of interesting volumes |
Definition at line 67 of file ParticleFilters.h.
|
inline |
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 80 of file ParticleFilters.h.
|
inline |
Definition at line 94 of file ParticleFilters.h.
|
inline |
Definition at line 99 of file ParticleFilters.h.
|
protected |
all good volumes
Definition at line 105 of file ParticleFilters.h.