CMS 3D CMS Logo

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 #include <iostream>
17 
19 
20 // essentials !!!
24 
27 #include "TH1.h"
28 
30 //#include "FWCore/Framework/interface/one/EDFilter.h"
41 
44 #include "TauSpinner/SimpleParticle.h"
45 
47 
48 class TauSpinnerCMS : public edm::one::EDProducer<edm::one::SharedResources> {
49 public:
50  explicit TauSpinnerCMS(const edm::ParameterSet &);
51  ~TauSpinnerCMS() override{}; // no need to delete ROOT stuff
52 
53  void produce(edm::Event &, const edm::EventSetup &) final;
54  void beginJob() final;
55  void endJob() final;
56  static double flat();
57  void setRandomEngine(CLHEP::HepRandomEngine *v) { fRandomEngine = v; }
58  virtual void initialize();
59 
60 private:
61  bool isReco_;
65  double CMSEnergy_;
68  static bool isTauSpinnerConfigure;
69 
70  // Additional funtionms for Reco (not provided by Tauola/TauSpinner authors)
72  TauSpinner::SimpleParticle &X,
73  TauSpinner::SimpleParticle &tau,
74  TauSpinner::SimpleParticle &tau2,
75  std::vector<TauSpinner::SimpleParticle> &tau_daughters,
76  std::vector<TauSpinner::SimpleParticle> &tau2_daughters);
79  std::vector<TauSpinner::SimpleParticle> &daughters,
80  int parentpdgid);
81  bool isFirst(const reco::GenParticle *Particle);
82  double roundOff_;
83 
84  static CLHEP::HepRandomEngine *fRandomEngine;
87  static bool fInitialized;
88 };
89 #endif
Handle.h
EDProducer.h
TauSpinnerCMS::isTauSpinnerConfigure
static bool isTauSpinnerConfigure
Definition: TauSpinnerCMS.h:68
TauSpinnerCMS::endJob
void endJob() final
Definition: TauSpinnerCMS.cc:54
metsig::tau
Definition: SignAlgoResolutions.h:49
reco::GenParticle
Definition: GenParticle.h:21
X
#define X(str)
Definition: MuonsGrabber.cc:38
edm::EDGetTokenT< edm::HepMCProduct >
LuminosityBlock.h
RandomNumberGenerator.h
TauSpinnerCMS::GetLastSelf
void GetLastSelf(const reco::GenParticle *Particle)
Definition: TauSpinnerCMS.cc:250
TauSpinnerCMS::roundOff_
double roundOff_
Definition: TauSpinnerCMS.h:82
TauSpinnerCMS::hepmcCollectionToken_
edm::EDGetTokenT< edm::HepMCProduct > hepmcCollectionToken_
Definition: TauSpinnerCMS.h:85
edm::one::EDProducer
Definition: EDProducer.h:30
TauSpinnerCMS::isReco_
bool isReco_
Definition: TauSpinnerCMS.h:61
findQualityFiles.v
v
Definition: findQualityFiles.py:179
TauSpinnerCMS::initialize
virtual void initialize()
Definition: TauSpinnerCMS.cc:56
GenParticle.h
TauSpinnerCMS::TauSpinnerCMS
TauSpinnerCMS(const edm::ParameterSet &)
Definition: TauSpinnerCMS.cc:23
EDMException.h
TauSpinnerCMS::isTauolaConfigured_
bool isTauolaConfigured_
Definition: TauSpinnerCMS.h:62
MakerMacros.h
TauSpinnerCMS::beginJob
void beginJob() final
Definition: TauSpinnerCMS.cc:53
BPhysicsValidation_cfi.daughters
daughters
Definition: BPhysicsValidation_cfi.py:11
Service.h
GenParticleFwd.h
Run.h
TauSpinnerCMS::isLHPDFConfigured_
bool isLHPDFConfigured_
Definition: TauSpinnerCMS.h:63
TauSpinnerCMS::nonSMN_
int nonSMN_
Definition: TauSpinnerCMS.h:67
TauSpinnerCMS::nonSM2_
int nonSM2_
Definition: TauSpinnerCMS.h:67
TauSpinnerCMS::GenParticleCollectionToken_
edm::EDGetTokenT< reco::GenParticleCollection > GenParticleCollectionToken_
Definition: TauSpinnerCMS.h:86
TauSpinnerCMS::GetRecoDaughters
void GetRecoDaughters(const reco::GenParticle *Particle, std::vector< TauSpinner::SimpleParticle > &daughters, int parentpdgid)
Definition: TauSpinnerCMS.cc:270
SharedResourceNames.h
CLHEP
Definition: CocoaGlobals.h:27
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TFileService.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
TauSpinnerCMS::fInitialized
static bool fInitialized
Definition: TauSpinnerCMS.h:87
TauSpinnerCMS::gensrc_
edm::InputTag gensrc_
Definition: TauSpinnerCMS.h:66
TauSpinnerCMS::fRandomEngine
static CLHEP::HepRandomEngine * fRandomEngine
Definition: TauSpinnerCMS.h:84
TauSpinnerCMS::setRandomEngine
void setRandomEngine(CLHEP::HepRandomEngine *v)
Definition: TauSpinnerCMS.h:57
edm::EventSetup
Definition: EventSetup.h:57
FileBlock.h
RandomEngineSentry.h
TauSpinnerCMS::MotherPDGID_
int MotherPDGID_
Definition: TauSpinnerCMS.h:67
jets_cff.tau2
tau2
Definition: jets_cff.py:428
EventSetup.h
Particle
Definition: Particle.py:1
TauSpinnerCMS::readParticlesfromReco
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)
Definition: TauSpinnerCMS.cc:187
TauSpinnerCMS::Ipol_
int Ipol_
Definition: TauSpinnerCMS.h:67
TauSpinnerCMS::produce
void produce(edm::Event &, const edm::EventSetup &) final
Definition: TauSpinnerCMS.cc:77
TauSpinnerCMS::~TauSpinnerCMS
~TauSpinnerCMS() override
Definition: TauSpinnerCMS.h:51
TauSpinnerCMS::isFirst
bool isFirst(const reco::GenParticle *Particle)
Definition: TauSpinnerCMS.cc:260
TauSpinnerCMS::flat
static double flat()
Definition: TauSpinnerCMS.cc:285
ParameterSet.h
HepMCProduct.h
TauSpinnerCMS
Definition: TauSpinnerCMS.h:48
edm::Event
Definition: Event.h:73
TauSpinnerCMS::CMSEnergy_
double CMSEnergy_
Definition: TauSpinnerCMS.h:65
TauSpinnerCMS::LHAPDFname_
std::string LHAPDFname_
Definition: TauSpinnerCMS.h:64
edm::InputTag
Definition: InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37