Geant4-11
Public Member Functions | Private Attributes
G3Pos Class Reference

#include <G3Pos.hh>

Public Member Functions

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

Private Attributes

G4int _Copy
 
G4int _Irot
 
G4String _MotherName
 
G4String _Only
 
G4ThreeVector_Position
 

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}
G4double C(G4double temp)
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition: G4ios.hh:57
G4ThreeVector * _Position
Definition: G3Pos.hh:69
G4String _MotherName
Definition: G3Pos.hh:67
G4int _Copy
Definition: G3Pos.hh:68
G4String _Only
Definition: G3Pos.hh:71
G4int _Irot
Definition: G3Pos.hh:70

References _Only, G4cerr, and G4endl.

◆ ~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}

References _Copy.

Referenced by G3toG4BuildPVTree().

◆ GetIrot()

G4int G3Pos::GetIrot ( )

Definition at line 62 of file G3Pos.cc.

62 {
63 return _Irot;
64}

References _Irot.

Referenced by G3toG4BuildPVTree(), and GetTransform3D().

◆ GetMotherName()

G4String & G3Pos::GetMotherName ( )

Definition at line 57 of file G3Pos.cc.

57 {
58 return _MotherName;
59}

References _MotherName.

Referenced by G3toG4BuildPVTree().

◆ GetOnly()

G4String & G3Pos::GetOnly ( )

Definition at line 77 of file G3Pos.cc.

77 {
78 return _Only;
79}

References _Only.

Referenced by G3VolTableEntry::AddG3Pos().

◆ GetPos()

G4ThreeVector * G3Pos::GetPos ( )

Definition at line 72 of file G3Pos.cc.

72 {
73 return _Position;
74}

References _Position.

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}

Field Documentation

◆ _Copy

G4int G3Pos::_Copy
private

Definition at line 68 of file G3Pos.hh.

Referenced by GetCopy().

◆ _Irot

G4int G3Pos::_Irot
private

Definition at line 70 of file G3Pos.hh.

Referenced by GetIrot().

◆ _MotherName

G4String G3Pos::_MotherName
private

Definition at line 67 of file G3Pos.hh.

Referenced by GetMotherName().

◆ _Only

G4String G3Pos::_Only
private

Definition at line 71 of file G3Pos.hh.

Referenced by G3Pos(), and GetOnly().

◆ _Position

G4ThreeVector* G3Pos::_Position
private

Definition at line 69 of file G3Pos.hh.

Referenced by GetPos().


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