GENIEGenerator
|
Object to be filled with the neutrino path-segments representing geometry volume steps (generally boundary-to-boundary) along with geometry materials. Good for a single starting position and travelling along the direction of the neutrino 4-momentum. More...
#include <PathSegmentList.h>
Public Types | |
typedef std::list< PathSegment > | PathSegmentV_t |
typedef PathSegmentV_t::const_iterator | PathSegVCItr_t |
typedef std::map< const TGeoMaterial *, Double_t > | MaterialMap_t |
typedef MaterialMap_t::const_iterator | MaterialMapCItr_t |
Public Member Functions | |
PathSegmentList () | |
PathSegmentList (const PathSegmentList &plist) | |
~PathSegmentList () | |
void | SetDoCrossCheck (bool doit=true) |
void | SetPrintVerbose (bool doit=true) |
void | SetAllToZero (void) |
void | SetStartInfo (const TVector3 &pos=TVector3(0, 0, 1e37), const TVector3 &dir=TVector3(0, 0, 0)) |
bool | IsSameStart (const TVector3 &pos, const TVector3 &dir) const |
void | AddSegment (const PathSegment &ps) |
const TVector3 & | GetDirection () const |
const TVector3 & | GetStartPos () const |
const PathSegmentV_t & | GetPathSegmentV (void) const |
size_t | size (void) const |
void | FillMatStepSum (void) |
const MaterialMap_t & | GetMatStepSumMap (void) const |
void | CrossCheck (double &mxddist, double &mxdstep) const |
void | Copy (const PathSegmentList &plist) |
PathSegmentList & | operator= (const PathSegmentList &list) |
void | Print (ostream &stream) const |
Protected Attributes | |
TVector3 | fStartPos |
Record, for future comparison, the path taken. More... | |
TVector3 | fDirection |
direction (in top vol coords) More... | |
PathSegmentV_t | fSegmentList |
Actual list of segments. More... | |
MaterialMap_t | fMatStepSum |
Segment list re-evaluated by material for fast lookup of path lengths. More... | |
bool | fDoCrossCheck |
bool | fPrintVerbose |
Friends | |
ostream & | operator<< (ostream &stream, const PathSegmentList &list) |
Object to be filled with the neutrino path-segments representing geometry volume steps (generally boundary-to-boundary) along with geometry materials. Good for a single starting position and travelling along the direction of the neutrino 4-momentum.
Definition at line 123 of file PathSegmentList.h.
typedef std::map<const TGeoMaterial*,Double_t> genie::geometry::PathSegmentList::MaterialMap_t |
Definition at line 147 of file PathSegmentList.h.
typedef MaterialMap_t::const_iterator genie::geometry::PathSegmentList::MaterialMapCItr_t |
Definition at line 148 of file PathSegmentList.h.
typedef std::list<PathSegment> genie::geometry::PathSegmentList::PathSegmentV_t |
Definition at line 141 of file PathSegmentList.h.
typedef PathSegmentV_t::const_iterator genie::geometry::PathSegmentList::PathSegVCItr_t |
Definition at line 142 of file PathSegmentList.h.
PathSegmentList::PathSegmentList | ( | void | ) |
Definition at line 188 of file PathSegmentList.cxx.
PathSegmentList::PathSegmentList | ( | const PathSegmentList & | plist | ) |
Definition at line 194 of file PathSegmentList.cxx.
References Copy().
PathSegmentList::~PathSegmentList | ( | ) |
Definition at line 199 of file PathSegmentList.cxx.
|
inline |
Definition at line 136 of file PathSegmentList.h.
References fSegmentList.
Referenced by genie::geometry::GeomVolSelectorI::GenerateTrimmedList(), and genie::geometry::ROOTGeomAnalyzer::SwimOnce().
void PathSegmentList::Copy | ( | const PathSegmentList & | plist | ) |
Definition at line 245 of file PathSegmentList.cxx.
References fDirection, fDoCrossCheck, fMatStepSum, fPrintVerbose, fSegmentList, and fStartPos.
Referenced by operator=(), and PathSegmentList().
void PathSegmentList::CrossCheck | ( | double & | mxddist, |
double & | mxdstep | ||
) | const |
Definition at line 266 of file PathSegmentList.cxx.
References genie::geometry::PathSegment::DoCrossCheck(), fSegmentList, fStartPos, and genie::units::ps.
Referenced by genie::geometry::ROOTGeomAnalyzer::GenerateVertex(), and genie::geometry::ROOTGeomAnalyzer::SwimOnce().
void PathSegmentList::FillMatStepSum | ( | void | ) |
Definition at line 229 of file PathSegmentList.cxx.
References genie::geometry::PathSegment::fMaterial, fMatStepSum, fSegmentList, genie::geometry::PathSegment::GetSummedStepRange(), and genie::units::ps.
Referenced by genie::geometry::ROOTGeomAnalyzer::SwimOnce().
|
inline |
Definition at line 138 of file PathSegmentList.h.
References fDirection.
Referenced by genie::geometry::GeomVolSelectorRockBox::BeginPSList(), genie::geometry::GeomVolSelectorFiducial::BeginPSList(), genie::geometry::GeomVolSelectorI::GenerateTrimmedList(), and genie::geometry::GeomVolSelectorRockBox::MakeRockBox().
|
inline |
Definition at line 151 of file PathSegmentList.h.
References fMatStepSum.
Referenced by genie::geometry::ROOTGeomAnalyzer::ComputePathLengthPDG(), genie::geometry::ROOTGeomAnalyzer::GenerateVertex(), and Print().
|
inline |
Definition at line 144 of file PathSegmentList.h.
References fSegmentList.
Referenced by genie::geometry::ROOTGeomAnalyzer::ComputeMatLengths(), genie::geometry::GeomVolSelectorI::GenerateTrimmedList(), and genie::geometry::ROOTGeomAnalyzer::GenerateVertex().
|
inline |
Definition at line 139 of file PathSegmentList.h.
References fStartPos.
Referenced by genie::geometry::GeomVolSelectorRockBox::BeginPSList(), genie::geometry::GeomVolSelectorFiducial::BeginPSList(), and genie::geometry::GeomVolSelectorI::GenerateTrimmedList().
bool PathSegmentList::IsSameStart | ( | const TVector3 & | pos, |
const TVector3 & | dir | ||
) | const |
Definition at line 223 of file PathSegmentList.cxx.
References fDirection, and fStartPos.
Referenced by genie::geometry::ROOTGeomAnalyzer::SwimOnce().
PathSegmentList & PathSegmentList::operator= | ( | const PathSegmentList & | list | ) |
Definition at line 442 of file PathSegmentList.cxx.
References Copy().
void PathSegmentList::Print | ( | ostream & | stream | ) | const |
Definition at line 286 of file PathSegmentList.cxx.
References fDirection, fDoCrossCheck, fPrintVerbose, fSegmentList, fStartPos, GetMatStepSumMap(), genie::units::ps, and genie::pathsegutils::Vec3AsString().
Referenced by genie::geometry::operator<<().
void PathSegmentList::SetAllToZero | ( | void | ) |
Definition at line 205 of file PathSegmentList.cxx.
References fDirection, fMatStepSum, fSegmentList, fStartPos, LOG, and pDEBUG.
Referenced by genie::geometry::ROOTGeomAnalyzer::SwimOnce().
|
inline |
Definition at line 130 of file PathSegmentList.h.
References fDoCrossCheck.
Referenced by genie::geometry::ROOTGeomAnalyzer::GenerateVertex(), and genie::geometry::ROOTGeomAnalyzer::SwimOnce().
|
inline |
Definition at line 131 of file PathSegmentList.h.
References fPrintVerbose.
Referenced by genie::geometry::ROOTGeomAnalyzer::SwimOnce().
void PathSegmentList::SetStartInfo | ( | const TVector3 & | pos = TVector3(0,0,1e37) , |
const TVector3 & | dir = TVector3(0,0,0) |
||
) |
Definition at line 216 of file PathSegmentList.cxx.
References dir, fDirection, and fStartPos.
Referenced by genie::geometry::GeomVolSelectorI::GenerateTrimmedList(), and genie::geometry::ROOTGeomAnalyzer::SwimOnce().
|
inline |
Definition at line 145 of file PathSegmentList.h.
References fSegmentList.
Referenced by genie::geometry::ROOTGeomAnalyzer::SwimOnce().
|
friend |
Definition at line 51 of file PathSegmentList.cxx.
|
protected |
direction (in top vol coords)
Definition at line 170 of file PathSegmentList.h.
Referenced by Copy(), GetDirection(), IsSameStart(), Print(), SetAllToZero(), and SetStartInfo().
|
protected |
Definition at line 178 of file PathSegmentList.h.
Referenced by Copy(), Print(), and SetDoCrossCheck().
|
protected |
Segment list re-evaluated by material for fast lookup of path lengths.
Definition at line 176 of file PathSegmentList.h.
Referenced by Copy(), FillMatStepSum(), GetMatStepSumMap(), and SetAllToZero().
|
protected |
Definition at line 179 of file PathSegmentList.h.
Referenced by Copy(), Print(), and SetPrintVerbose().
|
protected |
Actual list of segments.
Definition at line 173 of file PathSegmentList.h.
Referenced by AddSegment(), Copy(), CrossCheck(), FillMatStepSum(), GetPathSegmentV(), Print(), SetAllToZero(), and size().
|
protected |
Record, for future comparison, the path taken.
starting position (in top vol coords)
Definition at line 169 of file PathSegmentList.h.
Referenced by Copy(), CrossCheck(), GetStartPos(), IsSameStart(), Print(), SetAllToZero(), and SetStartInfo().