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

WIP: add a dummy DedxSimTool.

parent 1624439a
No related branches found
No related tags found
No related merge requests found
gaudi_subdir(DetSimDedx v0r0)
gaudi_depends_on_subdirs(
FWCore
Simulation/DetSimInterface
)
find_package(Geant4 REQUIRED ui_all vis_all)
include(${Geant4_USE_FILE})
find_package(DD4hep COMPONENTS DDG4 REQUIRED)
set(DetSimDedx_srcs
src/DummyDedxSimTool.cpp
)
gaudi_add_module(DetSimDedx ${DetSimDedx_srcs}
INCLUDE_DIRS
LINK_LIBRARIES
DD4hep
${DD4hep_COMPONENT_LIBRARIES}
GaudiKernel
)
#include "DummyDedxSimTool.h"
#include "G4Step.hh"
DECLARE_COMPONENT(DummyDedxSimTool);
StatusCode DummyDedxSimTool::initialize() {
StatusCode sc;
return sc;
}
StatusCode DummyDedxSimTool::finalize() {
StatusCode sc;
return sc;
}
double DummyDedxSimTool::dedx(const G4Step* aStep) {
double result = 0.0;
return result;
}
#ifndef DummyDedxSimTool_h
#define DummyDedxSimTool_h
#include "GaudiKernel/AlgTool.h"
#include "DetSimInterface/IDedxSimTool.h"
class DummyDedxSimTool: public extends<AlgTool, IDedxSimTool> {
public:
using extends::extends;
/// Overriding initialize and finalize
StatusCode initialize() override;
StatusCode finalize() override;
/// Overriding dedx tool
double dedx(const G4Step* aStep) override;
};
#endif
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