41 double prob, prob_max;
51 rho =
_amp2.getSpinDensity();
59 report(
ERROR,
"EvtGen" ) <<
"rho_forward:" << endl;
68 report(
DEBUG,
"EvtGen" ) <<
"Forward density matrix:" << endl;
71 report(
DEBUG,
"EvtGen" ) <<
"Decay density matrix:" << endl;
74 report(
DEBUG,
"EvtGen" ) <<
"prob:" << prob << endl;
96 for ( i = 0; i < p->
getNDaug(); i++ )
100 report(
DEBUG,
"EvtGen" ) <<
"daughter momenta :" << endl;
102 for ( i = 0; i < p->
getNDaug(); i++ )
122 }
while ( ntimes && more );
127 report(
DEBUG,
"EvtGen" ) <<
"Tried accept/reject:10000"
128 <<
" times, and rejected all the times!" << endl;
130 report(
DEBUG,
"EvtGen" ) <<
"Is therefore accepting the last event!" << endl;
136 for ( ii = 0; ii < p->
getNDaug(); ii++ )
138 report(
DEBUG,
"EvtGen" ) <<
"Daughter " << ii <<
":"
140 <<
" with mass " << p->
getDaug( ii )->
mass() << endl;
150 if (
_amp2._pstates != 1 )
154 else { ampcont =
_amp2; }
164 for ( i = 0; i < p->
getNDaug(); i++ )
175 report(
ERROR,
"EvtGen" ) <<
"-------start error-------" << endl;
186 <<
"GrandGrandParent:"
194 for ( ii = 0; ii < i + 1; ii++ ) {
report(
ERROR,
"EvtGen" ) << rho_list[ii]; }
195 report(
ERROR,
"EvtGen" ) <<
"-------Done with error-------" << endl;
206 if (
_amp2.dstates[i] != 1 )
207 { ampcont = ampcont.
contract(
_amp2._dnontrivial[i], rho_list[i + 1] ); }
ostream & report(Severity severity, const char *facility)
EvtSpinDensity contract(int i, const EvtAmp &a)
void makeDecay(EvtParticle *p)
virtual void decay(EvtParticle *p)=0
double getProbMax(double prob)
bool daugsDecayedByParentModel()
bool _daugsDecayedByParentModel
static std::string name(EvtId i)
void setSpinDensityBackward(const EvtSpinDensity &rho)
void setSpinDensityForward(const EvtSpinDensity &rho)
void setDecayProb(double p)
EvtParticle * getParent()
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
EvtSpinDensity getSpinDensityBackward()
EvtSpinDensity getSpinDensityForward()
static bool alwaysRadCorr()
static void doRadCorr(EvtParticle *p)
double NormalizedProb(const EvtSpinDensity &d)
void Set(int i, int j, const EvtComplex &rhoij)