93 G4cerr <<
"Illegal application state - Scan() ignored." <<
G4endl;
172 G4cout <<
" Theta(deg) Phi(deg) Length(mm) x0 lambda0" <<
G4endl;
180 std::cos(theta)*std::sin(phi),
190 << std::setw(11) << theta/
deg <<
" "
191 << std::setw(11) << phi/
deg <<
" "
192 << std::setw(11) << length/
mm <<
" "
193 << std::setw(11) << x0 <<
" "
194 << std::setw(11) << lambda <<
G4endl;
195 aveLength += length/
mm;
202 G4cout <<
" ave. for theta = " << std::setw(11) << theta/
deg <<
" : "
203 << std::setw(11) << aveLength/nPhi <<
" "
204 << std::setw(11) << aveX0/nPhi <<
" "
205 << std::setw(11) << aveLambda/nPhi <<
G4endl;
224 G4cerr <<
"Region <" << val <<
"> not found. Command ignored." <<
G4endl;
void RestoreUserActions()
G4bool SetNewState(G4ApplicationState requestedState)
void Initialize(G4bool rSens, G4Region *reg)
CLHEP::Hep3Vector G4ThreeVector
G4UserTrackingAction * theMatScannerTrackingAction
G4UserEventAction * theMatScannerEventAction
static constexpr double mm
G4double GetTotalStepLength() const
void ProcessOneEvent(G4Event *anEvent)
G4bool SetRegionName(const G4String &val)
G4UserTrackingAction * theUserTrackingAction
G4Navigator * GetNavigatorForTracking() const
G4MSSteppingAction * theMatScannerSteppingAction
G4ThreeVector eyeDirection
void SetUserAction(G4UserEventAction *userAction)
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const
G4double GetLambda0() const
G4UserSteppingAction * theUserSteppingAction
static G4RunManagerKernel * GetRunManagerKernel()
static constexpr double deg
static G4SDManager * GetSDMpointerIfExist()
static G4GeometryManager * GetInstance()
static G4EventManager * GetEventManager()
G4UserStackingAction * theUserStackingAction
G4EventManager * theEventManager
G4UserEventAction * GetUserEventAction()
G4RayShooter * theRayShooter
void OpenGeometry(G4VPhysicalVolume *vol=0)
G4UserStackingAction * theMatScannerStackingAction
G4ThreeVector eyePosition
G4GLOB_DLL std::ostream G4cerr
G4UserSteppingAction * GetUserSteppingAction()
static G4TransportationManager * GetTransportationManager()
void Activate(G4String dName, G4bool activeFlag)
G4UserStackingAction * GetUserStackingAction()
static G4RegionStore * GetInstance()
G4ApplicationState GetCurrentState() const
G4bool CloseGeometry(G4bool pOptimise=true, G4bool verbose=false, G4VPhysicalVolume *vol=0)
G4GLOB_DLL std::ostream G4cout
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=0, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
void Shoot(G4Event *evt, G4ThreeVector vtx, G4ThreeVector direc)
G4UserEventAction * theUserEventAction
static G4StateManager * GetStateManager()
G4MatScanMessenger * theMessenger
G4UserTrackingAction * GetUserTrackingAction()