CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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,
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 eMuDecays_;
27  std::vector<int> idProdSave;
28  std::vector<double> mProdSave;
29  std::vector<Pythia8::Vec4> pProdSave;
30 };
std::vector< Pythia8::Vec4 > pProdSave
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
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