/search.css" rel="stylesheet" type="text/css"/> /search.js">
00001 #include "G4DhNeutronCaptureInfoTool.h" 00002 00003 G4DhNeutronCaptureInfoTool::G4DhNeutronCaptureInfoTool(const std::string& type, 00004 const std::string& name, 00005 const IInterface* parent) : GaudiTool(type, name, parent) 00006 { 00007 declareInterface<INeutronCaptureInfo>(this); 00008 } 00009 00010 G4DhNeutronCaptureInfoTool::~G4DhNeutronCaptureInfoTool() {} 00011 00012 /* GaudiTool methods */ 00013 StatusCode G4DhNeutronCaptureInfoTool::initialize() 00014 { 00015 this->GaudiTool::initialize(); 00016 00017 return StatusCode::SUCCESS; 00018 } 00019 00020 StatusCode G4DhNeutronCaptureInfoTool::finalize() 00021 { 00022 return this->GaudiTool::finalize(); 00023 } 00024 00025 /* INeutronCapture method */ 00026 // add in neutron capture information 00027 void G4DhNeutronCaptureInfoTool::addCapture(const G4DhNeutronCapture& capture) 00028 { 00029 aNeutronCapture = capture; 00030 } 00031 00032 // Access the last captures 00033 G4DhNeutronCapture& G4DhNeutronCaptureInfoTool::getCapture() 00034 { 00035 return aNeutronCapture; 00036 } 00037