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 struct DDPosData;
16 class DDG4SolidConverter;
17 class G4LogicalVolume;
18 class G4VPhysicalVolume;
19 class G4Material;
20 class G4VSolid;
21 class DDCompactView;
22 
23 class DDG4Builder {
24 
25 public:
26  DDG4Builder(const DDCompactView*, bool check=false);
27  ~DDG4Builder();
30 
31 protected:
32  G4VSolid * convertSolid(const DDSolid & dSolid);
33  G4LogicalVolume * convertLV(const DDLogicalPart & dLogical);
34  G4Material * convertMaterial(const DDMaterial & dMaterial);
35  int getInt(const std::string & s, const DDLogicalPart & dLogical);
36  double getDouble(const std::string & s, const DDLogicalPart & dLogical);
37 
38 protected:
40  std::map<DDMaterial,G4Material*> mats_;
41  std::map<DDSolid,G4VSolid*> sols_;
42  std::map<DDLogicalPart,G4LogicalVolume*> logs_;
43 
44 private:
48  bool check_;
49 };
50 
51 #endif
std::vector< DDG4Dispatchable * > DDG4DispContainer
G4LogicalVolume * convertLV(const DDLogicalPart &dLogical)
Definition: DDG4Builder.cc:44
Relative position of a child-volume inside a parent-volume.
Definition: DDPosData.h:16
std::map< DDSolid, G4VSolid * > sols_
Definition: DDG4Builder.h:41
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:42
const DDCompactView * compactView
Definition: DDG4Builder.h:45
static DDG4DispContainer * theVectorOfDDG4Dispatchables_
Definition: DDG4Builder.h:46
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:39
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:40
G4LogicalVolumeToDDLogicalPartMap map_
Definition: DDG4Builder.h:47
int getInt(const std::string &s, const DDLogicalPart &dLogical)
Definition: DDG4Builder.cc:196