CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 <string>
13 #include <vector>
14 
15 class DDG4SolidConverter;
16 class G4LogicalVolume;
17 class G4VPhysicalVolume;
18 class G4Material;
19 class G4VSolid;
20 class DDCompactView;
22 
23 class DDG4Builder {
24 public:
26  ~DDG4Builder();
27  G4LogicalVolume *BuildGeometry(SensitiveDetectorCatalog &);
28 
29 private:
30  G4VSolid *convertSolid(const DDSolid &dSolid);
31  G4LogicalVolume *convertLV(const DDLogicalPart &dLogical);
32  G4Material *convertMaterial(const DDMaterial &dMaterial);
33  int getInt(const std::string &s, const DDLogicalPart &dLogical);
34  double getDouble(const std::string &s, const DDLogicalPart &dLogical);
35 
37  std::map<DDMaterial, G4Material *> mats_;
38  std::map<DDSolid, G4VSolid *> sols_;
39  std::map<DDLogicalPart, G4LogicalVolume *> logs_;
40 
44  bool check_;
45 };
46 
47 #endif
std::map< DDLogicalPart, G4LogicalVolume * > logs_
Definition: DDG4Builder.h:39
G4LogicalVolume * convertLV(const DDLogicalPart &dLogical)
Definition: DDG4Builder.cc:32
double getDouble(const std::string &s, const DDLogicalPart &dLogical)
Definition: DDG4Builder.cc:215
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:45
G4LogicalVolumeToDDLogicalPartMap & map_
Definition: DDG4Builder.h:42
G4LogicalVolume * BuildGeometry(SensitiveDetectorCatalog &)
Definition: DDG4Builder.cc:97
std::vector< DDG4Dispatchable * > DDG4DispContainer
std::map< DDSolid, G4VSolid * > sols_
Definition: DDG4Builder.h:38
const DDCompactView * compactView_
Definition: DDG4Builder.h:41
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
A DDSolid represents the shape of a part.
Definition: DDSolid.h:39
G4Material * convertMaterial(const DDMaterial &dMaterial)
Definition: DDG4Builder.cc:59
DDG4Builder(const DDCompactView *, G4LogicalVolumeToDDLogicalPartMap &, bool check)
Definition: DDG4Builder.cc:25
std::map< DDMaterial, G4Material * > mats_
Definition: DDG4Builder.h:37
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:93
DDG4SolidConverter * solidConverter_
Definition: DDG4Builder.h:36
G4VSolid * convertSolid(const DDSolid &dSolid)
Definition: DDG4Builder.cc:50
DDG4DispContainer * theVectorOfDDG4Dispatchables_
Definition: DDG4Builder.h:43
int getInt(const std::string &s, const DDLogicalPart &dLogical)
Definition: DDG4Builder.cc:193