Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4MaterialScanner.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27//
28//
29
30#ifndef G4MaterialScanner_H
31#define G4MaterialScanner_H 1
32
33// class description:
34//
35// G4MaterialScanner
36//
37
38#include "G4ThreeVector.hh"
39#include "globals.hh"
40
41class G4Event;
42class G4EventManager;
49class G4RayShooter;
50class G4Region;
51
53{
54 public: // with description
56
57 public:
59
60 public: // with description
61 void Scan();
62 // The main entry point which triggers ray tracing.
63 // This method is available only if Geant4 is at Idle state.
64
65 private:
66 void DoScan();
67 // Event loop
68 void StoreUserActions();
69 void RestoreUserActions();
70 // Store and restore user action classes if defined
71
72 private:
73 G4RayShooter* theRayShooter;
74 G4MatScanMessenger* theMessenger;
75
76 G4EventManager* theEventManager;
77
78 G4UserEventAction* theUserEventAction;
79 G4UserStackingAction* theUserStackingAction;
80 G4UserTrackingAction* theUserTrackingAction;
81 G4UserSteppingAction* theUserSteppingAction;
82
83 G4UserEventAction* theMatScannerEventAction;
84 G4UserStackingAction* theMatScannerStackingAction;
85 G4UserTrackingAction* theMatScannerTrackingAction;
86 G4MSSteppingAction* theMatScannerSteppingAction;
87
88 G4ThreeVector eyePosition;
89 G4int nTheta;
90 G4double thetaMin;
91 G4double thetaSpan;
92 G4int nPhi;
93 G4double phiMin;
94 G4double phiSpan;
95
96 G4ThreeVector eyeDirection;
97
98 G4bool regionSensitive;
99 G4String regionName;
100 G4Region* theRegion;
101
102 public:
103 inline void SetEyePosition(const G4ThreeVector& val) { eyePosition = val; }
104 inline G4ThreeVector GetEyePosition() const { return eyePosition; }
105 inline void SetNTheta(G4int val) { nTheta = val; }
106 inline G4int GetNTheta() const { return nTheta; }
107 inline void SetThetaMin(G4double val) { thetaMin = val; }
108 inline G4double GetThetaMin() const { return thetaMin; }
109 inline void SetThetaSpan(G4double val) { thetaSpan = val; }
110 inline G4double GetThetaSpan() const { return thetaSpan; }
111 inline void SetNPhi(G4int val) { nPhi = val; }
112 inline G4int GetNPhi() const { return nPhi; }
113 inline void SetPhiMin(G4double val) { phiMin = val; }
114 inline G4double GetPhiMin() const { return phiMin; }
115 inline void SetPhiSpan(G4double val) { phiSpan = val; }
116 inline G4double GetPhiSpan() const { return phiSpan; }
117 inline void SetRegionSensitive(G4bool val = true) { regionSensitive = val; }
118 inline G4bool GetRegionSensitive() const { return regionSensitive; }
119 G4bool SetRegionName(const G4String& val);
120 inline G4String GetRegionName() const { return regionName; }
121};
122
123#endif
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
G4String GetRegionName() const
void SetNPhi(G4int val)
G4bool GetRegionSensitive() const
void SetThetaSpan(G4double val)
G4bool SetRegionName(const G4String &val)
G4double GetThetaMin() const
void SetRegionSensitive(G4bool val=true)
void SetThetaMin(G4double val)
G4double GetThetaSpan() const
void SetPhiMin(G4double val)
void SetEyePosition(const G4ThreeVector &val)
void SetPhiSpan(G4double val)
G4ThreeVector GetEyePosition() const
G4double GetPhiMin() const
G4int GetNTheta() const
G4double GetPhiSpan() const
void SetNTheta(G4int val)