Skip to content
Snippets Groups Projects
Commit 680d4d13 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

Migrate FWCore.

parent 315669ae
No related branches found
No related tags found
No related merge requests found
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0) CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)
find_package(ROOT COMPONENTS RIO Tree)
find_package(GaudiProject) find_package(GaudiProject)
gaudi_project(CEPCSW HEAD # Set up C++ Standard
USE Gaudi v29r2 ) # ``-DCMAKE_CXX_STANDARD=<standard>`` when invoking CMake
\ No newline at end of file set(CMAKE_CXX_STANDARD 17 CACHE STRING "")
if(NOT CMAKE_CXX_STANDARD MATCHES "14|17")
message(FATAL_ERROR "Unsupported C++ standard: ${CMAKE_CXX_STANDARD}")
endif()
gaudi_project(CEPCSW v0r1
USE Gaudi v33r1 )
\ No newline at end of file
...@@ -6,7 +6,6 @@ gaudi_subdir(FWCore v0r1) ...@@ -6,7 +6,6 @@ gaudi_subdir(FWCore v0r1)
find_package(podio REQUIRED) find_package(podio REQUIRED)
find_package(plcio REQUIRED) find_package(plcio REQUIRED)
find_package(LCIO REQUIRED) find_package(LCIO REQUIRED)
find_package(ROOT COMPONENTS RIO Tree)
# this declaration will not be needed in the future # this declaration will not be needed in the future
gaudi_depends_on_subdirs(GaudiAlg GaudiKernel) gaudi_depends_on_subdirs(GaudiAlg GaudiKernel)
...@@ -15,8 +14,8 @@ gaudi_install_python_modules() ...@@ -15,8 +14,8 @@ gaudi_install_python_modules()
gaudi_add_library(FWCore gaudi_add_library(FWCore
src/*.cpp src/*.cpp
INCLUDE_DIRS ${podio_INCLUDE_DIRS} ${LCIO_INCLUDE_DIRS} ${plcio_INCLUDE_DIRS} ROOT INCLUDE_DIRS podio ${LCIO_INCLUDE_DIRS} ${plcio_INCLUDE_DIRS} ROOT
LINK_LIBRARIES GaudiAlgLib GaudiKernel ${podio_LIBRARIES} ${LCIO_LIBRARIES} ${plcio_LIBRARIES} ROOT LINK_LIBRARIES GaudiAlgLib GaudiKernel podio::podioRootIO ${LCIO_LIBRARIES} ${plcio_LIBRARIES} ROOT
PUBLIC_HEADERS FWCore) PUBLIC_HEADERS FWCore)
gaudi_add_module(FWCorePlugins gaudi_add_module(FWCorePlugins
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
class LCIODataSvc : public DataSvc { class LCIODataSvc : public DataSvc {
public: public:
friend class SvcFactory<LCIODataSvc>;
typedef std::vector<std::pair<std::string, podio::CollectionBase*>> CollRegistry; typedef std::vector<std::pair<std::string, podio::CollectionBase*>> CollRegistry;
virtual StatusCode initialize(); virtual StatusCode initialize();
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// Instantiation of a static factory class used by clients to create // Instantiation of a static factory class used by clients to create
// instances of this service // instances of this service
DECLARE_SERVICE_FACTORY(CEPCDataSvc) DECLARE_COMPONENT(CEPCDataSvc)
/// Standard Constructor /// Standard Constructor
CEPCDataSvc::CEPCDataSvc(const std::string& name, ISvcLocator* svc) CEPCDataSvc::CEPCDataSvc(const std::string& name, ISvcLocator* svc)
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
class CEPCDataSvc : public PodioDataSvc class CEPCDataSvc : public PodioDataSvc
{ {
friend class SvcFactory<CEPCDataSvc>;
public: public:
/// Standard Constructor /// Standard Constructor
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
typedef std::vector<lcio::MCParticle*> MCParticleVec ; typedef std::vector<lcio::MCParticle*> MCParticleVec ;
DECLARE_SERVICE_FACTORY(LCIODataSvc) DECLARE_COMPONENT(LCIODataSvc)
/// Service initialisation /// Service initialisation
StatusCode LCIODataSvc::initialize() { StatusCode LCIODataSvc::initialize() {
// Nothing to do: just call base class initialisation // Nothing to do: just call base class initialisation
......
...@@ -19,7 +19,6 @@ class LCIODataSvc; ...@@ -19,7 +19,6 @@ class LCIODataSvc;
*/ */
class LCIOInput : public GaudiAlgorithm { class LCIOInput : public GaudiAlgorithm {
friend class AlgFactory<LCIOInput>;
public: public:
/// Constructor. /// Constructor.
......
...@@ -19,7 +19,6 @@ class PodioDataSvc; ...@@ -19,7 +19,6 @@ class PodioDataSvc;
*/ */
class PodioInput : public GaudiAlgorithm { class PodioInput : public GaudiAlgorithm {
friend class AlgFactory<PodioInput>;
public: public:
/// Constructor. /// Constructor.
......
...@@ -14,7 +14,6 @@ class TFile; ...@@ -14,7 +14,6 @@ class TFile;
class PodioDataSvc; class PodioDataSvc;
class PodioOutput : public GaudiAlgorithm { class PodioOutput : public GaudiAlgorithm {
friend class AlgFactory<PodioOutput>;
public: public:
/// Constructor. /// Constructor.
......
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