#include <BiasedTauDecayer.h>
|
| BiasedTauDecayer (Pythia8::Info *infoPtr, Pythia8::Settings *settingsPtr) |
|
bool | decay (std::vector< int > &idProd, std::vector< double > &mProd, std::vector< Pythia8::Vec4 > &pProd, int iDec, const Pythia8::Event &event) override |
|
Definition at line 9 of file BiasedTauDecayer.h.
◆ BiasedTauDecayer()
BiasedTauDecayer::BiasedTauDecayer |
( |
Pythia8::Info * |
infoPtr, |
|
|
Pythia8::Settings * |
settingsPtr |
|
) |
| |
Definition at line 11 of file BiasedTauDecayer.cc.
15 filter_ = settingsPtr->flag(
"BiasedTauDecayer:filter");
16 eDecays_ = settingsPtr->flag(
"BiasedTauDecayer:eDecays");
17 muDecays_ = settingsPtr->flag(
"BiasedTauDecayer:muDecays");
Pythia8::TauDecays decayer
◆ decay()
bool BiasedTauDecayer::decay |
( |
std::vector< int > & |
idProd, |
|
|
std::vector< double > & |
mProd, |
|
|
std::vector< Pythia8::Vec4 > & |
pProd, |
|
|
int |
iDec, |
|
|
const Pythia8::Event & |
event |
|
) |
| |
|
override |
Definition at line 20 of file BiasedTauDecayer.cc.
References funct::abs(), PA_ZEESkim_cff::decay, edmPickEvents::event, mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, reco::isLepton(), visualization-live-secondInstance_cfg::m, AlCaHLTBitMon_ParallelJobs::p, and funct::true.
24 if (idProd[0] != 15 && idProd[0] != -15)
26 int iStart =
event[iDec].iTopCopyId();
27 int iMom =
event[iStart].mother1();
28 int idMom =
event[iMom].idAbs();
29 if (idMom != 23 && idMom != 24 && idMom != 25)
31 int iDau1 =
event[iMom].daughter1();
32 int iDau2 =
event[iMom].daughter2();
33 int iBot1 =
event[iDau1].iBotCopyId();
34 int iBot2 =
event[iDau2].iBotCopyId();
35 int iDecSis = (iDec == iBot1) ? iBot2 : iBot1;
38 bool notDecayed =
event[iDecSis].status() > 0 ?
true :
false;
51 for (
int i =
i1;
i <
i2 + 1; ++
i) {
62 i1 =
decay[iDecSis].daughter1();
63 i2 =
decay[iDecSis].daughter2();
64 for (
int i =
i1;
i <
i2 + 1; ++
i) {
76 for (
int i =
i1;
i <
i2 + 1; ++
i) {
77 idProd.push_back(
decay[
i].
id());
82 i1 =
decay[iDecSis].daughter1();
83 i2 =
decay[iDecSis].daughter2();
87 for (
int i =
i1;
i <
i2 + 1; ++
i) {
bool isLepton(const Candidate &part)
std::vector< Pythia8::Vec4 > pProdSave
Abs< T >::type abs(const T &t)
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
◆ decayer
Pythia8::TauDecays BiasedTauDecayer::decayer |
|
private |
◆ eDecays_
bool BiasedTauDecayer::eDecays_ |
|
private |
◆ filter_
bool BiasedTauDecayer::filter_ |
|
private |
◆ idProdSave
std::vector<int> BiasedTauDecayer::idProdSave |
|
private |
◆ mProdSave
std::vector<double> BiasedTauDecayer::mProdSave |
|
private |
◆ muDecays_
bool BiasedTauDecayer::muDecays_ |
|
private |
◆ pProdSave