Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VExternalPhysicalVolume.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// G4VExternalPhysicalVolume
27//
28// Class description:
29//
30// Base class to represent a physical volume managed by an external
31// sub-navigator.
32//
33// Intial assumptions:
34// * volume type is similar to G4PVPlacement -- not replicated
35// * external navigator may provide 'many'/Boolean operation
36
37// Author: John Apostolakis (CERN), 24.10.2019
38// ----------------------------------------------------------------------
39#ifndef G4VEXTERNALPHYSICSVOLUME_HH
40#define G4VEXTERNALPHYSICSVOLUME_HH
41
42#include "G4VPhysicalVolume.hh"
43#include "G4Transform3D.hh"
44
45/**
46 * @brief G4VExternalPhysicalVolume is a base class to represent a physical
47 * volume managed by an external sub-navigator.
48 */
49
51{
52 public:
53
54 /**
55 * Constructor implementing G4VPhysicalVolume signature.
56 * @param[in] pRot The pointer to the rotation in the mother volume.
57 * @param[in] tlate Traslation vector in the mother volume.
58 * @param[in] pCurrentLogical Pointer to its logical volume.
59 * @param[in] pName The volume name.
60 * @param[in] pMotherLogical Pointer to the logical volume of the mother.
61 */
63 const G4ThreeVector& tlate,
64 G4LogicalVolume* pCurrentLogical,
65 const G4String& pName,
66 G4VPhysicalVolume* pMother );
67
68 /**
69 * Fake default constructor for usage restricted to direct object
70 * persistency for clients requiring preallocation of memory for
71 * persistifiable objects.
72 */
74
75 /**
76 * Copy constructor and assignment operator not allowed.
77 */
80
81 /**
82 * Default Destructor.
83 */
84 ~G4VExternalPhysicalVolume() override = default;
85
86 /**
87 * Verifies if the placed volume is overlapping with existing daughters
88 * or with the mother volume. Provides default resolution for the number
89 * of points to be generated and verified.
90 * A tolerance for the precision of the overlap check can be specified,
91 * by default it is set to maximum precision.
92 * Reports a maximum of overlaps errors according to parameter in input.
93 * @param[in] res The number of points to generate on volume's surface.
94 * @param[in] tol The precision tolerance for the overlap check, below
95 * which to ignore overlaps (deafult is maximim precision).
96 * @param[in] verbose Verbosity mode (default is true).
97 * @param[in] maxErr Maximum of overlaps errors to report (default is 1).
98 * @returns True if an overlap occurs.
99 */
101 G4bool verbose=true, G4int maxErr=1) override = 0;
102
103 /**
104 * Returns the volume type characterisation, i.e. kExternal.
105 */
106 EVolume VolumeType() const final;
107
108 /**
109 * Stub methods, unused for placed volumes.
110 */
111 G4bool IsMany() const final;
112 void SetMany(G4bool overlap);
113 G4bool IsReplicated() const final;
114 G4bool IsParameterised() const final;
117 G4int& nReplicas,
118 G4double& width,
120 G4bool& consuming) const final;
121
122 /**
123 * Used only for specialised repeated volumes. Always false with Id 0.
124 */
125 G4bool IsRegularStructure() const final;
126 G4int GetRegularStructureId() const final;
127
128 private:
129
130 G4bool fMany = false;
131};
132
133#endif
G4ThreadLocal T * G4GeomSplitter< T >::offset
CLHEP::HepRotation G4RotationMatrix
CLHEP::Hep3Vector G4ThreeVector
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
G4LogicalVolume represents a leaf node or unpositioned subtree in the geometry hierarchy....
void GetReplicationData(EAxis &axis, G4int &nReplicas, G4double &width, G4double &offset, G4bool &consuming) const final
~G4VExternalPhysicalVolume() override=default
G4bool CheckOverlaps(G4int res=1000, G4double tol=0., G4bool verbose=true, G4int maxErr=1) override=0
G4VExternalPhysicalVolume(G4RotationMatrix *pRot, const G4ThreeVector &tlate, G4LogicalVolume *pCurrentLogical, const G4String &pName, G4VPhysicalVolume *pMother)
G4VExternalPhysicalVolume(const G4VExternalPhysicalVolume &)=delete
G4VExternalPhysicalVolume & operator=(const G4VExternalPhysicalVolume &)=delete
G4VPVParameterisation * GetParameterisation() const final
G4VPVParameterisation ia an abstract base class for Parameterisation, able to compute the transformat...
G4VPhysicalVolume(G4RotationMatrix *pRot, const G4ThreeVector &tlate, const G4String &pName, G4LogicalVolume *pLogical, G4VPhysicalVolume *pMother)
EAxis
Definition geomdefs.hh:54
EVolume
Definition geomdefs.hh:83
const axis_t axis_to_type< N >::axis
Definition pugixml.cc:9668