Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenModels/EvtD0gammaDalitz.cpp
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | void EvtD0gammaDalitz::initProbMax() | ||||
setProbMax( 5200. ); | setProbMax( 5200. ); | ||||
} | } | ||||
void EvtD0gammaDalitz::decay( EvtParticle* part ) | void EvtD0gammaDalitz::decay( EvtParticle* part ) | ||||
{ | { | ||||
// Check if the D is from a B+- -> D0 K+- decay with the appropriate model. | // Check if the D is from a B+- -> D0 K+- decay with the appropriate model. | ||||
EvtParticle* parent = | EvtParticle* parent = | ||||
part->getParent(); // If there are no mistakes, should be B+ or B-. | part->getParent(); // If there are no mistakes, should be B+ or B-. | ||||
if ( parent != 0 && | if ( parent != nullptr && | ||||
EvtDecayTable::getInstance()->getDecayFunc( parent )->getName() == | EvtDecayTable::getInstance()->getDecayFunc( parent )->getName() == | ||||
"BTODDALITZCPK" ) { | "BTODDALITZCPK" ) { | ||||
EvtId parId = parent->getId(); | EvtId parId = parent->getId(); | ||||
if ( ( parId == _BP ) || ( parId == _BM ) || ( parId == _B0 ) || | if ( ( parId == _BP ) || ( parId == _BM ) || ( parId == _B0 ) || | ||||
( parId == _B0B ) ) { | ( parId == _B0B ) ) { | ||||
_bFlavor = parId; | _bFlavor = parId; | ||||
} else { | } else { | ||||
reportInvalidAndExit(); | reportInvalidAndExit(); | ||||
▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines |