Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4NavigationLevelRep.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// $Id$
28//
29// class G4NavigationLevelRep
30//
31// Class description:
32//
33// A data representation class, used to hold the data for a single level
34// of the Navigation history tree.
35//
36// This is the body of a handle/body pair of classes, that implement
37// reference counting for NavigationLevels.
38// The corresponding handle class is G4NavigationLevel
39
40// History:
41//
42// - 1 October 1997, J.Apostolakis: initial version.
43// ----------------------------------------------------------------------
44#ifndef G4NAVIGATIONLEVELREP_HH
45#define G4NAVIGATIONLEVELREP_HH
46
47#include "G4Types.hh"
48
49#include "G4AffineTransform.hh"
50#include "G4VPhysicalVolume.hh"
51#include "G4Allocator.hh"
52
54{
55
56 public: // with description
57
59 const G4AffineTransform& newT,
60 EVolume newVolTp,
61 G4int newRepNo= -1 );
62
64 const G4AffineTransform& levelAbove,
65 const G4AffineTransform& relativeCurrent,
66 EVolume newVolTp,
67 G4int newRepNo= -1 );
68 // As the previous constructor, but instead of giving Transform, give
69 // the AffineTransform to the level above and the current level's
70 // Transform relative to that.
71
74
76
78
80
81 inline const G4AffineTransform* GetTransformPtr() const ; // New
82 inline const G4AffineTransform& GetTransform() const ; // Old
83
84 inline EVolume GetVolumeType() const ;
85 inline G4int GetReplicaNo() const ;
86
87 inline void AddAReference();
89 // Take care of the reference counts.
90
91 inline void *operator new(size_t);
92 // Override "new" to use "G4Allocator".
93 inline void operator delete(void *aTrack);
94 // Override "delete" to use "G4Allocator".
95
96 private:
97
98 G4AffineTransform sTransform;
99 // Compounded global->local transformation (takes a point in the
100 // global reference system to the system of the volume at this level)
101
102 G4VPhysicalVolume* sPhysicalVolumePtr;
103 // Physical volume ptrs, for this level's volume
104
105 G4int sReplicaNo;
106 EVolume sVolumeType;
107 // Volume `type'
108
109 G4int fCountRef;
110
111};
112
113#include "G4NavigationLevelRep.icc"
114
115#endif
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
G4NavigationLevelRep & operator=(const G4NavigationLevelRep &right)
EVolume GetVolumeType() const
G4VPhysicalVolume * GetPhysicalVolume()
const G4AffineTransform & GetTransform() const
const G4AffineTransform * GetTransformPtr() const
G4int GetReplicaNo() const
EVolume
Definition: geomdefs.hh:68