From ba620fbb9651ef6940ba8898972818e55fad22b1 Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Thu, 12 Mar 2015 14:05:29 +0000 Subject: [PATCH] Bugfix for Geant4FieldSetup Macro needs string concatenation instead of quotation marks, otherwise the plugin name comes out wrong --- DDG4/include/DDG4/Factories.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDG4/include/DDG4/Factories.h b/DDG4/include/DDG4/Factories.h index 944a46b69..ba21bf2bb 100644 --- a/DDG4/include/DDG4/Factories.h +++ b/DDG4/include/DDG4/Factories.h @@ -214,7 +214,7 @@ namespace { #define DECLARE_GEANT4_SETUP(name,func) \ 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);} }} \ - 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 #define DECLARE_GEANT4_EVENT_READER(name) \ -- GitLab