Skip to content
Snippets Groups Projects
Commit ba620fbb authored by Andre Sailer's avatar Andre Sailer
Browse files

Bugfix for Geant4FieldSetup

Macro needs string concatenation instead of quotation marks,
otherwise the plugin name comes out wrong
parent 91ae2ca8
No related branches found
No related tags found
No related merge requests found
...@@ -214,7 +214,7 @@ namespace { ...@@ -214,7 +214,7 @@ namespace {
#define DECLARE_GEANT4_SETUP(name,func) \ #define DECLARE_GEANT4_SETUP(name,func) \
namespace DD4hep { namespace Simulation { struct xml_g4_setup_##name {}; \ namespace DD4hep { namespace Simulation { struct xml_g4_setup_##name {}; \
template <> long Geant4SetupAction<DD4hep::Simulation::xml_g4_setup_##name>::create(LCDD& l,const DD4hep::Geometry::GeoHandler& e, const std::map<std::string,std::string>& a) {return func(l,e,a);} }} \ template <> long Geant4SetupAction<DD4hep::Simulation::xml_g4_setup_##name>::create(LCDD& l,const DD4hep::Geometry::GeoHandler& e, const std::map<std::string,std::string>& a) {return func(l,e,a);} }} \
DD4HEP_PLUGINSVC_FACTORY(xml_g4_setup_##name,name "_Geant4_action",long(DD4hep::Geometry::LCDD*,const DD4hep::Geometry::GeoHandler*,const std::map<std::string,std::string>*),__LINE__) DD4HEP_PLUGINSVC_FACTORY(xml_g4_setup_##name,name##_Geant4_action,long(DD4hep::Geometry::LCDD*,const DD4hep::Geometry::GeoHandler*,const std::map<std::string,std::string>*),__LINE__)
/// Plugin defintion to create event reader objects /// Plugin defintion to create event reader objects
#define DECLARE_GEANT4_EVENT_READER(name) \ #define DECLARE_GEANT4_EVENT_READER(name) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment