Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenModels/EvtRareLbToLll.cpp
Show First 20 Lines • Show All 223 Lines • ▼ Show 20 Lines | void EvtRareLbToLll::calcAmp( EvtAmp& amp, const EvtParticle& parent ) | ||||
//parent->setDiagonalSpinDensity(); | //parent->setDiagonalSpinDensity(); | ||||
const EvtParticle* lambda = parent.getDaug( 0 ); | const EvtParticle* lambda = parent.getDaug( 0 ); | ||||
const EvtIdSet leptons{ "e-", "mu-", "tau-" }; | const EvtIdSet leptons{ "e-", "mu-", "tau-" }; | ||||
const bool isparticle = isParticle( parent ); | const bool isparticle = isParticle( parent ); | ||||
const EvtParticle* lp = 0; | const EvtParticle* lp = nullptr; | ||||
const EvtParticle* lm = 0; | const EvtParticle* lm = nullptr; | ||||
if ( leptons.contains( parent.getDaug( 1 )->getId() ) ) { | if ( leptons.contains( parent.getDaug( 1 )->getId() ) ) { | ||||
lp = parent.getDaug( 1 ); | lp = parent.getDaug( 1 ); | ||||
lm = parent.getDaug( 2 ); | lm = parent.getDaug( 2 ); | ||||
} else { | } else { | ||||
lp = parent.getDaug( 2 ); | lp = parent.getDaug( 2 ); | ||||
lm = parent.getDaug( 1 ); | lm = parent.getDaug( 1 ); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 265 Lines • Show Last 20 Lines |