Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:07:26

0001 #include "Pythia8/ParticleDecays.h"
0002 #include "Pythia8/Pythia.h"
0003 
0004 //==========================================================================
0005 
0006 // Specialized decayer for resonance decays to taus to allowing biasing to
0007 // leptonic decays
0008 //
0009 class BiasedTauDecayer : public Pythia8::DecayHandler {
0010 public:
0011   BiasedTauDecayer(Pythia8::Info* infoPtr, Pythia8::Settings* settingsPtr);
0012 
0013   bool decay(std::vector<int>& idProd,
0014              std::vector<double>& mProd,
0015              std::vector<Pythia8::Vec4>& pProd,
0016              int iDec,
0017              const Pythia8::Event& event) override;
0018 
0019 private:
0020   Pythia8::TauDecays decayer;
0021   bool filter_;
0022   bool eDecays_;
0023   bool muDecays_;
0024   std::vector<int> idProdSave;
0025   std::vector<double> mProdSave;
0026   std::vector<Pythia8::Vec4> pProdSave;
0027 };