output file
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "GeometryDescriptor.hh"
|
||||
#include "G4VPhysicalVolume.hh"
|
||||
#include "G4System.hh"
|
||||
|
||||
Layer::Layer(){
|
||||
thickness = 0;
|
||||
@@ -40,6 +41,13 @@ GeometryDescriptor::GeometryDescriptor(double xy_width){
|
||||
xywidth = xy_width;
|
||||
}
|
||||
|
||||
GeometryDescriptor::~GeometryDescriptor() {
|
||||
if(g4system != nullptr){
|
||||
if(this == g4system->assigned_cw){ //unassign
|
||||
g4system->assigned_cw = nullptr;}
|
||||
}
|
||||
};
|
||||
|
||||
void GeometryDescriptor::addLayer(double thickness, std::string material, bool isActive, int nx, int ny){
|
||||
if(ny<0){
|
||||
ny = nx;
|
||||
|
||||
Reference in New Issue
Block a user