Skip to content
Snippets Groups Projects
BeamBackgroundFileParserV0.h 666 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& _data);
    bool load(IBeamBackgroundFileParser::BeamBackgroundData& _data, int iEntry) { return load(_data); }
    bool SampleParticleNum(int&, int&) { return true; }
    //int totalEnteries() { return 0; }

private:
    std::ifstream m_input;
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed

    int m_pdgid;
    double m_beam_energy;