Import Geant4 10.7.0 source tree

This commit is contained in:
Gabriele Cosmo
2020-12-04 12:30:43 +01:00
parent 67ba86d073
commit dab42d2018
3770 changed files with 226369 additions and 286486 deletions
@@ -23,14 +23,10 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
//
//
// class G4tgrPlaceSimple
// G4tgrPlaceSimple implementation
// History:
// - Created. P.Arce, CIEMAT (November 2007)
// -------------------------------------------------------------------------
// Author: P.Arce, CIEMAT (November 2007)
// --------------------------------------------------------------------
#include "G4tgrPlaceSimple.hh"
@@ -39,57 +35,54 @@
#include "G4tgrVolume.hh"
#include "G4tgrMessenger.hh"
// -------------------------------------------------------------------------
// --------------------------------------------------------------------
G4tgrPlaceSimple::G4tgrPlaceSimple()
{
}
// -------------------------------------------------------------------------
// --------------------------------------------------------------------
G4tgrPlaceSimple::~G4tgrPlaceSimple()
{
}
// -------------------------------------------------------------------------
G4tgrPlaceSimple::G4tgrPlaceSimple( const std::vector<G4String>& wl )
// --------------------------------------------------------------------
G4tgrPlaceSimple::G4tgrPlaceSimple(const std::vector<G4String>& wl)
{
theType = "PlaceSimple";
G4int wl7 = -1;
if( wl.size() == 8 ) // for assembly volume placement,
{ // there is no copy number
if(wl.size() == 8) // for assembly volume placement,
{ // there is no copy number
//---------- set the copy number
theCopyNo = G4tgrUtils::GetInt( wl[2] );
wl7 = 0;
theCopyNo = G4tgrUtils::GetInt(wl[2]);
wl7 = 0;
}
//---------- set the parent name
theParentName = G4tgrUtils::GetString( wl[3+wl7] );
theParentName = G4tgrUtils::GetString(wl[3 + wl7]);
//---------- set the position with respect to parent
thePlace = G4ThreeVector( G4tgrUtils::GetDouble(wl[5+wl7])*mm,
G4tgrUtils::GetDouble(wl[6+wl7])*mm,
G4tgrUtils::GetDouble(wl[7+wl7])*mm );
thePlace = G4ThreeVector(G4tgrUtils::GetDouble(wl[5 + wl7]) * mm,
G4tgrUtils::GetDouble(wl[6 + wl7]) * mm,
G4tgrUtils::GetDouble(wl[7 + wl7]) * mm);
//---------- set the rotation matrix name
theRotMatName = G4tgrUtils::GetString(wl[4+wl7]);
theRotMatName = G4tgrUtils::GetString(wl[4 + wl7]);
#ifdef G4VERBOSE
if( G4tgrMessenger::GetVerboseLevel() >= 1 )
if(G4tgrMessenger::GetVerboseLevel() >= 1)
{
G4cout << " Created " << *this << G4endl;
G4cout << " Created " << *this << G4endl;
}
#endif
}
// -------------------------------------------------------------------------
// --------------------------------------------------------------------
std::ostream& operator<<(std::ostream& os, const G4tgrPlaceSimple& obj)
{
os << "G4tgrPlaceSimple= in " << obj.theParentName
<< " Position= " << obj.thePlace
<< " RotMatName= " << obj.theRotMatName << G4endl;
<< " Position= " << obj.thePlace << " RotMatName= " << obj.theRotMatName
<< G4endl;
return os;
}