Import Geant4 1.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:28:20 +02:00
parent aaa409b6ee
commit ca1c8cb059
2995 changed files with 106830 additions and 299600 deletions
+21 -24
View File
@@ -1,47 +1,44 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G3Pos.cc,v 1.4 1999/05/28 23:03:31 lockman Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G3Pos.cc,v 1.5 1999/12/05 17:50:10 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
// modified by I.Hrivnacova, 13.10.99
#include "globals.hh"
#include "G3Pos.hh"
#include "VolTableEntry.hh"
#include "G3VolTable.hh"
extern G3VolTable G3Vol;
G3Pos::G3Pos(G4String& LV, G4int C, G4ThreeVector* Position, G4int irot,
G4String& Only)
: _VTE(0),_Copy(0), _LV(" "),
_Position(0),_Irot(0),_Only(" "){
_VTE = G3Vol.GetVTE(LV);
_LV = LV;
_Copy = C;
_Position = Position;
_Irot = irot;
_Only = Only;
G3Pos::G3Pos(G4String motherName, G4int C, G4ThreeVector* Position, G4int irot,
G4String Only)
: _MotherName(motherName),
_Copy(C),
_Position(Position),
_Irot(irot),
_Only(Only)
{
if (_Only == "MANY") {
// warning when MANY position is created
G4String text = "G3Pos warning: Not supported MANY option has been encountered.\n";
text = text + " It may cause overlapping volumes.";
G4cerr << text << endl;;
}
};
G3Pos::~G3Pos(){;};
VolTableEntry*
G3Pos::GetVTE() {
return _VTE;
};
G4bool
G3Pos::operator == ( const G3Pos& lv) const {
return (this==&lv) ? true : false;
};
G4String&
G3Pos::GetName() {
return _LV;
G3Pos::GetMotherName() {
return _MotherName;
};
G4int