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

few modifications in IsobarTensorDecay.cc III

parent 4caa2357
No related branches found
No related tags found
No related merge requests found
...@@ -139,8 +139,8 @@ void IsobarTensorDecay::fillWignerDs(std::map<std::string, Vector4<double> >& fs ...@@ -139,8 +139,8 @@ void IsobarTensorDecay::fillWignerDs(std::map<std::string, Vector4<double> >& fs
DebugMsg << name() << endmsg; DebugMsg << name() << endmsg;
std::vector< boost::shared_ptr<const JPCLS> >::iterator itJPCLS; std::vector< boost::shared_ptr<const JPCLS> >::iterator itJPCLS;
for(itJPCLS=theJPCLSAmps.begin(); itJPCLS!=theJPCLSAmps.end(); ++itJPCLS){ for(itJPCLS=theJPCLSAmps.begin(); itJPCLS!=theJPCLSAmps.end(); ++itJPCLS){
// (*itJPCLS)->print(std::cout); // (*itJPCLS)->print(std::cout);
// std::cout << std::endl; // std::cout << std::endl;
Spin L=(*itJPCLS)->L; Spin L=(*itJPCLS)->L;
Spin S=(*itJPCLS)->S; Spin S=(*itJPCLS)->S;
int s1s2S=spinDaughter1+spinDaughter2+(*itJPCLS)->S; int s1s2S=spinDaughter1+spinDaughter2+(*itJPCLS)->S;
...@@ -216,7 +216,10 @@ void IsobarTensorDecay::fillWignerDs(std::map<std::string, Vector4<double> >& fs ...@@ -216,7 +216,10 @@ void IsobarTensorDecay::fillWignerDs(std::map<std::string, Vector4<double> >& fs
Tensor<complex<double> > result; Tensor<complex<double> > result;
if(add_lctForTensor){ if(add_lctForTensor){
// result = epsilonMotherProject | ( (_metricTensor | (_lctTensor | mother_4Vec )) | (orbTensor | chi12)); // result = epsilonMotherProject | ( (_metricTensor | (_lctTensor | mother_4Vec )) | (orbTensor | chi12));
result = (epsilonMotherProject % mother_4Vec) | (orbTensor % chi12); result = epsilonMotherProject | ( ( (_lctTensor * mother_4Vec ) | orbTensor) | chi12);
// result = (epsilonMotherProject % mother_4Vec) | (orbTensor % chi12);
} }
else{ else{
if( orbTensor.Rank()+chi12.Rank() == epsilonMotherProject.Rank()) result = epsilonMotherProject | (orbTensor % chi12); if( orbTensor.Rank()+chi12.Rank() == epsilonMotherProject.Rank()) result = epsilonMotherProject | (orbTensor % chi12);
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include "PwaUtils/FitParamsBase.hh" #include "PwaUtils/FitParamsBase.hh"
#include "PwaUtils/XdecAmpRegistry.hh" #include "PwaUtils/XdecAmpRegistry.hh"
#include "Particle/Particle.hh" #include "Particle/Particle.hh"
#include "Particle/ParticleTable.hh"
#include "ErrLogger/ErrLogger.hh" #include "ErrLogger/ErrLogger.hh"
#include <boost/bind.hpp> #include <boost/bind.hpp>
...@@ -46,12 +47,6 @@ ...@@ -46,12 +47,6 @@
#include <boost/numeric/ublas/io.hpp> #include <boost/numeric/ublas/io.hpp>
// pbarpTensorLh::pbarpTensorLh(boost::shared_ptr<const EvtDataBaseList> theEvtList) :
// pbarpBaseLh(theEvtList)
// {
// initialize();
// }
pbarpTensorLh::pbarpTensorLh() : pbarpTensorLh::pbarpTensorLh() :
pbarpBaseLh() pbarpBaseLh()
{ {
...@@ -89,7 +84,27 @@ void pbarpTensorLh::initialize(){ ...@@ -89,7 +84,27 @@ void pbarpTensorLh::initialize(){
fillMap(jpclsTripletp1States, _decAmps, _decAmpsTripletp1); fillMap(jpclsTripletp1States, _decAmps, _decAmpsTripletp1);
std::vector< boost::shared_ptr<const JPCLS> > jpclsTripletm1States=_pbarpReactionPtr->jpclsTripletm1States(); std::vector< boost::shared_ptr<const JPCLS> > jpclsTripletm1States=_pbarpReactionPtr->jpclsTripletm1States();
fillMap(jpclsTripletm1States, _decAmps, _decAmpsTripletm1); fillMap(jpclsTripletm1States, _decAmps, _decAmpsTripletm1);
double pbarMass = _absEnv->particleTable()->particle("antiproton")->mass();
double pMass = _absEnv->particleTable()->particle("proton")->mass();
double pbarMom = pbarpEnv::instance()->pbarMomentum();
Vector4<double> pbar4Vec(sqrt(pbarMass*pbarMass+pbarMom*pbarMom), 0.,0., pbarMom);
Vector4<double> p4Vec(pMass, 0.,0.,0.);
Vector4<double> allVec=pbar4Vec+p4Vec;
std::vector< boost::shared_ptr<const JPCLS> > jpclsStatesAll=_pbarpReactionPtr->jpclsStates();
std::vector< boost::shared_ptr<const JPCLS> >::const_iterator itJPCLS;
for(itJPCLS=jpclsStatesAll.begin(); itJPCLS!=jpclsStatesAll.end(); ++itJPCLS){
std::shared_ptr<OrbitalTensor> currentTensorPtr(new OrbitalTensor((*itJPCLS)->L));
currentTensorPtr->SetP4(pbar4Vec,p4Vec);
_orbTensorMap[(*itJPCLS)->L]=currentTensorPtr;
std::shared_ptr<PolVector> currentPolVecPtr(new PolVector((*itJPCLS)->J));
currentPolVecPtr->SetP4(allVec, allVec.M());
_polVectorMap[(*itJPCLS)->J]=currentPolVecPtr;
}
} }
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <complex> #include <complex>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <boost/function.hpp> #include <boost/function.hpp>
#include <memory>
#include "qft++/topincludes/relativistic-quantum-mechanics.hh" #include "qft++/topincludes/relativistic-quantum-mechanics.hh"
...@@ -69,4 +70,7 @@ protected: ...@@ -69,4 +70,7 @@ protected:
private: private:
void initialize(); void initialize();
std::map< Spin, std::shared_ptr<OrbitalTensor> > _orbTensorMap;
std::map< Spin, std::shared_ptr<PolVector> > _polVectorMap;
}; };
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