CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDG4Builder.h
Go to the documentation of this file.
1 #ifndef SimG4Core_DDG4Builder_h
2 #define SimG4Core_DDG4Builder_h
3 
6 
10 
11 #include <map>
12 #include <vector>
13 #include <string>
14 
15 class DDG4SolidConverter;
16 class G4LogicalVolume;
17 class G4VPhysicalVolume;
18 class G4Material;
19 class G4VSolid;
20 class DDCompactView;
21 
22 class DDG4Builder {
23 
24 public:
25  DDG4Builder(const DDCompactView*, bool check=false);
26  ~DDG4Builder();
29 
30 protected:
31  G4VSolid * convertSolid(const DDSolid & dSolid);
32  G4LogicalVolume * convertLV(const DDLogicalPart & dLogical);
33  G4Material * convertMaterial(const DDMaterial & dMaterial);
34  int getInt(const std::string & s, const DDLogicalPart & dLogical);
35  double getDouble(const std::string & s, const DDLogicalPart & dLogical);
36 
37 protected:
39  std::map<DDMaterial,G4Material*> mats_;
40  std::map<DDSolid,G4VSolid*> sols_;
41  std::map<DDLogicalPart,G4LogicalVolume*> logs_;
42 
43 private:
47  bool check_;
48 };
49 
50 #endif
std::vector< DDG4Dispatchable * > DDG4DispContainer
G4LogicalVolume * convertLV(const DDLogicalPart &dLogical)
Definition: DDG4Builder.cc:44
std::map< DDSolid, G4VSolid * > sols_
Definition: DDG4Builder.h:40
double getDouble(const std::string &s, const DDLogicalPart &dLogical)
Definition: DDG4Builder.cc:217
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:41
std::map< DDLogicalPart, G4LogicalVolume * > logs_
Definition: DDG4Builder.h:41
const DDCompactView * compactView
Definition: DDG4Builder.h:44
static DDG4DispContainer * theVectorOfDDG4Dispatchables_
Definition: DDG4Builder.h:45
type of data representation of DDCompactView
Definition: DDCompactView.h:77
A DDSolid represents the shape of a part.
Definition: DDSolid.h:35
G4Material * convertMaterial(const DDMaterial &dMaterial)
Definition: DDG4Builder.cc:69
bool check(const std::string &)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:88
static DDG4DispContainer * theVectorOfDDG4Dispatchables()
Definition: DDG4Builder.cc:31
DDG4SolidConverter * solidConverter_
Definition: DDG4Builder.h:38
DDGeometryReturnType BuildGeometry()
Definition: DDG4Builder.cc:109
G4VSolid * convertSolid(const DDSolid &dSolid)
Definition: DDG4Builder.cc:61
DDG4Builder(const DDCompactView *, bool check=false)
Definition: DDG4Builder.cc:35
std::map< DDMaterial, G4Material * > mats_
Definition: DDG4Builder.h:39
G4LogicalVolumeToDDLogicalPartMap map_
Definition: DDG4Builder.h:46
int getInt(const std::string &s, const DDLogicalPart &dLogical)
Definition: DDG4Builder.cc:196