CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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, Pythia8::Settings* settingsPtr);
12 
13  bool decay(std::vector<int>& idProd,
14  std::vector<double>& mProd,
15  std::vector<Pythia8::Vec4>& pProd,
16  int iDec,
17  const Pythia8::Event& event) override;
18 
19 private:
20  Pythia8::TauDecays decayer;
21  bool filter_;
22  bool eDecays_;
23  bool muDecays_;
24  std::vector<int> idProdSave;
25  std::vector<double> mProdSave;
26  std::vector<Pythia8::Vec4> pProdSave;
27 };
BiasedTauDecayer(Pythia8::Info *infoPtr, Pythia8::Settings *settingsPtr)
std::vector< Pythia8::Vec4 > pProdSave
std::vector< int > idProdSave
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