CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ParticleReplacerParticleGun.h
Go to the documentation of this file.
1 #ifndef TauAnalysis_MCEmbeddingTools_ParticleReplacerParticleGun_h
2 #define TauAnalysis_MCEmbeddingTools_ParticleReplacerParticleGun_h
3 
17 
21 
22 #include<string>
23 #include<vector>
24 
26 {
27  public:
30 
31  virtual void beginJob();
32  virtual void endJob();
33 
34  std::auto_ptr<HepMC::GenEvent> produce(const std::vector<reco::Particle>&, const reco::Vertex* = 0, const HepMC::GenEvent* = 0, MCParticleReplacer* = 0);
35 
36  private:
37  void correctTauMass(const std::vector<reco::Particle>&, std::vector<HepMC::FourVector>&);
38  void forceTauolaTauDecays();
39  void tauola_forParticleGun(int, int, const HepMC::FourVector&);
40  float tauHelicity(int);
41  float randomPolarization();
42 
45 
53 
54  float pol1_[4];
55  float pol2_[4];
56 };
57 
58 #endif
void tauola_forParticleGun(int, int, const HepMC::FourVector &)
void correctTauMass(const std::vector< reco::Particle > &, std::vector< HepMC::FourVector > &)
std::auto_ptr< HepMC::GenEvent > produce(const std::vector< reco::Particle > &, const reco::Vertex *=0, const HepMC::GenEvent *=0, MCParticleReplacer *=0)
ParticleReplacerParticleGun(const edm::ParameterSet &)
gen::TauolaInterfaceBase * tauola_