Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5128 from inugent/TauolaLifetimePatch_7_2_X_v2
Tauola lifetime patch 7 2 x v2
- Loading branch information
Showing
2 changed files
with
344 additions
and
489 deletions.
There are no files selected for viewing
87 changes: 36 additions & 51 deletions
87
GeneratorInterface/TauolaInterface/interface/TauolappInterface.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,55 @@ | ||
#ifndef gen_TauolaInterface_TauolappInterface_h | ||
#define gen_TauolaInterface_TauolappInterface_h | ||
|
||
#include "HepPDT/ParticleDataTable.hh" | ||
|
||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
#include "FWCore/Framework/interface/ESHandle.h" | ||
#include "FWCore/Framework/interface/EventSetup.h" | ||
#include "GeneratorInterface/TauolaInterface/interface/TauolaInterfaceBase.h" | ||
|
||
namespace HepMC | ||
namespace HepMC | ||
{ | ||
class GenEvent; | ||
class GenEvent; | ||
} | ||
|
||
namespace CLHEP | ||
{ | ||
class HepRandomEngine; | ||
class HepRandomEngine; | ||
} | ||
|
||
namespace gen { | ||
extern "C" { | ||
void ranmar_( float *rvec, int *lenv ); | ||
void rmarin_( int*, int*, int* ); | ||
} | ||
|
||
class TauolappInterface : public TauolaInterfaceBase { | ||
public: | ||
|
||
// ctor & dtor | ||
TauolappInterface( const edm::ParameterSet& ); | ||
~TauolappInterface(); | ||
|
||
void enablePolarization() { fPolarization = true; return; } | ||
void disablePolarization() { fPolarization = false; return; } | ||
void init( const edm::EventSetup& ); | ||
const std::vector<int>& operatesOnParticles() { return fPDGs; } | ||
HepMC::GenEvent* decay( HepMC::GenEvent* ); | ||
void statistics() ; | ||
|
||
void setRandomEngine(CLHEP::HepRandomEngine* v) { fRandomEngine = v; } | ||
static double flat(); | ||
|
||
private: | ||
// member function(s) | ||
void decodeMDTAU( int ); | ||
void selectDecayByMDTAU(); | ||
int selectLeptonic(); | ||
int selectHadronic(); | ||
|
||
// | ||
static CLHEP::HepRandomEngine* fRandomEngine; | ||
std::vector<int> fPDGs; | ||
bool fPolarization; | ||
edm::ESHandle<HepPDT::ParticleDataTable> fPDGTable ; | ||
edm::ParameterSet* fPSet; | ||
bool fIsInitialized; | ||
|
||
int fMDTAU; | ||
bool fSelectDecayByEvent; | ||
std::vector<int> fLeptonModes; | ||
std::vector<int> fHadronModes; | ||
std::vector<double> fScaledLeptonBrRatios; | ||
std::vector<double> fScaledHadronBrRatios; | ||
|
||
}; | ||
|
||
class TauolappInterface : public TauolaInterfaceBase { | ||
public: | ||
// ctor & dtor | ||
TauolappInterface( const edm::ParameterSet& ); | ||
~TauolappInterface(); | ||
void enablePolarization() { fPolarization = true; return; } | ||
void disablePolarization() { fPolarization = false; return; } | ||
void init( const edm::EventSetup& ); | ||
const std::vector<int>& operatesOnParticles() { return fPDGs; } | ||
HepMC::GenEvent* decay( HepMC::GenEvent* ); | ||
void statistics() ; | ||
void setRandomEngine(CLHEP::HepRandomEngine* v) { fRandomEngine = v; } | ||
static double flat(); | ||
private: | ||
// member function(s) | ||
void decodeMDTAU( int ); | ||
void selectDecayByMDTAU(); | ||
int selectLeptonic(); | ||
int selectHadronic(); | ||
// | ||
static CLHEP::HepRandomEngine* fRandomEngine; | ||
std::vector<int> fPDGs; | ||
bool fPolarization; | ||
edm::ESHandle<HepPDT::ParticleDataTable> fPDGTable ; | ||
edm::ParameterSet* fPSet; | ||
bool fIsInitialized; | ||
int fMDTAU; | ||
bool fSelectDecayByEvent; | ||
std::vector<int> fLeptonModes; | ||
std::vector<int> fHadronModes; | ||
std::vector<double> fScaledLeptonBrRatios; | ||
std::vector<double> fScaledHadronBrRatios; | ||
}; | ||
} | ||
|
||
#endif |
Oops, something went wrong.