reduced code with for

parent 3e8c899f
......@@ -58,6 +58,8 @@ class B1DetectorConstruction : public G4VUserDetectorConstruction
G4LogicalVolume* GetScoringVolume() const { return fScoringVolume; }
G4LogicalVolume* GetScoringDetector() const { return fScoringDetector; }
G4int return_num_detec() {return number_detectors; }
G4double get_delta(){return delta;}
G4double get_size() {return size;}
G4double GetDetecPos(G4int num_detec);
......@@ -85,6 +87,8 @@ class B1DetectorConstruction : public G4VUserDetectorConstruction
G4LogicalVolume* fScoringDetector;
G4LogicalVolume* logicWorld;
std::vector<G4double> positions;
std::vector<G4LogicalVolume* > logicDetector;
G4int number_detectors;
G4double delta;
G4double size;
G4Tubs* detector;
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment