detector change might work - might
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user