detector change might work - might

This commit is contained in:
Jan Kieseler
2023-09-20 22:51:37 +02:00
parent a6dfa6079c
commit bdcd83e63f
5 changed files with 35 additions and 19 deletions
+9
View File
@@ -90,6 +90,15 @@ public:
void printSensorEnergies()const;
bool isAssigned()const{
if(layers.size() == 0){
return false;
}
else{
return layers[0].physicalVolume != nullptr;
}
}
private:
double xywidth;
+3 -2
View File
@@ -21,7 +21,7 @@
class G4System{
public:
G4System(){};
G4System(bool Gui=false):gui(Gui){};
~G4System(){
if(visManager != nullptr){
delete visManager;
@@ -31,7 +31,7 @@ G4System(){};
};
void init(ConstructionWrapper &cw, bool gui=false);
void init(ConstructionWrapper &cw);
//will use dawn for visualization, also wrap more in python
void run_visualize(const std::string& partSpecies, double minEnergy_GeV, double maxEnergy_GeV);
//runs the whole gui if available
@@ -50,6 +50,7 @@ private:
void check()const;
bool gui;
G4RunManager * runManager=nullptr;
B4::DetectorConstruction * detConstruction=nullptr;