|
ATLAS Offline Software
|
Go to the documentation of this file.
26 #include "G4StepPoint.hh"
27 #include "G4VProcess.hh"
28 #include "G4TouchableHistory.hh"
29 #include "G4VPhysicalVolume.hh"
30 #include "G4LogicalVolume.hh"
32 using std::string;
using std::vector;
33 using std::pair;
using std::make_pair;
37 m_track(0), m_preHistory(0), m_preDepth(0), m_stepNo(0)
53 int thPVRep = (
int)(thPV->GetCopyNo());
54 pair<G4VPhysicalVolume*, int> thPVID = make_pair(thPV, thPVRep);
73 else if (
name ==
"MUONQ02::MUONQ02")
cut = MUONQ02+1;
74 else {
ATH_MSG_INFO(
"Level 1 volume not found, output default depth"); }
92 msg() << MSG::INFO <<
"SetDepthCutDetail path parsed as ";
94 string::size_type slash = 0;
95 string::size_type
start =
path.find_first_not_of(
'/' );
96 while ( slash != string::npos ) {
100 msg() << MSG::INFO <<
"/"<<volumes.back();
107 vector<string>::const_iterator v_nav = volumes.begin();
140 advance(
m_h_nav, -abs(levels));
168 std::string name_string =
stringify( pds->GetProcessName() );
169 const char*
name = name_string.c_str();
170 va_start(procs, pr1);
172 if (
name == va_arg(procs,
const char*) ) {
void SetDepthCutSimple(const int, const int, const int, const int)
path
python interpreter configuration --------------------------------------—
int m_stepNo
depth of volume tree, step number
const G4TouchableHistory * m_preHistory
touchable history containing current volume's history
G4StepPoint * m_preStepPoint
volume/process/etc.
std::string stringify(T obj)
cut
This script demonstrates how to call a C++ class from Python Also how to use PyROOT is shown.
Class to provide easy MsgStream access and capabilities.
G4StepPoint * m_postStepPoint
volume/process/etc.
const unsigned int CALO
all cuts in calorimeter (including isolation)
MsgStream & msg() const
The standard message stream.
VolNav m_h_end
specifies cut termination in history
void SetDepthCutDetail(const char *)
bool KillProcesses(const int, const char *,...)
std::vector< VolID > VolTree
bool Descend(int levels=1)
VolumeTreeNavigator(const G4Step *)
VolTree m_history
full volume history, cast as const after preparation
bool Ascend(int levels=1)
VolNav m_h_nav
VolTree iterator with no access below cut.
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
G4Track * m_track
current track