|
GENIEGenerator
|
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".
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.
Referenced by genie::geometry::GeomVolSelectorFiducial::BeginPSList().
|
virtual |
Implements genie::geometry::GeomVolSelectorI.
Reimplemented in genie::geometry::GeomVolSelectorFiducial, and genie::geometry::GeomVolSelectorRockBox.
Definition at line 66 of file GeomVolSelectorBasic.cxx.
Referenced by genie::geometry::GeomVolSelectorFiducial::EndPSList().
|
protected |
Definition at line 109 of file GeomVolSelectorBasic.cxx.
References genie::utils::str::Split().
Referenced by SetMaterialSelection(), SetMediumSelection(), SetPathSelection(), and SetVolumeSelection().
|
protected |
| void GeomVolSelectorBasic::SetMaterialSelection | ( | string | matstr | ) |
Definition at line 44 of file GeomVolSelectorBasic.cxx.
References fForbiddenMat, fRequiredMat, and ParseSelection().
| void GeomVolSelectorBasic::SetMediumSelection | ( | string | medstr | ) |
Definition at line 40 of file GeomVolSelectorBasic.cxx.
References fForbiddenMed, fRequiredMed, and ParseSelection().
| void GeomVolSelectorBasic::SetPathSelection | ( | string | pathstr | ) |
Definition at line 48 of file GeomVolSelectorBasic.cxx.
References fForbiddenPath, fRequiredPath, LOG, ParseSelection(), pFATAL, and genie::geometry::GeomVolSelectorI::SetNeedPath().
| 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.
References fForbiddenVol, fRequiredVol, and ParseSelection().
|
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.
References fForbiddenMat, fForbiddenMed, fForbiddenPath, fForbiddenVol, genie::geometry::PathSegment::fMaterial, genie::geometry::PathSegment::fMedium, genie::geometry::PathSegment::fPathString, fRequiredMat, fRequiredMed, fRequiredPath, fRequiredVol, genie::geometry::PathSegment::fStepRangeSet, genie::geometry::PathSegment::fVolume, and RejectString().
Referenced by genie::geometry::GeomVolSelectorFiducial::TrimSegment().
|
protected |
Definition at line 73 of file GeomVolSelectorBasic.h.
Referenced by SetMaterialSelection(), and TrimSegment().
|
protected |
Definition at line 72 of file GeomVolSelectorBasic.h.
Referenced by SetMediumSelection(), and TrimSegment().
|
protected |
Definition at line 74 of file GeomVolSelectorBasic.h.
Referenced by SetPathSelection(), and TrimSegment().
|
protected |
Definition at line 71 of file GeomVolSelectorBasic.h.
Referenced by SetVolumeSelection(), and TrimSegment().
|
protected |
Definition at line 67 of file GeomVolSelectorBasic.h.
Referenced by SetMaterialSelection(), and TrimSegment().
|
protected |
Definition at line 66 of file GeomVolSelectorBasic.h.
Referenced by SetMediumSelection(), and TrimSegment().
|
protected |
Definition at line 68 of file GeomVolSelectorBasic.h.
Referenced by SetPathSelection(), and TrimSegment().
|
protected |
Definition at line 65 of file GeomVolSelectorBasic.h.
Referenced by SetVolumeSelection(), and TrimSegment().
1.8.5