00001 #ifndef Framework_MakerMacros_h 00002 #define Framework_MakerMacros_h 00003 00004 #include "FWCore/Framework/src/Factory.h" 00005 #include "FWCore/Framework/src/WorkerMaker.h" 00006 #include "FWCore/ParameterSet/interface/ParameterSetDescriptionFillerPluginFactory.h" 00007 // The following includes are temporary until a better 00008 // solution can be found. Placing these includes here 00009 // leads to more physical coupling than is probably necessary. 00010 // Another solution is to build a typeid lookup table in the 00011 // implementation file (one every for each XXXWorker) and 00012 // then include all the relevent worker headers in the 00013 // implementation file only. 00014 #include "FWCore/Framework/src/WorkerT.h" 00015 #include "FWCore/Framework/src/OutputWorker.h" 00016 00017 00018 #define DEFINE_FWK_MODULE(type) \ 00019 DEFINE_EDM_PLUGIN (edm::MakerPluginFactory,edm::WorkerMaker<type>,#type); DEFINE_FWK_PSET_DESC_FILLER(type) 00020 00021 #define DEFINE_ANOTHER_FWK_MODULE(type) \ 00022 DEFINE_EDM_PLUGIN (edm::MakerPluginFactory,edm::WorkerMaker<type>,#type); DEFINE_FWK_PSET_DESC_FILLER(type) 00023 00024 // for backward comatibility 00025 #include "FWCore/PluginManager/interface/ModuleDef.h" 00026 #endif