CMS 3D CMS Logo

BiasedTauDecayer.h
Go to the documentation of this file.
1 #include "Pythia8/ParticleDecays.h"
2 #include "Pythia8/Pythia.h"
3 
4 //==========================================================================
5 
6 // Specialized decayer for resonance decays to taus to allowing biasing to
7 // leptonic decays
8 //
9 class BiasedTauDecayer : public Pythia8::DecayHandler {
10 public:
11  BiasedTauDecayer(Pythia8::Info* infoPtr,
12  Pythia8::Settings* settingsPtr,
13  Pythia8::ParticleData* particleDataPtr,
14  Pythia8::Rndm* rndmPtr,
15  Pythia8::Couplings* couplingsPtr);
16 
17  bool decay(std::vector<int>& idProd,
18  std::vector<double>& mProd,
19  std::vector<Pythia8::Vec4>& pProd,
20  int iDec,
21  const Pythia8::Event& event) override;
22 
23 private:
24  Pythia8::TauDecays decayer;
25  bool filter_;
26  bool eDecays_;
27  bool muDecays_;
28  std::vector<int> idProdSave;
29  std::vector<double> mProdSave;
30  std::vector<Pythia8::Vec4> pProdSave;
31 };
std::vector< Pythia8::Vec4 > pProdSave
HepPDT::ParticleData ParticleData
std::vector< int > idProdSave
BiasedTauDecayer(Pythia8::Info *infoPtr, Pythia8::Settings *settingsPtr, Pythia8::ParticleData *particleDataPtr, Pythia8::Rndm *rndmPtr, Pythia8::Couplings *couplingsPtr)
std::vector< double > mProdSave
bool decay(std::vector< int > &idProd, std::vector< double > &mProd, std::vector< Pythia8::Vec4 > &pProd, int iDec, const Pythia8::Event &event) override
Pythia8::TauDecays decayer
Definition: event.py:1