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 
20 
21 #include<string>
22 #include<vector>
23 
25 {
26  public:
29 
30  virtual void beginJob();
31  virtual void endJob();
32 
33  std::auto_ptr<HepMC::GenEvent> produce(const std::vector<reco::Particle>&, const reco::Vertex* = 0, const HepMC::GenEvent* = 0, MCParticleReplacer* = 0);
34 
35  private:
36  void correctTauMass(const std::vector<reco::Particle>&, std::vector<HepMC::FourVector>&);
37  void forceTauolaTauDecays();
38  void tauola_forParticleGun(int, int, const HepMC::FourVector&);
39  float tauHelicity(int);
40  float randomPolarization();
41 
44 
52 
53  float pol1_[4];
54  float pol2_[4];
55 };
56 
57 #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 &)