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
|
||||
@@ -57,41 +57,38 @@ G4MIRDSpleen::~G4MIRDSpleen()
|
||||
|
||||
}
|
||||
|
||||
|
||||
G4VPhysicalVolume* G4MIRDSpleen::Construct(const G4String& volumeName,G4VPhysicalVolume* mother,
|
||||
const G4String& colourName, G4bool wireFrame, G4bool sensitivity)
|
||||
const G4String& colourName, G4bool wireFrame, G4bool)
|
||||
{
|
||||
|
||||
G4cout << "Construct "<< volumeName << G4endl;
|
||||
G4HumanPhantomMaterial* material = new G4HumanPhantomMaterial();
|
||||
G4Material* soft = material -> GetMaterial("soft_tissue");
|
||||
delete material;
|
||||
G4cout<<"Construct "<<volumeName<<" with mother volume "<<mother->GetName()<<G4endl;
|
||||
|
||||
G4double ax= 3.5 *cm;
|
||||
G4double by= 2. *cm;
|
||||
G4double cz= 6. * cm;
|
||||
G4HumanPhantomMaterial* material = new G4HumanPhantomMaterial();
|
||||
G4Material* soft = material -> GetMaterial("soft_tissue");
|
||||
delete material;
|
||||
|
||||
G4Ellipsoid* spleen = new G4Ellipsoid("spleen", ax, by, cz);
|
||||
G4double ax= 3.5 *cm;
|
||||
G4double by= 2. *cm;
|
||||
G4double cz= 6. * cm;
|
||||
|
||||
G4Ellipsoid* spleen = new G4Ellipsoid("spleen", ax, by, cz);
|
||||
|
||||
|
||||
G4LogicalVolume* logicSpleen = new G4LogicalVolume(spleen, soft,
|
||||
"logical" + volumeName,
|
||||
0, 0, 0);
|
||||
0, 0, 0);
|
||||
|
||||
// Define rotation and position here!
|
||||
G4VPhysicalVolume* physSpleen = new G4PVPlacement(0,
|
||||
G4ThreeVector(11. *cm, 3. *cm, 2.*cm), // ztrans = half trunk lenght - z0
|
||||
"physicalSpleen",
|
||||
logicSpleen,
|
||||
mother,
|
||||
false,
|
||||
0, true);
|
||||
"physicalSpleen",
|
||||
logicSpleen,
|
||||
mother,
|
||||
false,
|
||||
0, true);
|
||||
|
||||
|
||||
// Sensitive Body Part
|
||||
if (sensitivity==true)
|
||||
{
|
||||
G4SDManager* SDman = G4SDManager::GetSDMpointer();
|
||||
logicSpleen->SetSensitiveDetector( SDman->FindSensitiveDetector("BodyPartSD") );
|
||||
}
|
||||
|
||||
// Visualization Attributes
|
||||
// G4VisAttributes* SpleenVisAtt = new G4VisAttributes(G4Colour(0.41,0.41,0.41));
|
||||
|
||||
Reference in New Issue
Block a user