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

add a hello world algorithm.

parent ce324525
No related branches found
No related tags found
No related merge requests found
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)
find_package(GaudiProject)
gaudi_project(cepc-offline HEAD
USE Gaudi v29r2 )
\ No newline at end of file
gaudi_subdir(Examples v0r0)
set(Examples_srcs
src/HelloWorld/*.cpp
)
gaudi_add_module(Examples ${Examples_srcs}
INCLUDE_DIRS GaudiKernel
LINK_LIBRARIES GaudiKernel
)
\ No newline at end of file
#include "HelloAlg.h"
DECLARE_COMPONENT(HelloAlg)
HelloAlg::HelloAlg(const std::string& name, ISvcLocator* pSvcLocator)
: Algorithm(name, pSvcLocator) {
}
StatusCode
HelloAlg::initialize() {
StatusCode sc;
info() << "MyInt: " << m_int.value() << endmsg;
return sc;
}
StatusCode
HelloAlg::execute() {
StatusCode sc;
return sc;
}
StatusCode
HelloAlg::finalize() {
StatusCode sc;
return sc;
}
#ifndef HelloAlg_h
#define HelloAlg_h
#include <GaudiKernel/Algorithm.h>
#include "GaudiKernel/Property.h"
class HelloAlg: public Algorithm {
public:
HelloAlg(const std::string& name, ISvcLocator* pSvcLocator);
StatusCode initialize() override;
StatusCode execute() override;
StatusCode finalize() override;
private:
Gaudi::Property<int> m_int{this, "MyInt", 42};
};
#endif
gaudi_subdir(Generator v0r0)
\ No newline at end of file
# cepc-offline # cepc-offline
CEPC offline software prototype CEPC offline software prototype based on Gaudi
## Packages ## Packages
* Core: Core Software Based on Gaudi * Core: Core Software Based on Gaudi
* Simulation: Physics Generator & Detector Simulation * Generator: Physics Generator
* Reconstruction * Simulation: Detector Simulation
* Examples: For new comers * Reconstruction: Reconstruction
* Examples: For new comers and users
* cepcenv: tools to help developers build packages
* cepcenv: tools to help developers build packages
\ No newline at end of file
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