output file

This commit is contained in:
Jan Kieseler
2023-10-13 09:09:02 +02:00
parent 69cc376c5f
commit 381aa6ea91
9 changed files with 42 additions and 9 deletions
+8
View File
@@ -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;