BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSFactoryBase.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef BDSFACTORYBASE_H
19#define BDSFACTORYBASE_H
20
21#include "globals.hh" // geant4 globals / types
22#include "G4RotationMatrix.hh"
23
24#include <set>
25
26class G4LogicalVolume;
27class G4Material;
28class G4UserLimits;
29class G4VisAttributes;
30class G4VPhysicalVolume;
31class G4VSolid;
32
40{
41public:
43 virtual ~BDSFactoryBase(){;}
44
46 virtual void FactoryBaseCleanUp();
47
48protected:
50 G4double lengthSafety;
53 G4bool visDebug;
55 G4VisAttributes* containerVisAttr;
56 G4UserLimits* defaultUserLimits;
58
59 std::set<G4LogicalVolume*> allLogicalVolumes;
60 std::set<G4VPhysicalVolume*> allPhysicalVolumes;
61 std::set<G4RotationMatrix*> allRotationMatrices;
62 std::set<G4UserLimits*> allUserLimits;
63 std::set<G4VSolid*> allSolids;
64 std::set<G4VisAttributes*> allVisAttributes;
65};
66
67#endif
Common temporary storage for all factories no matter what geometry.
G4bool checkOverlaps
Cache of global constants variable.
G4double lengthSafety
Cache of global constants variable.
G4bool visDebug
Cache of global constants variable.
G4VisAttributes * containerVisAttr
Cache of global constants variable.
G4double lengthSafetyLarge
Cache of global constants variable.
G4int nSegmentsPerCircle
Cache of global constants variable.
G4UserLimits * defaultUserLimits
Cache of global constants variable.
virtual void FactoryBaseCleanUp()
Empty containers for next use - factories are never deleted so can't rely on scope.