Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenModels/EvtBtoKD3P.cpp
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | void EvtBtoKD3P::decay( EvtParticle* p ) | ||||
// the K is the 1st daughter of the B EvtParticle. | // the K is the 1st daughter of the B EvtParticle. | ||||
// The decay mode of the allowed D (the one produced in b->c decay) is 2nd | // The decay mode of the allowed D (the one produced in b->c decay) is 2nd | ||||
// The decay mode of the suppressed D (the one produced in b->u decay) is 3rd | // The decay mode of the suppressed D (the one produced in b->u decay) is 3rd | ||||
const int KIND = 0; | const int KIND = 0; | ||||
const int D1IND = 1; | const int D1IND = 1; | ||||
const int D2IND = 2; | const int D2IND = 2; | ||||
// generate kinematics of daughters (K and D): | // generate kinematics of daughters (K and D): | ||||
EvtId tempDaug[2] = {getDaug( KIND ), getDaug( D1IND )}; | EvtId tempDaug[2] = { getDaug( KIND ), getDaug( D1IND ) }; | ||||
p->initializePhaseSpace( 2, tempDaug ); | p->initializePhaseSpace( 2, tempDaug ); | ||||
// Get the D daughter particle and the decay models of the allowed | // Get the D daughter particle and the decay models of the allowed | ||||
// and suppressed D modes: | // and suppressed D modes: | ||||
EvtParticle* theD = p->getDaug( D1IND ); | EvtParticle* theD = p->getDaug( D1IND ); | ||||
EvtPto3P* model1 = | EvtPto3P* model1 = | ||||
(EvtPto3P*)( EvtDecayTable::getInstance()->getDecayFunc( theD ) ); | (EvtPto3P*)( EvtDecayTable::getInstance()->getDecayFunc( theD ) ); | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |