/search.css" rel="stylesheet" type="text/css"/> /search.js">
00001 #ifndef G4DHNEUTRONCAPTUREINFOTOOL_H 00002 #define G4DHNEUTRONCAPTUREINFOTOOL_H 00003 00004 #include "G4DataHelpers/G4DhNeutronCapture.h" 00005 #include "G4DataHelpers/INeutronCaptureInfo.h" 00006 #include "GaudiAlg/GaudiTool.h" 00007 00008 /* The tool to access the neutron capture information 00009 --- Wei Wang, Aug 13, 2008 00010 */ 00011 00012 class G4DhNeutronCaptureInfoTool: public GaudiTool, 00013 virtual public INeutronCaptureInfo 00014 { 00015 00016 public: 00017 G4DhNeutronCaptureInfoTool(const std::string& type, 00018 const std::string& name, 00019 const IInterface* parent); 00020 00021 virtual ~G4DhNeutronCaptureInfoTool(); 00022 00023 /* GaudiTool interface */ 00024 virtual StatusCode initialize(); 00025 virtual StatusCode finalize(); 00026 00027 /* INeutronCaptureInfo interface */ 00028 00029 // adding capture information 00030 virtual void addCapture(const G4DhNeutronCapture& capture); 00031 00032 // Access the last captures 00033 virtual G4DhNeutronCapture& getCapture(); 00034 00035 private: 00036 00037 G4DhNeutronCapture aNeutronCapture; 00038 00039 }; 00040 00041 #endif