CMS 3D CMS Logo

TGeoFromDddService.h
Go to the documentation of this file.
1 #ifndef Fireworks_Geometry_TGeoFromDddService_h
2 #define Fireworks_Geometry_TGeoFromDddService_h
3 // -*- C++ -*-
4 //
5 // Package: Geometry
6 // Class : TGeoFromDddService
7 //
16 //
17 // Original Author:
18 // Created: Fri Jul 2 16:11:33 CEST 2010
19 //
20 
21 // system include files
22 
23 #include <string>
24 #include <map>
25 
26 // user include files
27 
28 // forward declarations
29 
30 namespace edm {
31  class ParameterSet;
32  class ActivityRegistry;
33  class Run;
34  class EventSetup;
35 } // namespace edm
36 
37 class DDSolid;
38 class DDMaterial;
39 
40 class TGeoManager;
41 class TGeoShape;
42 class TGeoVolume;
43 class TGeoMaterial;
44 class TGeoMedium;
45 
47 public:
49  virtual ~TGeoFromDddService();
50 
51  // ---------- const member functions ---------------------
52 
53  // ---------- static member functions --------------------
54 
55  // ---------- member functions ---------------------------
56 
57  void postBeginRun(const edm::Run&, const edm::EventSetup&);
58  void postEndRun(const edm::Run&, const edm::EventSetup&);
59 
60  TGeoManager* getGeoManager();
61 
62 private:
63  TGeoFromDddService(const TGeoFromDddService&) = delete; // stop default
64  const TGeoFromDddService& operator=(const TGeoFromDddService&) = delete; // stop default
65 
66  TGeoManager* createManager(int level);
67 
68  TGeoShape* createShape(const std::string& iName, const DDSolid& iSolid);
69  TGeoVolume* createVolume(const std::string& iName, const DDSolid& iSolid, const DDMaterial& iMaterial);
70  TGeoMaterial* createMaterial(const DDMaterial& iMaterial);
71 
72  // ---------- member data --------------------------------
73 
74  int m_level;
75  bool m_verbose;
77  TGeoManager* m_geoManager;
78 
79  std::map<std::string, TGeoShape*> nameToShape_;
80  std::map<std::string, TGeoVolume*> nameToVolume_;
81  std::map<std::string, TGeoMaterial*> nameToMaterial_;
82  std::map<std::string, TGeoMedium*> nameToMedium_;
83 };
84 
85 #endif
personalPlayback.level
level
Definition: personalPlayback.py:22
TGeoFromDddService::createMaterial
TGeoMaterial * createMaterial(const DDMaterial &iMaterial)
Definition: TGeoFromDddService.cc:466
TGeoFromDddService::m_geoManager
TGeoManager * m_geoManager
Definition: TGeoFromDddService.h:77
TGeoFromDddService
Definition: TGeoFromDddService.h:46
ActivityRegistry
TGeoFromDddService::postBeginRun
void postBeginRun(const edm::Run &, const edm::EventSetup &)
Definition: TGeoFromDddService.cc:77
TGeoFromDddService::TGeoFromDddService
TGeoFromDddService(const edm::ParameterSet &, edm::ActivityRegistry &)
Definition: TGeoFromDddService.cc:58
edm::Run
Definition: Run.h:45
edm
HLT enums.
Definition: AlignableModifier.h:19
TGeoFromDddService::m_verbose
bool m_verbose
Definition: TGeoFromDddService.h:75
TGeoFromDddService::operator=
const TGeoFromDddService & operator=(const TGeoFromDddService &)=delete
TGeoFromDddService::nameToShape_
std::map< std::string, TGeoShape * > nameToShape_
Definition: TGeoFromDddService.h:79
TGeoFromDddService::nameToMedium_
std::map< std::string, TGeoMedium * > nameToMedium_
Definition: TGeoFromDddService.h:82
TGeoFromDddService::nameToVolume_
std::map< std::string, TGeoVolume * > nameToVolume_
Definition: TGeoFromDddService.h:80
TGeoFromDddService::createManager
TGeoManager * createManager(int level)
Definition: TGeoFromDddService.cc:133
DDMaterial
DDMaterial is used to define and access material information.
Definition: DDMaterial.h:45
TGeoFromDddService::createShape
TGeoShape * createShape(const std::string &iName, const DDSolid &iSolid)
Definition: TGeoFromDddService.cc:237
TGeoFromDddService::m_eventSetup
const edm::EventSetup * m_eventSetup
Definition: TGeoFromDddService.h:76
edm::ActivityRegistry
Definition: ActivityRegistry.h:132
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
ParameterSet
Definition: Functions.h:16
TGeoFromDddService::postEndRun
void postEndRun(const edm::Run &, const edm::EventSetup &)
Definition: TGeoFromDddService.cc:83
edm::EventSetup
Definition: EventSetup.h:57
TGeoFromDddService::getGeoManager
TGeoManager * getGeoManager()
Definition: TGeoFromDddService.cc:97
TGeoFromDddService::~TGeoFromDddService
virtual ~TGeoFromDddService()
Definition: TGeoFromDddService.cc:67
TGeoFromDddService::createVolume
TGeoVolume * createVolume(const std::string &iName, const DDSolid &iSolid, const DDMaterial &iMaterial)
Definition: TGeoFromDddService.cc:445
TGeoFromDddService::m_level
int m_level
Definition: TGeoFromDddService.h:74
DDSolid
A DDSolid represents the shape of a part.
Definition: DDSolid.h:39
EventSetup
TGeoFromDddService::nameToMaterial_
std::map< std::string, TGeoMaterial * > nameToMaterial_
Definition: TGeoFromDddService.h:81
Run