Skip to content
Snippets Groups Projects
BeamBackgroundFileParserV0.h 459 B
Newer Older
#ifndef BeamBackgroundFileParserV0_h
#define BeamBackgroundFileParserV0_h

#include "IBeamBackgroundFileParser.h"

#include <fstream>

class BeamBackgroundFileParserV0: public IBeamBackgroundFileParser {
public:
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
    BeamBackgroundFileParserV0(const std::string& filename, int pdgid, double beam_energy);

    bool load(IBeamBackgroundFileParser::BeamBackgroundData&);
private:
    std::ifstream m_input;
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed

    int m_pdgid;
    double m_beam_energy;