Import Geant4 10.4.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2017-06-30 10:49:55 +02:00
parent 3a5407696b
commit 1a1316fea4
2180 changed files with 237880 additions and 59109 deletions
@@ -83,9 +83,9 @@ CellParameterisation::CellParameterisation
if (nlines == 0)
{
ncols = fscanf(fMap,"%i %i %i",&fPhantomTotalPixels,&fNucleusTotalPixels,&fCytoplasmTotalPixels);
fMapCell = new G4ThreeVector[fPhantomTotalPixels];
fMaterial = new G4double[fPhantomTotalPixels];
fMass = new G4double[fPhantomTotalPixels];
fMapCell = new G4ThreeVector[fPhantomTotalPixels];
fMaterial = new G4double[fPhantomTotalPixels];
fMass = new G4double[fPhantomTotalPixels];
fTissueType = new G4int[fPhantomTotalPixels];
}
@@ -151,8 +151,7 @@ CellParameterisation::CellParameterisation
}
}
//
//
if (std::abs(mat-2)<1.e-30) // NUCLEUS
{
@@ -225,27 +224,28 @@ CellParameterisation::~CellParameterisation()
void CellParameterisation::ComputeTransformation
(const G4int copyNo, G4VPhysicalVolume* physVol) const
{
G4ThreeVector
origin(
G4ThreeVector origin
(
fMapCell[copyNo].x()*fDimCellBoxX,
fMapCell[copyNo].y()*fDimCellBoxY,
fMapCell[copyNo].z()*fDimCellBoxZ);
fMapCell[copyNo].z()*fDimCellBoxZ
);
physVol->SetTranslation(origin);
physVol->SetTranslation(origin);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void CellParameterisation::ComputeDimensions
(G4Box& /*trackerChamber*/, const G4int /*copyNo*/, const G4VPhysicalVolume*) const
(G4Box&, const G4int, const G4VPhysicalVolume*) const
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4Material*
CellParameterisation::ComputeMaterial(const G4int copyNo,
G4VPhysicalVolume* physVol,
const G4VTouchable*)
G4VPhysicalVolume* physVol,
const G4VTouchable*)
{
if( fMaterial[copyNo] == 2 ) // fMaterial 2 is nucleus
{