CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TauolappInterface.h
Go to the documentation of this file.
1 #ifndef gen_TauolaInterface_TauolappInterface_h
2 #define gen_TauolaInterface_TauolappInterface_h
3 #include "HepPDT/ParticleDataTable.hh"
8 namespace HepMC
9 {
10  class GenEvent;
11 }
12 namespace CLHEP
13 {
14  class HepRandomEngine;
15 }
16 namespace gen {
17  extern "C" {
18  void ranmar_( float *rvec, int *lenv );
19  void rmarin_( int*, int*, int* );
20  }
22  public:
23  // ctor & dtor
26  void enablePolarization() { fPolarization = true; return; }
27  void disablePolarization() { fPolarization = false; return; }
28  void init( const edm::EventSetup& );
29  const std::vector<int>& operatesOnParticles() { return fPDGs; }
30  HepMC::GenEvent* decay( HepMC::GenEvent* );
31  void statistics() ;
32  void setRandomEngine(CLHEP::HepRandomEngine* v) { fRandomEngine = v; }
33  static double flat();
34  private:
35  // member function(s)
36  void decodeMDTAU( int );
37  void selectDecayByMDTAU();
38  int selectLeptonic();
39  int selectHadronic();
40  //
41  static CLHEP::HepRandomEngine* fRandomEngine;
42  std::vector<int> fPDGs;
47  int fMDTAU;
49  std::vector<int> fLeptonModes;
50  std::vector<int> fHadronModes;
51  std::vector<double> fScaledLeptonBrRatios;
52  std::vector<double> fScaledHadronBrRatios;
53  };
54 }
55 #endif
TauolappInterface(const edm::ParameterSet &)
edm::ParameterSet * fPSet
std::vector< double > fScaledHadronBrRatios
void rmarin_(int *, int *, int *)
double v[5][pyjets_maxn]
std::vector< int > fPDGs
std::vector< int > fLeptonModes
void ranmar_(float *rvec, int *lenv)
void init(const edm::EventSetup &)
HepMC::GenEvent * decay(HepMC::GenEvent *)
std::vector< double > fScaledLeptonBrRatios
static CLHEP::HepRandomEngine * fRandomEngine
std::vector< int > fHadronModes
edm::ESHandle< HepPDT::ParticleDataTable > fPDGTable
const std::vector< int > & operatesOnParticles()
void setRandomEngine(CLHEP::HepRandomEngine *v)