CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TauSpinnerCMS.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: TauSpinnerInterface
4 // Class: TauSpinnerCMS
5 //
9 //
10 // Original Author: Ian Nugent
11 // Created: Fri Feb 15 2013
12 
13 #ifndef TauSpinnerCMS_h
14 #define TauSpinnerCMS_h
15 
16 
17 #include <iostream>
18 
20 
21 // essentials !!!
25 
28 #include "TH1.h"
29 
33 #include "TauSpinner/SimpleParticle.h"
35 
36 
38 {
39 
40  public:
41 
42  //
43  explicit TauSpinnerCMS( const edm::ParameterSet& ) ;
44  virtual ~TauSpinnerCMS() {}
45 
46  virtual void produce( edm::Event&, const edm::EventSetup&);
47  virtual void beginJob() ;
48  virtual void endRun( const edm::Run&, const edm::EventSetup& ) ;
49  virtual void endJob() ;
50  static double flat();
51 
52  private:
53  bool isReco_;
56  std::string LHAPDFname_;
57  double CMSEnergy_;
60  static bool isTauSpinnerConfigure;
61 
62  // Additional funtionms for Reco (not provided by Tauola/TauSpinner authors)
64  TauSpinner::SimpleParticle &X,
65  TauSpinner::SimpleParticle &tau,
66  TauSpinner::SimpleParticle &tau2,
67  std::vector<TauSpinner::SimpleParticle> &tau_daughters,
68  std::vector<TauSpinner::SimpleParticle> &tau2_daughters);
69  void GetLastSelf(const reco::GenParticle *Particle);
70  void GetRecoDaughters(const reco::GenParticle *Particle,
71  std::vector<TauSpinner::SimpleParticle> &daughters,
72  int parentpdgid);
73  bool isFirst(const reco::GenParticle *Particle);
74  double roundOff_;
75  static CLHEP::HepRandomEngine* fRandomEngine;
76 
77 };
78 #endif
void GetLastSelf(const reco::GenParticle *Particle)
static double flat()
bool isFirst(const reco::GenParticle *Particle)
#define X(str)
Definition: MuonsGrabber.cc:49
double roundOff_
Definition: TauSpinnerCMS.h:74
virtual void endJob()
static CLHEP::HepRandomEngine * fRandomEngine
Definition: TauSpinnerCMS.h:75
void GetRecoDaughters(const reco::GenParticle *Particle, std::vector< TauSpinner::SimpleParticle > &daughters, int parentpdgid)
static bool isTauSpinnerConfigure
Definition: TauSpinnerCMS.h:60
int readParticlesfromReco(edm::Event &e, TauSpinner::SimpleParticle &X, TauSpinner::SimpleParticle &tau, TauSpinner::SimpleParticle &tau2, std::vector< TauSpinner::SimpleParticle > &tau_daughters, std::vector< TauSpinner::SimpleParticle > &tau2_daughters)
bool isTauolaConfigured_
Definition: TauSpinnerCMS.h:54
std::string LHAPDFname_
Definition: TauSpinnerCMS.h:56
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::InputTag gensrc_
Definition: TauSpinnerCMS.h:58
virtual void endRun(const edm::Run &, const edm::EventSetup &)
TauSpinnerCMS(const edm::ParameterSet &)
double CMSEnergy_
Definition: TauSpinnerCMS.h:57
virtual ~TauSpinnerCMS()
Definition: TauSpinnerCMS.h:44
virtual void beginJob()
bool isLHPDFConfigured_
Definition: TauSpinnerCMS.h:55
Definition: Run.h:33