ATLAS Offline Software
Loading...
Searching...
No Matches
Geo2G4AssemblyTriplet Class Reference

#include <Geo2G4AssemblyTriplet.h>

Collaboration diagram for Geo2G4AssemblyTriplet:

Public Member Functions

 Geo2G4AssemblyTriplet ()
 Geo2G4AssemblyTriplet (G4LogicalVolume *pVolume, G4ThreeVector &translation, G4RotationMatrix *pRotation, G4bool isReflection=false)
 Geo2G4AssemblyTriplet (Geo2G4AssemblyVolume *pAssembly, G4ThreeVector &translation, G4RotationMatrix *pRotation, G4bool isReflection=false)
 Geo2G4AssemblyTriplet (const Geo2G4AssemblyTriplet &second)=default
 ~Geo2G4AssemblyTriplet ()
Geo2G4AssemblyTripletoperator= (const Geo2G4AssemblyTriplet &second)=default
const G4LogicalVolume * GetVolume () const
G4LogicalVolume * GetVolume ()
void SetVolume (G4LogicalVolume *pVolume)
const Geo2G4AssemblyVolumeGetAssembly () const
Geo2G4AssemblyVolumeGetAssembly ()
void SetAssembly (Geo2G4AssemblyVolume *pAssembly)
const G4ThreeVector GetTranslation () const
G4ThreeVector GetTranslation ()
void SetTranslation (G4ThreeVector &pVolume)
const G4RotationMatrix * GetRotation () const
G4RotationMatrix * GetRotation ()
void SetRotation (G4RotationMatrix *pVolume)
G4bool IsReflection () const

Private Attributes

G4LogicalVolume * m_volume
G4ThreeVector m_translation
G4RotationMatrix * m_rotation
Geo2G4AssemblyVolumem_assembly
G4bool m_isReflection

Detailed Description

Definition at line 14 of file Geo2G4AssemblyTriplet.h.

Constructor & Destructor Documentation

◆ Geo2G4AssemblyTriplet() [1/4]

Geo2G4AssemblyTriplet::Geo2G4AssemblyTriplet ( )
inline

Definition at line 96 of file Geo2G4AssemblyTriplet.h.

97 : m_volume( 0 ), m_rotation( 0 ), m_assembly(0), m_isReflection(false)
98{
99 G4ThreeVector v(0.,0.,0.);
101}
Geo2G4AssemblyVolume * m_assembly
G4RotationMatrix * m_rotation

◆ Geo2G4AssemblyTriplet() [2/4]

Geo2G4AssemblyTriplet::Geo2G4AssemblyTriplet ( G4LogicalVolume * pVolume,
G4ThreeVector & translation,
G4RotationMatrix * pRotation,
G4bool isReflection = false )
inline

Definition at line 104 of file Geo2G4AssemblyTriplet.h.

108 : m_volume( pVolume ), m_translation( translation ), m_rotation( pRotation ),
109 m_assembly( 0 ), m_isReflection(isReflection)
110{
111}

◆ Geo2G4AssemblyTriplet() [3/4]

Geo2G4AssemblyTriplet::Geo2G4AssemblyTriplet ( Geo2G4AssemblyVolume * pAssembly,
G4ThreeVector & translation,
G4RotationMatrix * pRotation,
G4bool isReflection = false )
inline

Definition at line 114 of file Geo2G4AssemblyTriplet.h.

118 : m_volume( 0 ), m_translation( translation ), m_rotation( pRotation ),
119 m_assembly( pAssembly ), m_isReflection(isReflection)
120{
121}

◆ Geo2G4AssemblyTriplet() [4/4]

Geo2G4AssemblyTriplet::Geo2G4AssemblyTriplet ( const Geo2G4AssemblyTriplet & second)
default

◆ ~Geo2G4AssemblyTriplet()

Geo2G4AssemblyTriplet::~Geo2G4AssemblyTriplet ( )
inline

Definition at line 124 of file Geo2G4AssemblyTriplet.h.

125{
126}

Member Function Documentation

◆ GetAssembly() [1/2]

Geo2G4AssemblyVolume * Geo2G4AssemblyTriplet::GetAssembly ( )
inline

Definition at line 50 of file Geo2G4AssemblyTriplet.h.

50{ return m_assembly; }

◆ GetAssembly() [2/2]

const Geo2G4AssemblyVolume * Geo2G4AssemblyTriplet::GetAssembly ( ) const
inline

Definition at line 49 of file Geo2G4AssemblyTriplet.h.

49{ return m_assembly; }

◆ GetRotation() [1/2]

G4RotationMatrix * Geo2G4AssemblyTriplet::GetRotation ( )
inline

Definition at line 64 of file Geo2G4AssemblyTriplet.h.

64{ return m_rotation; }

◆ GetRotation() [2/2]

const G4RotationMatrix * Geo2G4AssemblyTriplet::GetRotation ( ) const
inline

Definition at line 63 of file Geo2G4AssemblyTriplet.h.

63{ return m_rotation; }

◆ GetTranslation() [1/2]

G4ThreeVector Geo2G4AssemblyTriplet::GetTranslation ( )
inline

Definition at line 57 of file Geo2G4AssemblyTriplet.h.

57{ return m_translation; }

◆ GetTranslation() [2/2]

const G4ThreeVector Geo2G4AssemblyTriplet::GetTranslation ( ) const
inline

Definition at line 56 of file Geo2G4AssemblyTriplet.h.

56{ return m_translation; }

◆ GetVolume() [1/2]

G4LogicalVolume * Geo2G4AssemblyTriplet::GetVolume ( )
inline

Definition at line 43 of file Geo2G4AssemblyTriplet.h.

43{ return m_volume; }

◆ GetVolume() [2/2]

const G4LogicalVolume * Geo2G4AssemblyTriplet::GetVolume ( ) const
inline

Definition at line 42 of file Geo2G4AssemblyTriplet.h.

42{ return m_volume; }

◆ IsReflection()

G4bool Geo2G4AssemblyTriplet::IsReflection ( ) const
inline

Definition at line 167 of file Geo2G4AssemblyTriplet.h.

168{
169 return m_isReflection;
170}

◆ operator=()

Geo2G4AssemblyTriplet & Geo2G4AssemblyTriplet::operator= ( const Geo2G4AssemblyTriplet & second)
default

◆ SetAssembly()

void Geo2G4AssemblyTriplet::SetAssembly ( Geo2G4AssemblyVolume * pAssembly)
inline

Definition at line 142 of file Geo2G4AssemblyTriplet.h.

143{
144 if ( m_volume )
145 {
146 G4Exception("Geo2G4AssemblyTriplet::SetAssembly()",
147 "IllegalCall", JustWarning,
148 "There is a volume already set, it will be ignored.");
149 }
150 m_assembly = pAssembly;
151 m_volume = 0;
152}

◆ SetRotation()

void Geo2G4AssemblyTriplet::SetRotation ( G4RotationMatrix * pVolume)
inline

Definition at line 161 of file Geo2G4AssemblyTriplet.h.

162{
163 m_rotation = pRotation;
164}

◆ SetTranslation()

void Geo2G4AssemblyTriplet::SetTranslation ( G4ThreeVector & pVolume)
inline

Definition at line 155 of file Geo2G4AssemblyTriplet.h.

156{
157 m_translation = translation;
158}

◆ SetVolume()

void Geo2G4AssemblyTriplet::SetVolume ( G4LogicalVolume * pVolume)
inline

Definition at line 129 of file Geo2G4AssemblyTriplet.h.

130{
131 if ( m_assembly )
132 {
133 G4Exception("Geo2G4AssemblyTriplet::SetVolume()",
134 "IllegalCall", JustWarning,
135 "There is an assembly already set, it will be ignored.");
136 }
137 m_volume = pVolume;
138 m_assembly = 0;
139}

Member Data Documentation

◆ m_assembly

Geo2G4AssemblyVolume* Geo2G4AssemblyTriplet::m_assembly
private

Definition at line 88 of file Geo2G4AssemblyTriplet.h.

◆ m_isReflection

G4bool Geo2G4AssemblyTriplet::m_isReflection
private

Definition at line 91 of file Geo2G4AssemblyTriplet.h.

◆ m_rotation

G4RotationMatrix* Geo2G4AssemblyTriplet::m_rotation
private

Definition at line 81 of file Geo2G4AssemblyTriplet.h.

◆ m_translation

G4ThreeVector Geo2G4AssemblyTriplet::m_translation
private

Definition at line 78 of file Geo2G4AssemblyTriplet.h.

◆ m_volume

G4LogicalVolume* Geo2G4AssemblyTriplet::m_volume
private

Definition at line 75 of file Geo2G4AssemblyTriplet.h.


The documentation for this class was generated from the following file: