Filters a point according to the material at that point. More...
Public Member Functions | |
MaterialPointFilter (geo::GeometryCore const &geom, std::set< std::string > const &materialNames) | |
Constructor: sets up the filter configuration. More... | |
~MaterialPointFilter () | |
bool | accept (geo::Point_t const &point) |
Returns whether the specified point can be accepted. More... | |
bool | operator() (geo::Point_t const &point) |
Private Member Functions | |
TGeoMaterial const * | materialAt (geo::Point_t const &point) |
Returns a pointer to the material of the volume at specified point . More... | |
TGeoMaterial const * | findMaterial (std::string const &name) const |
Returns a pointer to the material with the specified name . More... | |
Private Attributes | |
TGeoManager * | fManager = nullptr |
ROOT geometry manager. More... | |
TGeoNavigator * | fNavigator = nullptr |
Our own ROOT geometry navigator. More... | |
std::set< std::string > const & | fMaterials |
Names of materials to select. More... | |
Filters a point according to the material at that point.
Definition at line 140 of file LightSource_module.cc.
evgen::LightSource::MaterialPointFilter::MaterialPointFilter | ( | geo::GeometryCore const & | geom, |
std::set< std::string > const & | materialNames | ||
) |
Constructor: sets up the filter configuration.
Definition at line 583 of file LightSource_module.cc.
evgen::LightSource::MaterialPointFilter::~MaterialPointFilter | ( | ) |
Definition at line 594 of file LightSource_module.cc.
bool evgen::LightSource::MaterialPointFilter::accept | ( | geo::Point_t const & | point | ) |
Returns whether the specified point
can be accepted.
Definition at line 610 of file LightSource_module.cc.
|
private |
Returns a pointer to the material with the specified name
.
|
private |
Returns a pointer to the material of the volume at specified point
.
Definition at line 602 of file LightSource_module.cc.
|
inline |
Definition at line 152 of file LightSource_module.cc.
|
private |
ROOT geometry manager.
Definition at line 159 of file LightSource_module.cc.
|
private |
Names of materials to select.
Definition at line 163 of file LightSource_module.cc.
|
private |
Our own ROOT geometry navigator.
Definition at line 160 of file LightSource_module.cc.