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

bug fix for replacing suffix in production amplitudes

parent 740d38aa
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,7 @@ void AbsDecayList::replaceSuffix(const std::string& oldPart, const std::string&
std::vector<boost::shared_ptr<AbsDecay> >::iterator it;
for (it= _absDecList.begin(); it!=_absDecList.end(); ++it){
std::string theSuffix= (*it)->fitParSuffix();
std::cout << "theSuffix:\t" << theSuffix << std::endl;
boost::replace_all(theSuffix, oldPart, newPart);
(*it)->setFitParSuffix(theSuffix);
}
......
......@@ -8,7 +8,7 @@
#include "epemUtils/epemParser.hh"
#include "PwaUtils/AbsDecay.hh"
#include "PwaUtils/AbsDecayList.hh"
#include "PwaUtils/IsobarLSDecay.hh"
#include "PwaUtils/IsobarHeliDecay.hh"
#include "epemUtils/epemReaction.hh"
#include "qft++/relativistic-quantum-mechanics/Utils.hh"
#include "ErrLogger/ErrLogger.hh"
......@@ -42,12 +42,13 @@ void epemEnv::setup(epemParser* theEpEmParser){
_epemReaction=boost::shared_ptr<epemReaction>(new epemReaction(_producedParticlePairs));
//fill prodDecayList
std::vector< boost::shared_ptr<IsobarLSDecay> > prodDecs= _epemReaction->productionCanoDecays();
std::vector< boost::shared_ptr<IsobarLSDecay> >::iterator itDec;
std::vector< boost::shared_ptr<IsobarHeliDecay> > prodDecs= _epemReaction->productionHeliDecays();
std::vector< boost::shared_ptr<IsobarHeliDecay> >::iterator itDec;
for (itDec=prodDecs.begin(); itDec!=prodDecs.end(); ++itDec){
_prodDecList->addDecay(*itDec);
}
//set suffixes
std::vector<std::string> suffixVec = theEpEmParser->replaceSuffixNames();
std::map<std::string, std::string> decSuffixNames;
......
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