Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PVDivisionFactory.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// G4PVDivisionFactory
27//
28// Class description:
29//
30// Implementation of the interfaces for creating volume divisions
31// (defined in G4VPVDivisionFactory) for G4PVDivision type.
32
33// Author: Ivana Hrivnacova (Orsay), 04.05.2004
34// ------------------------------------------------------------------------
35#ifndef G4PVDIVISION_FACTORY_HH
36#define G4PVDIVISION_FACTORY_HH 1
37
38#include "geomdefs.hh"
40
41class G4LogicalVolume;
42
43/**
44 * @brief G4PVDivisionFactory implements the interfaces for creating volume
45 * divisions (defined in G4VPVDivisionFactory) for G4PVDivision type.
46 */
47
49{
50 public:
51
52 /**
53 * Default Destructor.
54 */
55 ~G4PVDivisionFactory() override = default;
56
57 /**
58 * Creates a division, using number of divisions and width.
59 * @param[in] pName The volume name.
60 * @param[in] pLogical Pointer to the logical volume of the division.
61 * @param[in] pMother Pointer to the logical volume of the mother.
62 * @param[in] pAxis The axis along which do the division.
63 * @param[in] nReplicas The number of copies to replicate.
64 * @param[in] width The witdh of the divided slice along the axis.
65 * @param[in] offset The optional offset distance from mother's border.
66 * @returns The pointer to physical divided volume.
67 */
69 const G4String& pName,
70 G4LogicalVolume* pLogical,
71 G4LogicalVolume* pMother,
72 const EAxis pAxis,
73 const G4int nReplicas,
74 const G4double width,
75 const G4double offset ) override;
76
77 /**
78 * Creates a division, using the number of divisions.
79 * @param[in] pName The volume name.
80 * @param[in] pLogical Pointer to the logical volume of the division.
81 * @param[in] pMother Pointer to the logical volume of the mother.
82 * @param[in] pAxis The axis along which do the division.
83 * @param[in] nReplicas The number of copies to replicate.
84 * @param[in] offset The optional offset distance from mother's border.
85 * @returns The pointer to physical divided volume.
86 */
88 const G4String& pName,
89 G4LogicalVolume* pLogical,
90 G4LogicalVolume* pMother,
91 const EAxis pAxis,
92 const G4int nReplicas,
93 const G4double offset ) override;
94
95 /**
96 * Creates a division, using the width of the division slice.
97 * @param[in] pName The volume name.
98 * @param[in] pLogical Pointer to the logical volume of the division.
99 * @param[in] pMother Pointer to the logical volume of the mother.
100 * @param[in] pAxis The axis along which do the division.
101 * @param[in] width The witdh of the divided slice along the axis.
102 * @param[in] offset The optional offset distance from mother's border.
103 * @returns The pointer to physical divided volume.
104 */
106 const G4String& pName,
107 G4LogicalVolume* pLogical,
108 G4LogicalVolume* pMother,
109 const EAxis pAxis,
110 const G4double width,
111 const G4double offset ) override;
112
113 /**
114 * Creates a division, using a parameterisation algorithm.
115 * @param[in] pName The volume name.
116 * @param[in] pLogical Pointer to the logical volume of the division.
117 * @param[in] pMother Pointer to the logical volume of the mother.
118 * @param[in] param The pointer to the parameterisation algorithm.
119 * @returns The pointer to physical divided volume.
120 */
122 const G4String& pName,
123 G4LogicalVolume* pLogical,
124 G4LogicalVolume* pMother,
125 const G4VPVParameterisation* param) override;
126
127 /**
128 * Returns true if 'pv' is a pointer to a division.
129 */
130 G4bool IsPVDivision(const G4VPhysicalVolume* pv) const override;
131
132 /**
133 * Creates the unique instance of the singleton.
134 */
136
137 protected:
138
139 /**
140 * Protected default Constructor.
141 */
143};
144
145#endif
G4ThreadLocal T * G4GeomSplitter< T >::offset
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....
G4bool IsPVDivision(const G4VPhysicalVolume *pv) const override
static G4PVDivisionFactory * GetInstance()
G4PVDivisionFactory()=default
G4VPhysicalVolume * CreatePVDivision(const G4String &pName, G4LogicalVolume *pLogical, G4LogicalVolume *pMother, const EAxis pAxis, const G4int nReplicas, const G4double width, const G4double offset) override
~G4PVDivisionFactory() override=default
G4VPVDivisionFactory()=default
G4VPVParameterisation ia an abstract base class for Parameterisation, able to compute the transformat...
G4VPhysicalVolume is an abstract base class for the representation of a positioned volume....
EAxis
Definition geomdefs.hh:54