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

bug fix; removed some references to make it thread-safe

parent 5d6f1c49
No related branches found
No related tags found
No related merge requests found
......@@ -329,7 +329,7 @@ void AbsDecay::fillWignerDs(std::map<std::string, Vector4<double> >& fsMap, Vect
}
}
if (whichDecayLevel()==decayLevel::isProdAmp || whichDecayLevel()==decayLevel::firstLevel){
if (whichDecayLevel()==decayLevel::isProdAmp || whichDecayLevel()==decayLevel::firstLevel || whichDecayLevel()==decayLevel::severalLevels){
for (Spin lamMother=-lamMotherMax; lamMother<=lamMotherMax; ++lamMother){
for (Spin lam12=-lam12Max; lam12<=lam12Max; ++lam12){
double thePhi=0.;
......@@ -347,7 +347,7 @@ void AbsDecay::fillWignerDs(std::map<std::string, Vector4<double> >& fsMap, Vect
}
}
}
else{
if (whichDecayLevel()!=decayLevel::isProdAmp && whichDecayLevel()!=decayLevel::firstLevel){
for (Spin lamMother=-lamMotherMax; lamMother<=lamMotherMax; ++lamMother){
for (Spin lam12=-lam12Max; lam12<=lam12Max; ++lam12){
double thePhi=0.;
......
......@@ -57,7 +57,7 @@ HeliDecRefAmps::~HeliDecRefAmps()
complex<double> HeliDecRefAmps::XdecPartAmp(Spin& lamX, Spin& lamDec, short fixDaughterNr, EvtData* theData, Spin& lamFs, AbsXdecAmp* grandmaAmp){
complex<double> result(0.,0.);
std::string& refKey=_refKey;
std::string refKey=_refKey;
if (0!=grandmaAmp) refKey=grandmaAmp->refKey();
......
......@@ -55,7 +55,7 @@ LSDecRefAmps::~LSDecRefAmps()
complex<double> LSDecRefAmps::XdecPartAmp(Spin& lamX, Spin& lamDec, short fixDaughterNr, EvtData* theData, Spin& lamFs, AbsXdecAmp* grandmaAmp){
std::string& refKey=_refKey;
std::string refKey=_refKey;
if (0!=grandmaAmp) refKey=grandmaAmp->refKey();
complex<double> result(0.,0.);
......
......@@ -75,7 +75,7 @@ complex<double> LSOmegaTo3PiDecAmps::XdecPartAmp(Spin& lamX, Spin& lamDec, short
complex<double> LSOmegaTo3PiDecAmps::XdecAmp(Spin& lamX, EvtData* theData, Spin& lamFs, AbsXdecAmp* grandmaAmp){
std::string& refKey=_refKey;
std::string refKey=_refKey;
if (0!=grandmaAmp) refKey=grandmaAmp->refKey();
complex<double> result(0.,0.);
......
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