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"
34 
36 {
37 
38  public:
39 
40  //
41  explicit TauSpinnerCMS( const edm::ParameterSet& ) ;
42  virtual ~TauSpinnerCMS() {} // no need to delete ROOT stuff
43  // as it'll be deleted upon closing TFile
44 
45  virtual void produce( edm::Event&, const edm::EventSetup&);
46  virtual void beginJob() ;
47  virtual void endRun( const edm::Run&, const edm::EventSetup& ) ;
48  virtual void endJob() ;
49 
50  private:
51  bool isReco_;
55  double CMSEnergy_;
58  static bool isTauSpinnerConfigure;
59 
62 
63  // Additional funtionms for Reco (not provided by Tauola/TauSpinner authors)
65  TauSpinner::SimpleParticle &X,
66  TauSpinner::SimpleParticle &tau,
67  TauSpinner::SimpleParticle &tau2,
68  std::vector<TauSpinner::SimpleParticle> &tau_daughters,
69  std::vector<TauSpinner::SimpleParticle> &tau2_daughters);
70  void GetLastSelf(const reco::GenParticle *Particle);
71  void GetRecoDaughters(const reco::GenParticle *Particle,
72  std::vector<TauSpinner::SimpleParticle> &daughters,
73  int parentpdgid);
74  bool isFirst(const reco::GenParticle *Particle);
75  double roundOff_;
76 
77 };
78 #endif
void GetLastSelf(const reco::GenParticle *Particle)
edm::EDGetTokenT< reco::GenParticleCollection > gensrcToken_
Definition: TauSpinnerCMS.h:61
bool isFirst(const reco::GenParticle *Particle)
#define X(str)
Definition: MuonsGrabber.cc:48
double roundOff_
Definition: TauSpinnerCMS.h:75
edm::EDGetTokenT< edm::HepMCProduct > EvtHandleToken_
Definition: TauSpinnerCMS.h:60
virtual void endJob()
void GetRecoDaughters(const reco::GenParticle *Particle, std::vector< TauSpinner::SimpleParticle > &daughters, int parentpdgid)
static bool isTauSpinnerConfigure
Definition: TauSpinnerCMS.h:58
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:52
std::string LHAPDFname_
Definition: TauSpinnerCMS.h:54
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::InputTag gensrc_
Definition: TauSpinnerCMS.h:56
virtual void endRun(const edm::Run &, const edm::EventSetup &)
TauSpinnerCMS(const edm::ParameterSet &)
double CMSEnergy_
Definition: TauSpinnerCMS.h:55
virtual ~TauSpinnerCMS()
Definition: TauSpinnerCMS.h:42
virtual void beginJob()
bool isLHPDFConfigured_
Definition: TauSpinnerCMS.h:53
Definition: Run.h:41