76 G4cerr <<
"Illegal application state - Scan() ignored." <<
G4endl;
103 if(theSDMan !=
nullptr)
122 if(theSDMan !=
nullptr)
150 navigator->LocateGlobalPointAndSetup(center, 0,
false);
167 <<
" Theta(deg) Phi(deg) Length(mm) x0 lambda0"
178 std::cos(theta) * std::sin(phi), std::sin(theta));
186 G4cout <<
" " << std::setw(11) << theta /
deg <<
" "
187 << std::setw(11) << phi /
deg <<
" " << std::setw(11)
188 << length /
mm <<
" " << std::setw(11) << x0 <<
" "
190 aveLength += length /
mm;
197 G4cout <<
" ave. for theta = " << std::setw(11) << theta /
deg <<
" : "
198 << std::setw(11) << aveLength /
nPhi <<
" " << std::setw(11)
199 << aveX0 /
nPhi <<
" " << std::setw(11) << aveLambda /
nPhi
212 if(aRegion !=
nullptr)
220 G4cerr <<
"Region <" << val <<
"> not found. Command ignored." <<
G4endl;
static constexpr double mm
static constexpr double deg
CLHEP::Hep3Vector G4ThreeVector
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout
G4UserTrackingAction * GetUserTrackingAction()
void SetUserAction(G4UserEventAction *userAction)
G4UserSteppingAction * GetUserSteppingAction()
G4UserStackingAction * GetUserStackingAction()
G4UserEventAction * GetUserEventAction()
static G4EventManager * GetEventManager()
void ProcessOneEvent(G4Event *anEvent)
static G4GeometryManager * GetInstance()
G4bool CloseGeometry(G4bool pOptimise=true, G4bool verbose=false, G4VPhysicalVolume *vol=nullptr)
void OpenGeometry(G4VPhysicalVolume *vol=nullptr)
G4double GetLambda0() const
G4double GetTotalStepLength() const
void Initialize(G4bool rSens, G4Region *reg)
G4MatScanMessenger * theMessenger
G4EventManager * theEventManager
G4UserTrackingAction * theUserTrackingAction
G4bool SetRegionName(const G4String &val)
G4MSSteppingAction * theMatScannerSteppingAction
G4UserStackingAction * theUserStackingAction
G4ThreeVector eyePosition
G4ThreeVector eyeDirection
G4UserStackingAction * theMatScannerStackingAction
G4UserTrackingAction * theMatScannerTrackingAction
G4RayShooter * theRayShooter
void RestoreUserActions()
G4UserSteppingAction * theUserSteppingAction
G4UserEventAction * theMatScannerEventAction
G4UserEventAction * theUserEventAction
void Shoot(G4Event *evt, G4ThreeVector vtx, G4ThreeVector direc)
static G4RegionStore * GetInstance()
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const
static G4RunManagerKernel * GetRunManagerKernel()
void Activate(G4String dName, G4bool activeFlag)
static G4SDManager * GetSDMpointerIfExist()
const G4ApplicationState & GetCurrentState() const
static G4StateManager * GetStateManager()
G4bool SetNewState(const G4ApplicationState &requestedState)
static G4TransportationManager * GetTransportationManager()
G4Navigator * GetNavigatorForTracking() const