CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MCParticleReplacer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef TauAnalysis_MCEmbeddingTools_MCParticleReplacer_h
3 #define TauAnalysis_MCEmbeddingTools_MCParticleReplacer_h
4 //
5 // Package: Replacer
6 // Class: Replacer
7 //
15 //
16 // Original Author: M. Zeise
17 // Created: Tue Oct 14 13:04:54 CEST 2008
18 //
19 //
20 
21 
22 // system include files
24 
26 
27 #include<string>
28 
29 #include<boost/shared_ptr.hpp>
30 
32 {
33 public:
34  explicit MCParticleReplacer(const edm::ParameterSet&);
36 
37  virtual void produce(edm::Event& iEvent, const edm::EventSetup& iSetup);
38  virtual void beginRun(edm::Run& iRun,const edm::EventSetup& iSetup);
39  virtual void endRun();
40  virtual void beginJob();
41  virtual void endJob();
42 
43 private:
45  static HepMcMode stringToHepMcMode(const std::string& name);
46 
50  boost::shared_ptr<ParticleReplacerBase> replacer_;
51 };
52 
53 
54 #endif
virtual void beginRun(edm::Run &iRun, const edm::EventSetup &iSetup)
MCParticleReplacer(const edm::ParameterSet &)
int iEvent
Definition: GenABIO.cc:243
static HepMcMode stringToHepMcMode(const std::string &name)
edm::InputTag srcHepMC_
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
boost::shared_ptr< ParticleReplacerBase > replacer_
Definition: Run.h:33