Import Geant4 11.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2022-12-09 14:43:28 +01:00
parent c07cea1fe0
commit 9f34590941
3810 changed files with 200490 additions and 182326 deletions
@@ -42,24 +42,15 @@
#include "G4UnionSolid.hh"
#include "G4HumanPhantomColour.hh"
G4MIRDLeftLegBone::G4MIRDLeftLegBone()
{
}
G4MIRDLeftLegBone::~G4MIRDLeftLegBone()
{
}
G4VPhysicalVolume* G4MIRDLeftLegBone::Construct(const G4String& volumeName,G4VPhysicalVolume* mother,
const G4String& colourName, G4bool wireFrame,G4bool)
{
G4HumanPhantomMaterial* material = new G4HumanPhantomMaterial();
auto* material = new G4HumanPhantomMaterial();
G4cout<<"Construct "<<volumeName<<" with mother volume "<<mother->GetName()<<G4endl;
G4Material* skeleton = material -> GetMaterial("skeleton");
auto* skeleton = material -> GetMaterial("skeleton");
delete material;
@@ -71,17 +62,17 @@ G4VPhysicalVolume* G4MIRDLeftLegBone::Construct(const G4String& volumeName,G4VPh
G4double startphi = 0. * degree;
G4double deltaphi = 360. * degree;
G4Cons* leg_bone = new G4Cons("OneLeftLegBone",
auto* leg_bone = new G4Cons("OneLeftLegBone",
rmin1, rmax1,
rmin2, rmax2, dz/2.,
startphi, deltaphi);
G4LogicalVolume* logicLeftLegBone = new G4LogicalVolume(leg_bone, skeleton,"logical" + volumeName,
0, 0, 0);
auto* logicLeftLegBone = new G4LogicalVolume(leg_bone, skeleton,"logical" + volumeName,
nullptr, nullptr, nullptr);
// Define rotation and position here!
G4VPhysicalVolume* physLeftLegBone = new G4PVPlacement(0,
G4VPhysicalVolume* physLeftLegBone = new G4PVPlacement(nullptr,
G4ThreeVector(0.0 * cm, 0.0, 0.1*cm),
"physicalLeftLegBone",
logicLeftLegBone,
@@ -92,9 +83,9 @@ G4VPhysicalVolume* G4MIRDLeftLegBone::Construct(const G4String& volumeName,G4VPh
// Visualization Attributes
//G4VisAttributes* LeftLegBoneVisAtt = new G4VisAttributes(G4Colour(0.46,0.53,0.6));
G4HumanPhantomColour* colourPointer = new G4HumanPhantomColour();
auto* colourPointer = new G4HumanPhantomColour();
G4Colour colour = colourPointer -> GetColour(colourName);
G4VisAttributes* LeftLegBoneVisAtt = new G4VisAttributes(colour);
auto* LeftLegBoneVisAtt = new G4VisAttributes(colour);
LeftLegBoneVisAtt->SetForceSolid(wireFrame);
logicLeftLegBone->SetVisAttributes(LeftLegBoneVisAtt);