EvtGenInterfaceBase

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
#ifndef gen_EvtGenInterface_EvtGenInterfaceBase_h
#define gen_EvtGenInterface_EvtGenInterfaceBase_h

#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "HepMC/GenEvent.h"
#include <vector>

namespace CLHEP {
  class HepRandomEngine;
}

namespace gen {
  class EvtGenInterfaceBase {
  public:
    EvtGenInterfaceBase() {}
    virtual ~EvtGenInterfaceBase() {}

    virtual void SetPhotosDecayRandomEngine(CLHEP::HepRandomEngine* decayRandomEngine) {}
    virtual void init() {}
    virtual const std::vector<int>& operatesOnParticles() { return m_PDGs; }
    virtual const std::vector<std::string>& specialSettings() { return fSpecialSettings; }
    virtual HepMC::GenEvent* decay(HepMC::GenEvent* evt) { return evt; }
    virtual void setRandomEngine(CLHEP::HepRandomEngine* v) = 0;

  protected:
    std::vector<int> m_PDGs;
    std::vector<std::string> fSpecialSettings;
  };
}  // namespace gen

#endif