Skip to content
Snippets Groups Projects
GenEvent.h 803 B
Newer Older
fangwx@ihep.ac.cn's avatar
V3
fangwx@ihep.ac.cn committed
#ifndef GenEvent_h 
#define GenEvent_h 1

#include "edm4hep/MCParticleCollection.h"//plico
fangwx@ihep.ac.cn's avatar
V3
fangwx@ihep.ac.cn committed

namespace MyHepMC {

class GenEvent{
    public: 
        //GenEvent();
        GenEvent(edm4hep::MCParticleCollection& mcCol);
fangwx@ihep.ac.cn's avatar
V3
fangwx@ihep.ac.cn committed
        ~GenEvent();
        void SetEventHeader(long event_id_, long run_id_, float time_, std::string det_name_);
        //void SetMCCollection(edm4hep::MCParticleCollection vec_);
fangwx@ihep.ac.cn's avatar
V3
fangwx@ihep.ac.cn committed
        long getID();
        long getRun();
        long getTime();
        void ReSet();
        std::string getName();
        edm4hep::MCParticleCollection getMCVec();
        edm4hep::MCParticleCollection& m_mc_vec;
        //edm4hep::MCParticleCollection m_mc_vec;
fangwx@ihep.ac.cn's avatar
V3
fangwx@ihep.ac.cn committed
    private:
        long m_event_id;
        long m_run_id;
        float m_time;
        std::string m_det_name;
};

}
#endif