#include <G4AssemblyVolume.hh>
|
| G4AssemblyVolume () |
|
| G4AssemblyVolume (G4LogicalVolume *volume, G4ThreeVector &translation, G4RotationMatrix *rotation) |
|
| ~G4AssemblyVolume () |
|
void | AddPlacedVolume (G4LogicalVolume *pPlacedVolume, G4ThreeVector &translation, G4RotationMatrix *rotation) |
|
void | AddPlacedVolume (G4LogicalVolume *pPlacedVolume, G4Transform3D &transformation) |
|
void | AddPlacedAssembly (G4AssemblyVolume *pAssembly, G4Transform3D &transformation) |
|
void | AddPlacedAssembly (G4AssemblyVolume *pAssembly, G4ThreeVector &translation, G4RotationMatrix *rotation) |
|
void | MakeImprint (G4LogicalVolume *pMotherLV, G4ThreeVector &translationInMother, G4RotationMatrix *pRotationInMother, G4int copyNumBase=0, G4bool surfCheck=false) |
|
void | MakeImprint (G4LogicalVolume *pMotherLV, G4Transform3D &transformation, G4int copyNumBase=0, G4bool surfCheck=false) |
|
std::vector< G4VPhysicalVolume * >::iterator | GetVolumesIterator () |
|
unsigned int | TotalImprintedVolumes () const |
|
unsigned int | GetImprintsCount () const |
|
unsigned int | GetInstanceCount () const |
|
unsigned int | GetAssemblyID () const |
|
Definition at line 60 of file G4AssemblyVolume.hh.
◆ G4AssemblyVolume() [1/2]
G4AssemblyVolume::G4AssemblyVolume |
( |
| ) |
|
Definition at line 48 of file G4AssemblyVolume.cc.
49 : fAssemblyID( 0 )
50{
54}
void SetAssemblyID(unsigned int value)
void SetImprintsCount(unsigned int value)
unsigned int GetInstanceCount() const
◆ G4AssemblyVolume() [2/2]
Definition at line 58 of file G4AssemblyVolume.cc.
61 : fAssemblyID( 0 )
62{
67}
void AddPlacedVolume(G4LogicalVolume *pPlacedVolume, G4ThreeVector &translation, G4RotationMatrix *rotation)
◆ ~G4AssemblyVolume()
G4AssemblyVolume::~G4AssemblyVolume |
( |
| ) |
|
Definition at line 71 of file G4AssemblyVolume.cc.
72{
73 unsigned int howmany = fTriplets.size();
74 if( howmany != 0 )
75 {
76 for( unsigned int i = 0; i < howmany; i++ )
77 {
79 if( pRotToClean != 0 )
80 {
81 delete pRotToClean;
82 }
83 }
84 }
85 fTriplets.clear();
86
87 howmany = fPVStore.size();
88 if( howmany != 0 )
89 {
90 for( unsigned int j = 0; j < howmany; j++ )
91 {
92 delete fPVStore[j];
93 }
94 }
95 fPVStore.clear();
97}
void InstanceCountMinus()
◆ AddPlacedAssembly() [1/2]
Definition at line 146 of file G4AssemblyVolume.cc.
149{
151
152 if( pRotation != 0 ) { *toStore = *pRotation; }
153
155 fTriplets.push_back( toAdd );
156}
CLHEP::HepRotation G4RotationMatrix
◆ AddPlacedAssembly() [2/2]
Definition at line 161 of file G4AssemblyVolume.cc.
163{
164
165
170
174
175 G4bool isReflection =
false;
176 if (scale(0,0)*scale(1,1)*scale(2,2) < 0.) { isReflection = true; }
177
179 fTriplets.push_back( toAdd );
180}
◆ AddPlacedVolume() [1/2]
◆ AddPlacedVolume() [2/2]
Definition at line 123 of file G4AssemblyVolume.cc.
125{
126
131
135
136 G4bool isReflection =
false;
137 if (scale(0,0)*scale(1,1)*scale(2,2) < 0.) { isReflection = true; }
138
140 fTriplets.push_back( toAdd );
141}
◆ GetAssemblyID()
unsigned int G4AssemblyVolume::GetAssemblyID |
( |
| ) |
const |
◆ GetImprintsCount()
unsigned int G4AssemblyVolume::GetImprintsCount |
( |
| ) |
const |
◆ GetInstanceCount()
unsigned int G4AssemblyVolume::GetInstanceCount |
( |
| ) |
const |
◆ GetVolumesIterator()
std::vector< G4VPhysicalVolume * >::iterator G4AssemblyVolume::GetVolumesIterator |
( |
| ) |
|
|
inline |
◆ ImprintsCountMinus()
void G4AssemblyVolume::ImprintsCountMinus |
( |
| ) |
|
|
protected |
◆ ImprintsCountPlus()
void G4AssemblyVolume::ImprintsCountPlus |
( |
| ) |
|
|
protected |
◆ InstanceCountMinus()
void G4AssemblyVolume::InstanceCountMinus |
( |
| ) |
|
|
protected |
◆ InstanceCountPlus()
void G4AssemblyVolume::InstanceCountPlus |
( |
| ) |
|
|
protected |
◆ MakeImprint() [1/2]
Definition at line 310 of file G4AssemblyVolume.cc.
315{
316
317
318
319
320
321
322
323
324 if( pRotationInMother == 0 )
325 {
326
327
328 pRotationInMother =
330 }
331
333 translationInMother );
334 MakeImprint(
this, pMotherLV, transform, copyNumBase, surfCheck);
335}
static DLL_API const HepRotation IDENTITY
void MakeImprint(G4LogicalVolume *pMotherLV, G4ThreeVector &translationInMother, G4RotationMatrix *pRotationInMother, G4int copyNumBase=0, G4bool surfCheck=false)
Referenced by G4tgbVolume::ConstructG4PhysVol(), MakeImprint(), and G4GDMLReadStructure::PhysvolRead().
◆ MakeImprint() [2/2]
◆ SetAssemblyID()
void G4AssemblyVolume::SetAssemblyID |
( |
unsigned int |
value | ) |
|
|
protected |
◆ SetImprintsCount()
void G4AssemblyVolume::SetImprintsCount |
( |
unsigned int |
value | ) |
|
|
protected |
◆ SetInstanceCount()
void G4AssemblyVolume::SetInstanceCount |
( |
unsigned int |
value | ) |
|
|
protected |
Definition at line 356 of file G4AssemblyVolume.cc.
357{
358 G4AssemblyVolume::fsInstanceCounter = value;
359}
◆ TotalImprintedVolumes()
unsigned int G4AssemblyVolume::TotalImprintedVolumes |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: