2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5 //VolumeTreeNavigator.icc - Access functions for VolumeTreeNavigator class
8 int VolumeTreeNavigator::GetCurrentDepth()
10 // returns current depth in volume tree
11 return distance( m_history.begin(), m_h_nav );
15 // typedef std::pair<G4VPhysicalVolume*,int> VolID;
16 // typedef std::vector<VolID> VolTree;
17 // typedef VolTree::iterator VolNav;
20 G4VPhysicalVolume* VolumeTreeNavigator::GetVolume(int rel) const
22 // returns volume at relative level rel to h_nav; -:above, +:below
31 int VolumeTreeNavigator::GetCopyNumber(int rel) const
33 // returns copy number of volume at relative level rel to h_nav; -:above, +:below
40 const G4Track* VolumeTreeNavigator::GetTrack() const
46 const G4StepPoint* VolumeTreeNavigator::GetPreStepPoint() const
48 return m_preStepPoint;
52 const G4StepPoint* VolumeTreeNavigator::GetPostStepPoint() const
54 return m_postStepPoint;
58 int VolumeTreeNavigator::GetStepNumber() const
64 const VolTree& VolumeTreeNavigator::GetHistory() const
70 int VolumeTreeNavigator::GetFullDepth() const
72 return (int)m_preDepth;