Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenBase/EvtDecayAmp.cpp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | do { | ||||
EvtGenReport( EVTGEN_DEBUG, "EvtGen" ) << "prob:" << prob << endl; | EvtGenReport( EVTGEN_DEBUG, "EvtGen" ) << "prob:" << prob << endl; | ||||
EvtGenReport( EVTGEN_DEBUG, "EvtGen" ) | EvtGenReport( EVTGEN_DEBUG, "EvtGen" ) | ||||
<< "Particle:" << EvtPDL::name( p->getId() ).c_str() << endl; | << "Particle:" << EvtPDL::name( p->getId() ).c_str() << endl; | ||||
EvtGenReport( EVTGEN_DEBUG, "EvtGen" ) | EvtGenReport( EVTGEN_DEBUG, "EvtGen" ) | ||||
<< "channel :" << p->getChannel() << endl; | << "channel :" << p->getChannel() << endl; | ||||
EvtGenReport( EVTGEN_DEBUG, "EvtGen" ) | EvtGenReport( EVTGEN_DEBUG, "EvtGen" ) | ||||
<< "Momentum:" << p->getP4() << " " << p->mass() << endl; | << "Momentum:" << p->getP4() << " " << p->mass() << endl; | ||||
if ( p->getParent() != 0 ) { | if ( p->getParent() != nullptr ) { | ||||
EvtGenReport( EVTGEN_DEBUG, "EvtGen" ) | EvtGenReport( EVTGEN_DEBUG, "EvtGen" ) | ||||
<< "parent:" | << "parent:" | ||||
<< EvtPDL::name( p->getParent()->getId() ).c_str() << endl; | << EvtPDL::name( p->getParent()->getId() ).c_str() << endl; | ||||
EvtGenReport( EVTGEN_DEBUG, "EvtGen" ) | EvtGenReport( EVTGEN_DEBUG, "EvtGen" ) | ||||
<< "parent channel :" << p->getParent()->getChannel() | << "parent channel :" << p->getParent()->getChannel() | ||||
<< endl; | << endl; | ||||
size_t i; | size_t i; | ||||
▲ Show 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | if ( !daugsDecayedByParentModel() ) { | ||||
<< "forward rho failed Check:" | << "forward rho failed Check:" | ||||
<< EvtPDL::name( p->getId() ).c_str() << " " | << EvtPDL::name( p->getId() ).c_str() << " " | ||||
<< p->getChannel() << " " << i << endl; | << p->getChannel() << " " << i << endl; | ||||
p->printTree(); | p->printTree(); | ||||
for ( size_t idaug = 0; idaug < p->getNDaug(); idaug++ ) { | for ( size_t idaug = 0; idaug < p->getNDaug(); idaug++ ) { | ||||
EvtParticle* daughter = p->getDaug( idaug ); | EvtParticle* daughter = p->getDaug( idaug ); | ||||
if ( daughter != 0 ) { | if ( daughter != nullptr ) { | ||||
daughter->printTree(); | daughter->printTree(); | ||||
} | } | ||||
} | } | ||||
EvtParticle* pParent = p->getParent(); | EvtParticle* pParent = p->getParent(); | ||||
if ( pParent != 0 ) { | if ( pParent != nullptr ) { | ||||
EvtGenReport( EVTGEN_ERROR, "EvtGen" ) | EvtGenReport( EVTGEN_ERROR, "EvtGen" ) | ||||
<< "Parent:" | << "Parent:" | ||||
<< EvtPDL::name( pParent->getId() ).c_str() << endl; | << EvtPDL::name( pParent->getId() ).c_str() << endl; | ||||
EvtParticle* grandParent = pParent->getParent(); | EvtParticle* grandParent = pParent->getParent(); | ||||
if ( grandParent != 0 ) { | if ( grandParent != nullptr ) { | ||||
EvtGenReport( EVTGEN_ERROR, "EvtGen" ) | EvtGenReport( EVTGEN_ERROR, "EvtGen" ) | ||||
<< "GrandParent:" | << "GrandParent:" | ||||
<< EvtPDL::name( grandParent->getId() ).c_str() | << EvtPDL::name( grandParent->getId() ).c_str() | ||||
<< endl; | << endl; | ||||
} | } | ||||
} | } | ||||
EvtGenReport( EVTGEN_ERROR, "EvtGen" ) | EvtGenReport( EVTGEN_ERROR, "EvtGen" ) | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |