Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G3Pos Class Reference

#include <G3Pos.hh>

Public Member Functions

 G3Pos ()
 
 G3Pos (G4String M, G4int C, G4ThreeVector *T, G4int R, G4String O)
 
G4bool operator== (const G3Pos &g3p) const
 
virtual ~G3Pos ()
 
G4StringGetMotherName ()
 
G4int GetIrot ()
 
G4ThreeVectorGetPos ()
 
G4int GetCopy ()
 
G4StringGetOnly ()
 

Detailed Description

Definition at line 42 of file G3Pos.hh.

Constructor & Destructor Documentation

◆ G3Pos() [1/2]

G3Pos::G3Pos ( )
inline

Definition at line 47 of file G3Pos.hh.

47{;}

◆ G3Pos() [2/2]

G3Pos::G3Pos ( G4String  M,
G4int  C,
G4ThreeVector T,
G4int  R,
G4String  O 
)

Definition at line 33 of file G3Pos.cc.

35 : _MotherName(motherName),
36 _Copy(C),
37 _Position(Position),
38 _Irot(irot),
39 _Only(Only)
40{
41 if (_Only == "MANY") {
42 // warning when MANY position is created
43 G4String text = "G3Pos warning: Not supported MANY option has been encountered.\n";
44 text = text + " It may cause overlapping volumes.";
45 G4cerr << text << G4endl;
46 }
47}
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition: G4ios.hh:57

◆ ~G3Pos()

G3Pos::~G3Pos ( )
virtual

Definition at line 49 of file G3Pos.cc.

49{;}

Member Function Documentation

◆ GetCopy()

G4int G3Pos::GetCopy ( )

Definition at line 67 of file G3Pos.cc.

67 {
68 return _Copy;
69}

Referenced by G3toG4BuildPVTree().

◆ GetIrot()

G4int G3Pos::GetIrot ( )

Definition at line 62 of file G3Pos.cc.

62 {
63 return _Irot;
64}

Referenced by G3toG4BuildPVTree(), and GetTransform3D().

◆ GetMotherName()

G4String & G3Pos::GetMotherName ( )

Definition at line 57 of file G3Pos.cc.

57 {
58 return _MotherName;
59}

Referenced by G3toG4BuildPVTree().

◆ GetOnly()

G4String & G3Pos::GetOnly ( )

Definition at line 77 of file G3Pos.cc.

77 {
78 return _Only;
79}

Referenced by G3VolTableEntry::AddG3Pos().

◆ GetPos()

G4ThreeVector * G3Pos::GetPos ( )

Definition at line 72 of file G3Pos.cc.

72 {
73 return _Position;
74}

Referenced by G3toG4BuildPVTree(), and GetTransform3D().

◆ operator==()

G4bool G3Pos::operator== ( const G3Pos g3p) const

Definition at line 52 of file G3Pos.cc.

52 {
53 return (this==&lv) ? true : false;
54}

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