Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -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
|
||||
@@ -58,14 +58,16 @@ G4MIRDSkull::~G4MIRDSkull()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
G4VPhysicalVolume* G4MIRDSkull::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");
|
||||
|
||||
@@ -86,9 +88,9 @@ G4VPhysicalVolume* G4MIRDSkull::Construct(const G4String& volumeName,G4VPhysical
|
||||
|
||||
|
||||
G4SubtractionSolid* cranium = new G4SubtractionSolid("Cranium",
|
||||
craniumOut,
|
||||
craniumOut,
|
||||
craniumIn,0,
|
||||
G4ThreeVector(0.0, 0.0,1. * cm));
|
||||
G4ThreeVector(0.0, 0.0,1. * cm));
|
||||
|
||||
G4LogicalVolume* logicSkull = new G4LogicalVolume(cranium, skeleton,
|
||||
"logical" + volumeName,
|
||||
@@ -103,16 +105,9 @@ G4VPhysicalVolume* G4MIRDSkull::Construct(const G4String& volumeName,G4VPhysical
|
||||
false,
|
||||
0, true);
|
||||
|
||||
// Sensitive Body Part
|
||||
if (sensitivity==true)
|
||||
{
|
||||
G4SDManager* SDman = G4SDManager::GetSDMpointer();
|
||||
logicSkull->SetSensitiveDetector( SDman->FindSensitiveDetector("BodyPartSD") );
|
||||
}
|
||||
|
||||
// Visualization Attributes
|
||||
//G4VisAttributes* SkullVisAtt = new G4VisAttributes(G4Colour(0.46,0.53,0.6));
|
||||
G4HumanPhantomColour* colourPointer = new G4HumanPhantomColour();
|
||||
G4HumanPhantomColour* colourPointer = new G4HumanPhantomColour();
|
||||
G4Colour colour = colourPointer -> GetColour(colourName);
|
||||
G4VisAttributes* SkullVisAtt = new G4VisAttributes(colour);
|
||||
SkullVisAtt->SetForceSolid(wireFrame);
|
||||
|
||||
Reference in New Issue
Block a user