Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -5,16 +5,16 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Shoot.hh,v 1.1.8.1 1999/12/07 20:47:55 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: Shoot.hh,v 1.3 2000/02/29 09:45:59 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef SHOOT_HH
|
||||
#define SHOOT_HH
|
||||
|
||||
#include "G4Timer.hh"
|
||||
#include "G4VPhysicalVolume.hh"
|
||||
#include "G4Navigator.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4Timer.hh"
|
||||
#include "G4ios.hh"
|
||||
|
||||
void Shoot(const G4int numShoot,
|
||||
@@ -48,7 +48,7 @@ void Shoot(const G4int numShoot,
|
||||
};
|
||||
}
|
||||
timer.Stop();
|
||||
G4cout << "Shots = " << numShoot << " " << timer << endl;
|
||||
G4cout << "Shots = " << numShoot << " " << timer << G4endl;
|
||||
}
|
||||
|
||||
void ShootVerbose(G4VPhysicalVolume *pTopNode,
|
||||
@@ -59,20 +59,19 @@ void ShootVerbose(G4VPhysicalVolume *pTopNode,
|
||||
G4double safety,Step;
|
||||
G4Navigator myNav;
|
||||
G4ThreeVector partLoc;
|
||||
G4VPhysicalVolume *located;
|
||||
G4VPhysicalVolume *located=0;
|
||||
|
||||
myNav.SetWorldVolume(pTopNode);
|
||||
|
||||
partLoc=pSource;
|
||||
// located=myNav.LocateGlobalPointAndSetup(partLoc,false);
|
||||
located=myNav.LocateGlobalPointAndSetup(partLoc,true);
|
||||
located=myNav.LocateGlobalPointAndSetup(partLoc);
|
||||
while (located)
|
||||
{
|
||||
Step=myNav.ComputeStep(partLoc,pVec,physStep,safety);
|
||||
G4cout << "Physical Location=" << located->GetName()
|
||||
<< " #" << located->GetCopyNo() << endl
|
||||
<< " #" << located->GetCopyNo() << G4endl
|
||||
<< " Step=" << Step << " Safety=" << safety
|
||||
<< " ---->" << endl;
|
||||
<< " ---->" << G4endl;
|
||||
|
||||
partLoc+=Step*pVec;
|
||||
myNav.SetGeometricallyLimitedStep();
|
||||
|
||||
Reference in New Issue
Block a user