Geant4 9.6.0
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 43 of file G3Pos.hh.

Constructor & Destructor Documentation

◆ G3Pos() [1/2]

G3Pos::G3Pos ( )
inline

Definition at line 48 of file G3Pos.hh.

48{;}

◆ G3Pos() [2/2]

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

Definition at line 34 of file G3Pos.cc.

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

◆ ~G3Pos()

G3Pos::~G3Pos ( )
virtual

Definition at line 50 of file G3Pos.cc.

50{;}

Member Function Documentation

◆ GetCopy()

G4int G3Pos::GetCopy ( )

Definition at line 68 of file G3Pos.cc.

68 {
69 return _Copy;
70}

Referenced by G3toG4BuildPVTree().

◆ GetIrot()

G4int G3Pos::GetIrot ( )

Definition at line 63 of file G3Pos.cc.

63 {
64 return _Irot;
65}

Referenced by G3toG4BuildPVTree(), and GetTransform3D().

◆ GetMotherName()

G4String & G3Pos::GetMotherName ( )

Definition at line 58 of file G3Pos.cc.

58 {
59 return _MotherName;
60}

Referenced by G3toG4BuildPVTree().

◆ GetOnly()

G4String & G3Pos::GetOnly ( )

Definition at line 78 of file G3Pos.cc.

78 {
79 return _Only;
80}

Referenced by G3VolTableEntry::AddG3Pos().

◆ GetPos()

G4ThreeVector * G3Pos::GetPos ( )

Definition at line 73 of file G3Pos.cc.

73 {
74 return _Position;
75}

Referenced by G3toG4BuildPVTree(), and GetTransform3D().

◆ operator==()

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

Definition at line 53 of file G3Pos.cc.

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

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