Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// Authors: S. Guatelli and M. G. Pia, INFN Genova, Italy
// Authors: S. Guatelli , M. G. Pia, INFN Genova and F. Ambroglini INFN Perugia, Italy
//
// Based on code developed by the undergraduate student G. Guerrieri
// Note: this is a preliminary beta-version of the code; an improved
@@ -56,13 +56,14 @@ G4MIRDLeftLegBone::~G4MIRDLeftLegBone()
{
}
G4VPhysicalVolume* G4MIRDLeftLegBone::Construct(const G4String& volumeName,G4VPhysicalVolume* mother,
const G4String& colourName, G4bool wireFrame,G4bool sensitivity)
const G4String& colourName, G4bool wireFrame,G4bool)
{
G4HumanPhantomMaterial* material = new G4HumanPhantomMaterial();
G4cout << "Construct "<< volumeName<< G4endl;
G4cout<<"Construct "<<volumeName<<" with mother volume "<<mother->GetName()<<G4endl;
G4Material* skeleton = material -> GetMaterial("skeleton");
@@ -77,29 +78,23 @@ G4VPhysicalVolume* G4MIRDLeftLegBone::Construct(const G4String& volumeName,G4VPh
G4double deltaphi = 360. * degree;
G4Cons* leg_bone = new G4Cons("OneLeftLegBone",
rmin1, rmax1,
rmin2, rmax2, dz/2.,
startphi, deltaphi);
rmin1, rmax1,
rmin2, rmax2, dz/2.,
startphi, deltaphi);
G4LogicalVolume* logicLeftLegBone = new G4LogicalVolume(leg_bone, skeleton,"logical" + volumeName,
0, 0, 0);
G4LogicalVolume* logicLeftLegBone = new G4LogicalVolume(leg_bone, skeleton,"logical" + volumeName,
0, 0, 0);
// Define rotation and position here!
G4VPhysicalVolume* physLeftLegBone = new G4PVPlacement(0,
G4ThreeVector(0.0 * cm, 0.0, 0.1*cm),
"physicalLeftLegBone",
logicLeftLegBone,
mother,
false,
0, true);
G4ThreeVector(0.0 * cm, 0.0, 0.1*cm),
"physicalLeftLegBone",
logicLeftLegBone,
mother,
false,
0, true);
// Sensitive Body Part
if (sensitivity==true)
{
G4SDManager* SDman = G4SDManager::GetSDMpointer();
logicLeftLegBone->SetSensitiveDetector( SDman->FindSensitiveDetector("BodyPartSD") );
}
// Visualization Attributes
//G4VisAttributes* LeftLegBoneVisAtt = new G4VisAttributes(G4Colour(0.46,0.53,0.6));