Skip to content
Snippets Groups Projects
Commit 119b0fd2 authored by Bertram Kopf's avatar Bertram Kopf
Browse files

added some missing parts in RadM1Dynamics II

parent 5bced54d
No related branches found
No related tags found
No related merge requests found
...@@ -56,16 +56,19 @@ RadM1Dynamics::~RadM1Dynamics() ...@@ -56,16 +56,19 @@ RadM1Dynamics::~RadM1Dynamics()
complex<double> RadM1Dynamics::eval(EvtData* theData, AbsXdecAmp* grandmaAmp, Spin OrbMom){ complex<double> RadM1Dynamics::eval(EvtData* theData, AbsXdecAmp* grandmaAmp, Spin OrbMom){
int evtNo=theData->evtNo; int evtNo=theData->evtNo;
if ( _cacheAmps && !_recalculate){ if ( _cacheAmps && !_recalculate){
return _cachedMap[evtNo]; return _cachedMap.at(evtNo);
} }
// Which Daughter particle is the radiative photon? // Which Daughter particle is the radiative photon?
double massB = 1.; // DUMMY VALUE - needs to be mass of non-gamma dacay particle, e.g. eta_c double massB = theData->DoubleString.at(_dynMassKeyDaughter2); // DUMMY VALUE - needs to be mass of non-gamma dacay particle, e.g. eta_c
if (!_isP1Gamma) massB = theData->DoubleString.at(_dynMassKeyDaughter1);
double currentMassB = 1.; // DUMMY VALUE - needs to be current mass (fit parameter!) of non-gamma decay particle, e.g. eta_c double currentMassB = 1.; // DUMMY VALUE - needs to be current mass (fit parameter!) of non-gamma decay particle, e.g. eta_c
double Egamma = theData->DoubleString.at(_dynEgammaCMmotherKey); // how to access Egamma? double Egamma = theData->DoubleString.at(_dynEgammaCMmotherKey); // how to access Egamma?
complex<double> result(1.,0.); complex<double> result(1.,0.);
result=RadMultipoleFormFactor::PureM1(theData->DoubleString.at(_dynKey), massB, currentMassB, Egamma); result=RadMultipoleFormFactor::PureM1(theData->DoubleString.at(_dynKey), massB, currentMassB, Egamma);
if ( _cacheAmps) _cachedMap[evtNo]=result;
return result; return result;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment