GENIE Interface for user-defined volume selector functors This basic version allows configurations that depend on PathSegment elements' material/media/volume and/or "path". More...
#include <GeomVolSelectorBasic.h>
Public Member Functions | |
GeomVolSelectorBasic () | |
virtual | ~GeomVolSelectorBasic () |
void | SetVolumeSelection (string volstr) |
void | SetMediumSelection (string medstr) |
void | SetMaterialSelection (string matstr) |
void | SetPathSelection (string pathstr) |
void | TrimSegment (PathSegment &segment) const |
void | BeginPSList (const PathSegmentList *untrimmed) const |
void | EndPSList () const |
Public Member Functions inherited from genie::geometry::GeomVolSelectorI | |
virtual | ~GeomVolSelectorI () |
virtual PathSegmentList * | GenerateTrimmedList (const PathSegmentList *untrimmed) const |
void | SetCurrentRay (const TLorentzVector &x4, const TLorentzVector &p4) |
configure for individual neutrino ray More... | |
void | SetSI2Local (double scale) |
set scale factor for SI to "raydist" units of PathSegmentList More... | |
void | SetRemoveEntries (bool rmset) |
bool | GetRemoveEntries () |
void | SetNeedPath () |
bool | GetNeedPath () const |
allow toggle on only More... | |
std::string | GetName () const |
Protected Member Functions | |
void | ParseSelection (const string &str, vector< string > &required, vector< string > &forbidden) |
bool | RejectString (const string &str, const vector< string > &required, const vector< string > &forbidden) const |
Protected Member Functions inherited from genie::geometry::GeomVolSelectorI | |
GeomVolSelectorI () | |
GeomVolSelectorI (std::string name) | |
Protected Attributes | |
vector< string > | fRequiredVol |
vector< string > | fRequiredMed |
vector< string > | fRequiredMat |
vector< string > | fRequiredPath |
vector< string > | fForbiddenVol |
vector< string > | fForbiddenMed |
vector< string > | fForbiddenMat |
vector< string > | fForbiddenPath |
Protected Attributes inherited from genie::geometry::GeomVolSelectorI | |
TLorentzVector | fX4 |
current neutrino ray's start position (global) More... | |
TLorentzVector | fP4 |
current neutrino ray's momentum (global) More... | |
double | fScale |
SI->raydist scale factor. More... | |
bool | fRemoveEntries |
whether selector should remove entries or set hi=lo More... | |
bool | fNeedPath |
selector needs PathSegment "path" string More... | |
std::string | fName |
volume selector name More... | |
GENIE Interface for user-defined volume selector functors This basic version allows configurations that depend on PathSegment elements' material/media/volume and/or "path".
December 3, 2008
Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org
Definition at line 35 of file GeomVolSelectorBasic.h.
GeomVolSelectorBasic::GeomVolSelectorBasic | ( | ) |
Definition at line 23 of file GeomVolSelectorBasic.cxx.
|
virtual |
Definition at line 30 of file GeomVolSelectorBasic.cxx.
|
virtual |
Every derived version must also respond to a signal that starts a new path segment list processing and ends it. In general they can simply ignore the signal. If the derived class needs to cache something, make it mutable
Implements genie::geometry::GeomVolSelectorI.
Reimplemented in genie::geometry::GeomVolSelectorFiducial, and genie::geometry::GeomVolSelectorRockBox.
Definition at line 63 of file GeomVolSelectorBasic.cxx.
|
virtual |
Implements genie::geometry::GeomVolSelectorI.
Reimplemented in genie::geometry::GeomVolSelectorFiducial, and genie::geometry::GeomVolSelectorRockBox.
Definition at line 66 of file GeomVolSelectorBasic.cxx.
|
protected |
Definition at line 109 of file GeomVolSelectorBasic.cxx.
|
protected |
Definition at line 126 of file GeomVolSelectorBasic.cxx.
void GeomVolSelectorBasic::SetMaterialSelection | ( | string | matstr | ) |
Definition at line 44 of file GeomVolSelectorBasic.cxx.
void GeomVolSelectorBasic::SetMediumSelection | ( | string | medstr | ) |
Definition at line 40 of file GeomVolSelectorBasic.cxx.
void GeomVolSelectorBasic::SetPathSelection | ( | string | pathstr | ) |
Definition at line 48 of file GeomVolSelectorBasic.cxx.
void GeomVolSelectorBasic::SetVolumeSelection | ( | string | volstr | ) |
Selections are string based, elements are specified as a list of items separated by comma, semicolon or colons. Elements that start with "-" are rejections; elements that start with "+" (or nothing) are required, e.g. "+N276B,-air0"
Definition at line 36 of file GeomVolSelectorBasic.cxx.
|
virtual |
This is the method every derived version must implement To reject a segment outright: segment.fStepRangeSet.clear()
Implements genie::geometry::GeomVolSelectorI.
Reimplemented in genie::geometry::GeomVolSelectorFiducial, and genie::geometry::GeomVolSelectorRockBox.
Definition at line 70 of file GeomVolSelectorBasic.cxx.
Definition at line 73 of file GeomVolSelectorBasic.h.
Definition at line 72 of file GeomVolSelectorBasic.h.
Definition at line 74 of file GeomVolSelectorBasic.h.
Definition at line 71 of file GeomVolSelectorBasic.h.
Definition at line 67 of file GeomVolSelectorBasic.h.
Definition at line 66 of file GeomVolSelectorBasic.h.
Definition at line 68 of file GeomVolSelectorBasic.h.
Definition at line 65 of file GeomVolSelectorBasic.h.