source: trunk/source/run/include/G4MaterialScanner.hh @ 1202

Last change on this file since 1202 was 1058, checked in by garnier, 15 years ago

file release beta

File size: 4.5 KB
Line 
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// $Id: G4MaterialScanner.hh,v 1.2 2006/06/29 21:13:14 gunter Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30//
31
32
33#ifndef G4MaterialScanner_H
34#define G4MaterialScanner_H 1
35
36// class description:
37//
38// G4MaterialScanner
39//
40
41#include "globals.hh"
42#include "G4ThreeVector.hh"
43
44class G4Event;
45class G4EventManager;
46class G4UserEventAction;
47class G4UserStackingAction;
48class G4UserTrackingAction;
49class G4UserSteppingAction;
50class G4MSSteppingAction;
51class G4MatScanMessenger;
52class G4RayShooter;
53class G4Region;
54
55class G4MaterialScanner
56{
57  public: // with description
58    G4MaterialScanner();
59
60  public:
61    ~G4MaterialScanner();
62
63  public: // with description
64    void Scan();
65    // The main entry point which triggers ray tracing.
66    // This method is available only if Geant4 is at Idle state.
67
68  private:
69    void DoScan();
70    // Event loop
71    void StoreUserActions();
72    void RestoreUserActions();
73    // Store and restore user action classes if defined
74
75  private:
76    G4RayShooter * theRayShooter;
77    G4MatScanMessenger * theMessenger;
78
79    G4EventManager * theEventManager;
80
81    G4UserEventAction * theUserEventAction;
82    G4UserStackingAction * theUserStackingAction;
83    G4UserTrackingAction * theUserTrackingAction;
84    G4UserSteppingAction * theUserSteppingAction;
85
86    G4UserEventAction * theMatScannerEventAction;
87    G4UserStackingAction * theMatScannerStackingAction;
88    G4UserTrackingAction * theMatScannerTrackingAction;
89    G4MSSteppingAction * theMatScannerSteppingAction;
90
91    G4ThreeVector eyePosition;
92    G4int nTheta;
93    G4double thetaMin;
94    G4double thetaSpan;
95    G4int nPhi;
96    G4double phiMin;
97    G4double phiSpan;
98
99    G4ThreeVector eyeDirection;
100
101    G4bool regionSensitive;
102    G4String regionName;
103    G4Region* theRegion;
104
105  public:
106    inline void SetEyePosition(const G4ThreeVector& val) { eyePosition = val; }
107    inline G4ThreeVector GetEyePosition() const { return eyePosition; }
108    inline void SetNTheta(G4int val) { nTheta = val; }
109    inline G4int GetNTheta() const { return nTheta; }
110    inline void SetThetaMin(G4double val) { thetaMin = val; }
111    inline G4double GetThetaMin() const { return thetaMin; }
112    inline void SetThetaSpan(G4double val) { thetaSpan = val; }
113    inline G4double GetThetaSpan() const { return thetaSpan; }
114    inline void SetNPhi(G4int val) { nPhi = val; }
115    inline G4int GetNPhi() const { return nPhi; }
116    inline void SetPhiMin(G4double val) { phiMin = val; }
117    inline G4double GetPhiMin() const { return phiMin; }
118    inline void SetPhiSpan(G4double val) { phiSpan = val; }
119    inline G4double GetPhiSpan() const { return phiSpan; }
120    inline void SetRegionSensitive(G4bool val=true) { regionSensitive = val; }
121    inline G4bool GetRegionSensitive() const { return regionSensitive; }
122    G4bool SetRegionName(const G4String& val);
123    inline G4String GetRegionName() const { return regionName; }
124
125};
126
127#endif
Note: See TracBrowser for help on using the repository browser.