Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenModels/EvtBsquark.cpp
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | void EvtBsquark::initProbMax() | ||||
setProbMax( 1e-6 ); | setProbMax( 1e-6 ); | ||||
} | } | ||||
void EvtBsquark::decay( EvtParticle* p ) | void EvtBsquark::decay( EvtParticle* p ) | ||||
{ | { | ||||
static EvtId cquark = EvtPDL::getId( "c" ); | static EvtId cquark = EvtPDL::getId( "c" ); | ||||
static EvtId anticquark = EvtPDL::getId( "anti-c" ); | static EvtId anticquark = EvtPDL::getId( "anti-c" ); | ||||
static EvtIdSet leptons( "e-", "mu-", "tau-" ); | static EvtIdSet leptons{ "e-", "mu-", "tau-" }; | ||||
p->initializePhaseSpace( getNDaug(), getDaugs() ); | p->initializePhaseSpace( getNDaug(), getDaugs() ); | ||||
int charge = 1; | int charge = 1; | ||||
EvtParticle* lepton; | EvtParticle* lepton; | ||||
lepton = p->getDaug( 1 ); | lepton = p->getDaug( 1 ); | ||||
if ( leptons.contains( lepton->getId() ) ) { | if ( leptons.contains( lepton->getId() ) ) { | ||||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |