diff --git a/Generator/CMakeLists.txt b/Generator/CMakeLists.txt index 9264abd87e51c4ae075f3802d78e49a5d662f2a7..6169e415c23b9ec0ea47b9458f8b436a4194932c 100644 --- a/Generator/CMakeLists.txt +++ b/Generator/CMakeLists.txt @@ -15,7 +15,9 @@ gaudi_add_module(GenAlgo src/SLCIORdr.cpp src/HepMCRdr.cpp src/GtGunTool.cpp + # ------- Beam Background ------- src/GtBeamBackgroundTool.cpp + src/BeamBackgroundFileParserV0.cpp LINK ${ROOT_LIBRARIES} k4FWCore::k4FWCore Gaudi::GaudiAlgLib diff --git a/Generator/src/BeamBackgroundFileParserV0.cpp b/Generator/src/BeamBackgroundFileParserV0.cpp new file mode 100644 index 0000000000000000000000000000000000000000..9a5447dcb3df71d99017f67ac4b2bd02d3b30bfd --- /dev/null +++ b/Generator/src/BeamBackgroundFileParserV0.cpp @@ -0,0 +1,10 @@ + +#include "BeamBackgroundFileParserV0.h" + +BeamBackgroundFileParserV0::BeamBackgroundFileParserV0(const std::string& filename) { + m_input.open(filename.c_str()); +} + +bool BeamBackgroundFileParserV0::load(IBeamBackgroundFileParser::BeamBackgroundData& result) { + return true; +} diff --git a/Generator/src/BeamBackgroundFileParserV0.h b/Generator/src/BeamBackgroundFileParserV0.h new file mode 100644 index 0000000000000000000000000000000000000000..906d5814afcd125d2e297c93aa23fe61d4b0b318 --- /dev/null +++ b/Generator/src/BeamBackgroundFileParserV0.h @@ -0,0 +1,17 @@ +#ifndef BeamBackgroundFileParserV0_h +#define BeamBackgroundFileParserV0_h + +#include "IBeamBackgroundFileParser.h" + +#include <fstream> + +class BeamBackgroundFileParserV0: public IBeamBackgroundFileParser { +public: + BeamBackgroundFileParserV0(const std::string& filename); + + bool load(IBeamBackgroundFileParser::BeamBackgroundData&); +private: + std::ifstream m_input; +}; + +#endif