Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Code developed by:
|
||||
// S.Guatelli, Matthew Large and A. Malaroda, University of Wollongong
|
||||
//
|
||||
#ifndef ICRP110PhantomActionInitialization_h
|
||||
#define ICRP110PhantomActionInitialization_h 1
|
||||
|
||||
#include "G4VUserActionInitialization.hh"
|
||||
#include "ICRP110PhantomAnalysisManager.hh"
|
||||
|
||||
class G4GeneralParticleSource;
|
||||
|
||||
class ICRP110PhantomActionInitialization: public G4VUserActionInitialization
|
||||
{
|
||||
public:
|
||||
ICRP110PhantomActionInitialization();
|
||||
virtual ~ICRP110PhantomActionInitialization();
|
||||
|
||||
virtual void BuildForMaster() const;
|
||||
virtual void Build() const;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Code developed by:
|
||||
// S.Guatelli, M. Large and A. Malaroda, University of Wollongong
|
||||
// Original code from the extended/analysis examples
|
||||
#ifndef ICRP110PhantomAnalysisManager_HH
|
||||
#define ICRP110PhantomAnalysisManager_HH
|
||||
#include "g4root.hh"
|
||||
#endif
|
||||
@@ -0,0 +1,90 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// Code developed by:
|
||||
// S.Guatelli, M. Large and A. Malaroda, University of Wollongong
|
||||
//
|
||||
#ifndef ICRP110PhantomConstruction_H
|
||||
#define ICRP110PhantomConstruction_H 1
|
||||
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "ICRP110PhantomMessenger.hh"
|
||||
|
||||
#include "G4MultiFunctionalDetector.hh"
|
||||
#include "G4VPrimitiveScorer.hh"
|
||||
#include "G4PSDoseDeposit3D.hh"
|
||||
|
||||
#include "G4SDManager.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include <map>
|
||||
|
||||
class G4VPhysicalVolume;
|
||||
class ICRP110PhantomMaterial_Female;
|
||||
class ICRP110PhantomMaterial_Male;
|
||||
class G4Material;
|
||||
|
||||
class ICRP110PhantomConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
ICRP110PhantomConstruction();
|
||||
~ICRP110PhantomConstruction();
|
||||
G4VPhysicalVolume* Construct();
|
||||
|
||||
inline G4int GetNumberVoxelX(){return fNVoxelX;};
|
||||
inline G4int GetNumberVoxelY() {return fNVoxelY;};
|
||||
inline G4int GetNumberVoxelZ() {return fNVoxelZ;};
|
||||
|
||||
void SetPhantomSex(G4String);
|
||||
void SetPhantomSection(G4String);
|
||||
|
||||
private:
|
||||
void ReadPhantomData(const G4String& sex, const G4String& section);
|
||||
void ReadPhantomDataFile(const G4String& sex, const G4String& fname, G4int);
|
||||
ICRP110PhantomMaterial_Female* fMaterial_Female;
|
||||
ICRP110PhantomMaterial_Male* fMaterial_Male;
|
||||
ICRP110PhantomMessenger* fMessenger;
|
||||
// std::vector<G4Material*> fMaterials;
|
||||
G4int fNVoxelX;
|
||||
G4int fNVoxelY;
|
||||
G4int fNVoxelZ;
|
||||
G4double fVoxelHalfDimX;
|
||||
G4double fVoxelHalfDimY;
|
||||
G4double fVoxelHalfDimZ;
|
||||
G4double fMinX;
|
||||
G4double fMaxX;
|
||||
G4double fMinY;
|
||||
G4double fMaxY;
|
||||
G4double fMinZ;
|
||||
G4double fMaxZ;
|
||||
G4int fNoFiles;
|
||||
G4int fNVoxels;
|
||||
size_t* fMateIDs; // index of material of each voxel
|
||||
G4String fSex;
|
||||
G4String fSection;
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// Code developed by:
|
||||
// S.Guatelli, M. Large and A. Malaroda, University of Wollongong
|
||||
//
|
||||
//
|
||||
#ifndef ICRP110PhantomMaterial_Female_H
|
||||
#define ICRP110PhantomMaterial_Female_H 1
|
||||
|
||||
#include "globals.hh"
|
||||
class G4Material;
|
||||
|
||||
class ICRP110PhantomMaterial_Female
|
||||
{
|
||||
public:
|
||||
ICRP110PhantomMaterial_Female();
|
||||
~ ICRP110PhantomMaterial_Female();
|
||||
|
||||
public:
|
||||
void DefineMaterials();
|
||||
G4Material* GetMaterial(G4String); //returns the material
|
||||
|
||||
private:
|
||||
|
||||
G4Material* fLung;
|
||||
G4Material* fTeeth;
|
||||
G4Material* fBone;
|
||||
G4Material* fHumeri_upper;
|
||||
G4Material* fHumeri_lower;
|
||||
G4Material* fArm_lower;
|
||||
G4Material* fHand;
|
||||
G4Material* fClavicle;
|
||||
G4Material* fCranium;
|
||||
G4Material* fFemora_upper;
|
||||
G4Material* fFemora_lower;
|
||||
G4Material* fLeg_lower;
|
||||
G4Material* fFoot;
|
||||
G4Material* fMandible;
|
||||
G4Material* fPelvis;
|
||||
G4Material* fRibs;
|
||||
G4Material* fScapulae;
|
||||
G4Material* fSpine_cervical;
|
||||
G4Material* fSpine_lumbar;
|
||||
G4Material* fSpine_thoratic;
|
||||
G4Material* fSacrum;
|
||||
G4Material* fSternum;
|
||||
G4Material* fHf_upper;
|
||||
G4Material* fHf_lower;
|
||||
G4Material* fMed_lowerleg;
|
||||
G4Material* fMed_lowerarm;
|
||||
G4Material* fCartilage;
|
||||
G4Material* fSkin;
|
||||
G4Material* fBlood;
|
||||
G4Material* fMuscle;
|
||||
G4Material* fLiver;
|
||||
G4Material* fPancreas;
|
||||
G4Material* fBrain;
|
||||
G4Material* fHeart;
|
||||
G4Material* fEye;
|
||||
G4Material* fKidney;
|
||||
G4Material* fStomach;
|
||||
G4Material* fIntestine_sml;
|
||||
G4Material* fIntestine_lrg;
|
||||
G4Material* fSpleen;
|
||||
G4Material* fThyroid;
|
||||
G4Material* fBladder;
|
||||
G4Material* fOvaries_testes;
|
||||
G4Material* fAdrenals;
|
||||
G4Material* fOesophagus;
|
||||
G4Material* fMisc;
|
||||
G4Material* fUterus_prostate;
|
||||
G4Material* fLymph;
|
||||
G4Material* fBreast_glandular;
|
||||
G4Material* fBreast_adipose;
|
||||
G4Material* fGastro_content;
|
||||
G4Material* fUrine;
|
||||
|
||||
};
|
||||
#endif
|
||||
@@ -0,0 +1,103 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// Code developed by:
|
||||
// S.Guatelli, M. Large and A. Malaroda, University of Wollongong
|
||||
//
|
||||
//
|
||||
#ifndef ICRP110PhantomMaterial_Male_H
|
||||
#define ICRP110PhantomMaterial_Male_H 1
|
||||
|
||||
#include "globals.hh"
|
||||
class G4Material;
|
||||
|
||||
class ICRP110PhantomMaterial_Male
|
||||
{
|
||||
public:
|
||||
ICRP110PhantomMaterial_Male();
|
||||
~ ICRP110PhantomMaterial_Male();
|
||||
|
||||
public:
|
||||
void DefineMaterials();
|
||||
G4Material* GetMaterial(G4String); //returns the material
|
||||
|
||||
private:
|
||||
|
||||
G4Material* fLung;
|
||||
G4Material* fTeeth;
|
||||
G4Material* fBone;
|
||||
G4Material* fHumeri_upper;
|
||||
G4Material* fHumeri_lower;
|
||||
G4Material* fArm_lower;
|
||||
G4Material* fHand;
|
||||
G4Material* fClavicle;
|
||||
G4Material* fCranium;
|
||||
G4Material* fFemora_upper;
|
||||
G4Material* fFemora_lower;
|
||||
G4Material* fLeg_lower;
|
||||
G4Material* fFoot;
|
||||
G4Material* fMandible;
|
||||
G4Material* fPelvis;
|
||||
G4Material* fRibs;
|
||||
G4Material* fScapulae;
|
||||
G4Material* fSpine_cervical;
|
||||
G4Material* fSpine_lumbar;
|
||||
G4Material* fSpine_thoratic;
|
||||
G4Material* fSacrum;
|
||||
G4Material* fSternum;
|
||||
G4Material* fHf_upper;
|
||||
G4Material* fHf_lower;
|
||||
G4Material* fMed_lowerleg;
|
||||
G4Material* fMed_lowerarm;
|
||||
G4Material* fCartilage;
|
||||
G4Material* fSkin;
|
||||
G4Material* fBlood;
|
||||
G4Material* fMuscle;
|
||||
G4Material* fLiver;
|
||||
G4Material* fPancreas;
|
||||
G4Material* fBrain;
|
||||
G4Material* fHeart;
|
||||
G4Material* fEye;
|
||||
G4Material* fKidney;
|
||||
G4Material* fStomach;
|
||||
G4Material* fIntestine_sml;
|
||||
G4Material* fIntestine_lrg;
|
||||
G4Material* fSpleen;
|
||||
G4Material* fThyroid;
|
||||
G4Material* fBladder;
|
||||
G4Material* fOvaries_testes;
|
||||
G4Material* fAdrenals;
|
||||
G4Material* fOesophagus;
|
||||
G4Material* fMisc;
|
||||
G4Material* fUterus_prostate;
|
||||
G4Material* fLymph;
|
||||
G4Material* fBreast_glandular;
|
||||
G4Material* fBreast_adipose;
|
||||
G4Material* fGastro_content;
|
||||
G4Material* fUrine;
|
||||
|
||||
};
|
||||
#endif
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Authors: M. Large, S. Guatelli - University of Wollongong, Australia
|
||||
//
|
||||
|
||||
#ifndef ICRP110PhantomMessenger_h
|
||||
#define ICRP110PhantomMessenger_h 1
|
||||
|
||||
#include "G4UImessenger.hh"
|
||||
#include "globals.hh"
|
||||
class ICRP110PhantomConstruction;
|
||||
class G4UIcommand;
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithAString;
|
||||
|
||||
class ICRP110PhantomMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
ICRP110PhantomMessenger(ICRP110PhantomConstruction* myUsrPhtm);
|
||||
~ICRP110PhantomMessenger();
|
||||
void SetNewValue(G4UIcommand* command, G4String newValue);
|
||||
|
||||
private:
|
||||
ICRP110PhantomConstruction* fUserPhantom;
|
||||
G4UIdirectory* fPhantomDir;
|
||||
G4UIcmdWithAString* fSexCmd;
|
||||
G4UIcmdWithAString* fSectionCmd;
|
||||
};
|
||||
#endif
|
||||
|
||||
+142
@@ -0,0 +1,142 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// Code developed by:
|
||||
// S.Guatelli, M. Large and A. Malaroda, University of Wollongong
|
||||
//
|
||||
// Code based on the extended example DICOM
|
||||
//
|
||||
#ifndef ICRP110PhantomNestedParameterisation_HH
|
||||
#define ICRP110PhantomNestedParameterisation_HH
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
#include "G4Types.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4VNestedParameterisation.hh"
|
||||
|
||||
class G4VPhysicalVolume;
|
||||
class G4VTouchable;
|
||||
class G4VSolid;
|
||||
class G4Material;
|
||||
class G4VisAttributes;
|
||||
|
||||
// CSG Entities which may be parameterised/replicated
|
||||
class G4Box;
|
||||
class G4Tubs;
|
||||
class G4Trd;
|
||||
class G4Trap;
|
||||
class G4Cons;
|
||||
class G4Sphere;
|
||||
class G4Ellipsoid;
|
||||
class G4Orb;
|
||||
class G4Torus;
|
||||
class G4Para;
|
||||
class G4Polycone;
|
||||
class G4Polyhedra;
|
||||
class G4Hype;
|
||||
|
||||
/// Implements a G4VNestedParameterisation
|
||||
|
||||
class ICRP110PhantomNestedParameterisation : public G4VNestedParameterisation
|
||||
{
|
||||
public:
|
||||
|
||||
ICRP110PhantomNestedParameterisation(const G4ThreeVector& voxelSize,
|
||||
std::vector<G4Material*>& mat,
|
||||
G4int fnX_ = 0, G4int fnY_ = 0, G4int fnZ_ = 0);
|
||||
// the total number of voxels along X, Y and Z
|
||||
// are initialised to zero
|
||||
|
||||
~ICRP110PhantomNestedParameterisation();
|
||||
|
||||
|
||||
virtual G4Material* ComputeMaterial(G4VPhysicalVolume *currentVol,
|
||||
const G4int repNo,
|
||||
const G4VTouchable *parentTouch );
|
||||
G4int GetNumberOfMaterials() const;
|
||||
G4Material* GetMaterial(G4int idx) const;
|
||||
|
||||
G4int GetMaterialIndex( G4int copyNo) const;
|
||||
|
||||
void SetMaterialIndices( size_t* matInd ){ fMaterialIndices = matInd;}
|
||||
// This method passes the information of the matID associated to each voxel
|
||||
// from the DetectorConstruction to the NestedParameterisation class
|
||||
|
||||
void SetNoVoxel( G4int nx, G4int ny, G4int nz );
|
||||
// This method passes the total number of voxels along X, Y and Z from
|
||||
// the DetectorConstruction to the NestedParameterisation class
|
||||
|
||||
void ComputeTransformation(const G4int no,
|
||||
G4VPhysicalVolume *currentPV) const;
|
||||
|
||||
// Additional standard Parameterisation methods,
|
||||
// which can be optionally defined, in case solid is used.
|
||||
void ComputeDimensions(G4Box &, const G4int,
|
||||
const G4VPhysicalVolume *) const;
|
||||
|
||||
|
||||
private: // Dummy declarations to get rid of warnings ...
|
||||
|
||||
void ComputeDimensions (G4Trd&, const G4int,
|
||||
const G4VPhysicalVolume*) const {}
|
||||
void ComputeDimensions (G4Trap&, const G4int,
|
||||
const G4VPhysicalVolume*) const {}
|
||||
void ComputeDimensions (G4Cons&, const G4int,
|
||||
const G4VPhysicalVolume*) const {}
|
||||
void ComputeDimensions (G4Sphere&, const G4int,
|
||||
const G4VPhysicalVolume*) const {}
|
||||
void ComputeDimensions (G4Ellipsoid&, const G4int,
|
||||
const G4VPhysicalVolume*) const {}
|
||||
void ComputeDimensions (G4Orb&, const G4int,
|
||||
const G4VPhysicalVolume*) const {}
|
||||
void ComputeDimensions (G4Torus&, const G4int,
|
||||
const G4VPhysicalVolume*) const {}
|
||||
void ComputeDimensions (G4Para&, const G4int,
|
||||
const G4VPhysicalVolume*) const {}
|
||||
void ComputeDimensions (G4Hype&, const G4int,
|
||||
const G4VPhysicalVolume*) const {}
|
||||
void ComputeDimensions (G4Tubs&, const G4int,
|
||||
const G4VPhysicalVolume*) const {}
|
||||
void ComputeDimensions (G4Polycone&, const G4int,
|
||||
const G4VPhysicalVolume*) const {}
|
||||
void ComputeDimensions (G4Polyhedra&, const G4int,
|
||||
const G4VPhysicalVolume*) const {}
|
||||
|
||||
void ReadColourData();
|
||||
|
||||
using G4VNestedParameterisation::ComputeMaterial;
|
||||
|
||||
private:
|
||||
|
||||
G4double fdX,fdY,fdZ; // Half of the voxels along X, Y and Z
|
||||
G4int fnX,fnY,fnZ; // Number of voxels along X, Y and Z
|
||||
std::vector<G4Material*> fMaterials; // Vector with materials
|
||||
size_t* fMaterialIndices; // Index of the material associated to each voxel
|
||||
std::map<G4String,G4VisAttributes*> fColours;
|
||||
};
|
||||
#endif
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Code developed by:
|
||||
// S.Guatelli, M. Large and A. Malaroda, University of Wollongong
|
||||
//
|
||||
#ifndef ICRP110PhantomPrimaryGeneratorAction_h
|
||||
#define ICRP110PhantomPrimaryGeneratorAction_h 1
|
||||
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4GeneralParticleSource;
|
||||
class G4Event;
|
||||
|
||||
class ICRP110PhantomPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
ICRP110PhantomPrimaryGeneratorAction();
|
||||
~ICRP110PhantomPrimaryGeneratorAction();
|
||||
|
||||
public:
|
||||
void GeneratePrimaries(G4Event* anEvent);
|
||||
|
||||
private:
|
||||
G4GeneralParticleSource* fParticleGun;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Authors: S.Guatelli, Matthew Large and A. Malaroda, University of Wollongong
|
||||
//
|
||||
//
|
||||
|
||||
#ifndef ICRP110ScoreWriterMessenger_h
|
||||
#define ICRP110ScoreWriterMessenger_h 1
|
||||
#include "G4UImessenger.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class ICRP110UserScoreWriter;
|
||||
class G4UIcommand;
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithAString;
|
||||
class G4UIcmdWithoutParameter;
|
||||
|
||||
class ICRP110ScoreWriterMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
ICRP110ScoreWriterMessenger(ICRP110UserScoreWriter* myUsrScWriter);
|
||||
~ICRP110ScoreWriterMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand* command, G4String newValue);
|
||||
|
||||
private:
|
||||
ICRP110UserScoreWriter* fUserScoreWriter;
|
||||
G4UIdirectory* fPhantomDir;
|
||||
G4UIcmdWithAString* fSexCmd;
|
||||
G4UIcmdWithAString* fSectionCmd;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Code developed by:
|
||||
// S.Guatelli, M. Large and A. Malaroda, University of Wollongong
|
||||
//
|
||||
// Original code from geant4/examples/extended/runAndEvent/RE03
|
||||
//
|
||||
|
||||
#ifndef ICRP110UserScoreWriter_h
|
||||
#define ICRP110UserScoreWriter_h 1
|
||||
|
||||
#include "ICRP110ScoreWriterMessenger.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VScoreWriter.hh"
|
||||
|
||||
class ICRP110UserScoreWriter:public G4VScoreWriter
|
||||
{
|
||||
public:
|
||||
ICRP110UserScoreWriter();
|
||||
virtual ~ICRP110UserScoreWriter();
|
||||
// store a quantity into a file
|
||||
void DumpQuantityToFile(const G4String & psName,
|
||||
const G4String & fileName,
|
||||
const G4String & option);
|
||||
void SetPhantomSex(G4String);
|
||||
void SetPhantomSection(G4String);
|
||||
|
||||
private:
|
||||
ICRP110ScoreWriterMessenger* fMessenger;
|
||||
G4String fSex;
|
||||
G4String fSection;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user