#include <BiasedTauDecayer.h>
|
| BiasedTauDecayer (Pythia8::Info *infoPtr, Pythia8::Settings *settingsPtr, Pythia8::ParticleData *particleDataPtr, Pythia8::Rndm *rndmPtr, Pythia8::Couplings *couplingsPtr) |
|
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 |
( |
Pythia8::Info * |
infoPtr, |
|
|
Pythia8::Settings * |
settingsPtr, |
|
|
Pythia8::ParticleData * |
particleDataPtr, |
|
|
Pythia8::Rndm * |
rndmPtr, |
|
|
Pythia8::Couplings * |
couplingsPtr |
|
) |
| |
Definition at line 11 of file BiasedTauDecayer.cc.
14 decayer.init(infoPtr, settingsPtr, particleDataPtr, rndmPtr, couplingsPtr);
15 filter_ = settingsPtr->flag(
"BiasedTauDecayer:filter");
16 eDecays_ = settingsPtr->flag(
"BiasedTauDecayer:eDecays");
17 muDecays_ = settingsPtr->flag(
"BiasedTauDecayer:muDecays");
Pythia8::TauDecays decayer
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(), SelectingProcedure_cff::decay, event(), mps_fire::i, reco::isLepton(), funct::m, and AlCaHLTBitMon_ParallelJobs::p.
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;
49 i1 = decay[iDec].daughter1();
50 i2 = decay[iDec].daughter2();
51 for (
int i = i1;
i < i2 + 1; ++
i) {
52 if (decay[
i].
isLepton() && decay[
i].isCharged()) {
62 i1 = decay[iDecSis].daughter1();
63 i2 = decay[iDecSis].daughter2();
64 for (
int i = i1;
i < i2 + 1; ++
i) {
65 if (decay[
i].
isLepton() && decay[
i].isCharged()) {
74 i1 = decay[iDec].daughter1();
75 i2 = decay[iDec].daughter2();
76 for (
int i = i1;
i < i2 + 1; ++
i) {
77 idProd.push_back(decay[
i].
id());
78 mProd.push_back(decay[
i].
m());
79 pProd.push_back(decay[
i].
p());
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)
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
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
Pythia8::TauDecays BiasedTauDecayer::decayer |
|
private |
bool BiasedTauDecayer::eDecays_ |
|
private |
bool BiasedTauDecayer::filter_ |
|
private |
std::vector<int> BiasedTauDecayer::idProdSave |
|
private |
std::vector<double> BiasedTauDecayer::mProdSave |
|
private |
bool BiasedTauDecayer::muDecays_ |
|
private |