Skip to content
Snippets Groups Projects
Commit 84c9614e authored by Jan Reher's avatar Jan Reher
Browse files

Merge branch 'master' of tau:/var/www/git/Pawian

parents 49f4fd81 1bebebe8
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@
#include "PwaUtils/AbsDecay.hh"
#include "PwaUtils/AbsDecayList.hh"
#include "PwaUtils/IsobarHeliDecay.hh"
#include "PwaUtils/ProdChannelInfo.hh"
#include "ErrLogger/ErrLogger.hh"
#include "Particle/Particle.hh"
......@@ -73,10 +74,15 @@ void ResChannelEnv::setup(ChannelID id){
_resReaction=std::shared_ptr<resReaction>(new resReaction(_motherParticle, _prodChannelInfoList, id));
//fill prodDecayList
std::vector<std::string> additionalStringVecDummy;
std::string dynTypeDefault="WoDynamics";
std::vector< std::shared_ptr<IsobarHeliDecay> > prodDecs= _resReaction->productionHeliDecays();
std::vector< std::shared_ptr<IsobarHeliDecay> >::iterator itDec;
for (itDec=prodDecs.begin(); itDec!=prodDecs.end(); ++itDec){
(*itDec)->disableIsospin();
if((*itDec)->prodChannelInfo()->withProdBarrier()) (*itDec)->enableProdBarrier();
else (*itDec)->enableDynamics(dynTypeDefault, additionalStringVecDummy);
_prodDecList->addDecay(*itDec);
}
......
......@@ -46,12 +46,14 @@ resReaction::resReaction(Particle* motherParticle, std::vector<std::shared_ptr<P
std::shared_ptr<IsobarLSDecay> currentDec(new IsobarLSDecay( _motherParticle, particlePair.first, particlePair.second, _channelID));
currentDec->setProductionAmp();
currentDec->setProdChannelInfo( *itProd );
currentDec->extractStates();
if (currentDec->JPCLSAmps().size()>0){
_prodCanoDecs.push_back(currentDec);
std::shared_ptr<IsobarHeliDecay> currentHeliDec(new IsobarHeliDecay( _motherParticle, particlePair.first, particlePair.second, _channelID));
currentHeliDec->setProductionAmp();
currentHeliDec->setProdChannelInfo( *itProd );
currentHeliDec->extractStates();
_prodHeliDecs.push_back(currentHeliDec);
}
......
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