CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TauolaInterface.h
Go to the documentation of this file.
1 #ifndef gen_ExternalDecays_TauolaInterface_h
2 #define gen_ExternalDecays_TauolaInterface_h
3 
4 // #include "HepPDT/defs.h"
5 // #include "HepPDT/TableBuilder.hh"
6 #include "HepPDT/ParticleDataTable.hh"
7 
11 
12 namespace HepMC
13 {
14 class GenEvent;
15 }
16 
17 namespace gen {
18 
19  //class Pythia6Service;
20 
22  {
23  public:
24 
25  // ctor & dtor
28 
29  void enablePolarization() { fPolarization = 1; return; }
30  void disablePolarization() { fPolarization = 0; return; }
31  void init( const edm::EventSetup& );
32  const std::vector<int>& operatesOnParticles() { return fPDGs; }
33  HepMC::GenEvent* decay( HepMC::GenEvent* );
34  void statistics() ;
35 
36  private:
37 
38  //
39  std::vector<int> fPDGs;
41 
45  //CLHEP::HepRandomEngine* fRandomEngine;
46  //CLHEP::RandFlat* fRandomGenerator;
47 
48  };
49 
50 /* this is the code for new Tauola++
51 
52  class TauolaInterface
53  {
54  public:
55 
56  // ctor & dtor
57  TauolaInterface( const edm::ParameterSet& );
58  ~TauolaInterface();
59 
60  void enablePolarization() { fPolarization = true; return; }
61  void disablePolarization() { fPolarization = false; return; }
62  void init( const edm::EventSetup& );
63  const std::vector<int>& operatesOnParticles() { return fPDGs; }
64  HepMC::GenEvent* decay( HepMC::GenEvent* );
65  void statistics() ;
66 
67  private:
68 
69  //
70  std::vector<int> fPDGs;
71  bool fPolarization;
72  edm::ESHandle<HepPDT::ParticleDataTable> fPDGTable ;
73  bool fIsInitialized;
74 
75  };
76 
77 */
78 
79 }
80 
81 #endif
HepMC::GenEvent * decay(HepMC::GenEvent *)
TauolaInterface(const edm::ParameterSet &)
const std::vector< int > & operatesOnParticles()
edm::ESHandle< HepPDT::ParticleDataTable > fPDGTable
std::vector< int > fPDGs
Pythia6Service * fPy6Service
void init(const edm::EventSetup &)