Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4NavigationLevel.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// G4NavigationLevel
27//
28// Class description:
29//
30// Maintains one level of the geometrical hierarchy.
31// A utility class for use by G4NavigationHistory.
32
33// Author: John Apostolakis (CERN), 30.09.1997 - Initial version
34// Services derived from requirements of touchables & G4NavigatorHistory
35// ----------------------------------------------------------------------
36#ifndef G4NAVIGATIONLEVEL_HH
37#define G4NAVIGATIONLEVEL_HH
38
39#include "G4Types.hh"
40
41#include "G4AffineTransform.hh"
42#include "G4VPhysicalVolume.hh"
43
45#include "G4Allocator.hh"
46
47#include "geomwdefs.hh"
48
49/**
50 * @brief G4NavigationLevel is a utility class for use by G4NavigationHistory.
51 * It maintains one level of the geometrical hierarchy.
52 */
53
55{
56 public:
57
58 /**
59 * Constructor for G4NavigationLevel.
60 * @param[in] newPtrPhysVol Pointer to the new physical volume.
61 * @param[in] newT The associated affine transformation.
62 * @param[in] newVolTp The volume type.
63 * @param[in] newRepNo The replica number.
64 */
66 const G4AffineTransform& newT,
67 EVolume newVolTp,
68 G4int newRepNo = -1);
69
70 /**
71 * Alternative Constructor for G4NavigationLevel, as the previous
72 * constructor, but instead of giving the new transformation, give
73 * the affine transformation to the level above and the current level's
74 * transformation relative to that.
75 * @param[in] newPtrPhysVol Pointer to the new physical volume.
76 * @param[in] levelAbove The affine transformation to the level above.
77 * @param[in] relativeCurrent The affine transformation at current level.
78 * @param[in] newVolTp The volume type.
79 * @param[in] newRepNo The replica number.
80 */
82 const G4AffineTransform& levelAbove,
83 const G4AffineTransform& relativeCurrent,
84 EVolume newVolTp,
85 G4int newRepNo = -1);
86
87 /**
88 * Default Constructor & Destructor.
89 */
92
93 /**
94 * Copy constructor and assignment operator.
95 */
98
99 /**
100 * Returns a pointer to the physical volume at the current level.
101 */
103
104 /**
105 * Methods to return the associated affine transformation.
106 */
107 inline const G4AffineTransform* GetTransformPtr() const ; // New
108 inline const G4AffineTransform& GetTransform() const ; // Old
109 inline const G4AffineTransform* GetPtrTransform() const;
110
111 /**
112 * Returns the volume type.
113 */
114 inline EVolume GetVolumeType() const ;
115
116 /**
117 * Returns the replica number.
118 */
119 inline G4int GetReplicaNo() const ;
120
121 /**
122 * New/delete operator overrides for use by "G4Allocator".
123 */
124 inline void* operator new(size_t);
125 inline void operator delete(void* aLevel);
126
127 /**
128 * New/delete operator overrides for use with STL.
129 */
130 inline void* operator new(size_t, void*);
131 inline void operator delete(void* ptr, void*); // Not (directly) using
132 // allocator.
133 private:
134
135 G4NavigationLevelRep* fLevelRep;
136};
137
138#include "G4NavigationLevel.icc"
139
140#endif
int G4int
Definition G4Types.hh:85
G4AffineTransform is a class for geometric affine transformations. It supports efficient arbitrary ro...
G4NavigationLevelRep is a data representation class, used to hold the data for a single level of the ...
const G4AffineTransform & GetTransform() const
G4NavigationLevel(G4VPhysicalVolume *newPtrPhysVol, const G4AffineTransform &newT, EVolume newVolTp, G4int newRepNo=-1)
G4VPhysicalVolume * GetPhysicalVolume() const
EVolume GetVolumeType() const
G4NavigationLevel & operator=(const G4NavigationLevel &)
const G4AffineTransform * GetTransformPtr() const
const G4AffineTransform * GetPtrTransform() const
G4int GetReplicaNo() const
G4VPhysicalVolume is an abstract base class for the representation of a positioned volume....
EVolume
Definition geomdefs.hh:83