diff --git a/core/DecayModelQ2W.cpp b/core/DecayModelQ2W.cpp index 3a669d6..734c2ab 100644 --- a/core/DecayModelQ2W.cpp +++ b/core/DecayModelQ2W.cpp @@ -99,8 +99,7 @@ namespace elSpectro{ _gamma = p4beam-p4scat;//can now use getQ2 // std::cout<<"DecayModelQ2W "<Pdg()<<" "<P4().Vect().Unit()<<" "<<_gamma.Vect().Unit()<<" "<<(p4scat + _gstarNuc->P4()).Vect().Unit()<<"initial "<<(p4beam+p4tar).Vect().Unit()<P4().M()+_baryon->P4().M()) ) return 0; - + //std::cout<<"DecayModelst "<Pdg()<<" "<<_meson->P4().M()<<" "<<_baryon->P4().M()<P4(),_ebeam,_photon,_meson->P4ptr(),&decayAngles); @@ -118,9 +119,45 @@ namespace elSpectro{ // _Wmax = ( *(_prodInfo->_target) + *(_prodInfo->_ebeam) ).M(); _Wmax = _prodInfo->_Wmax; - std::cout<<" DecayModelst::FindMaxOfIntensity() Wmin = "<SetFunction(wrapf); @@ -222,7 +261,7 @@ namespace elSpectro{ auto minVal = minimum->MinValue(); auto minW= xs[0]; - auto mint= xs[1]; + auto mint= kine::tFromcosthW(xs[1],minW,M1,M2,M3,M4);//xs[1]; std::cout << "Maximum : Probabiltiy Dist at ( W=" << minW << " , t = " << mint << "): "<< -minimum->MinValue() << " note t0 "<X(); auto minminVal = minimum->MinValue(); - minW= xs[0]; - mint= xs[1]; - std::cout << "Minimum Mass Maximum : Probabiltiy Dist at ( W=" << minW << " , t = " << mint << "): "<< -minimum->MinValue()<< " note t0 "<MinValue()<< " note t0 "<PdgMass()>M3) + M3=_meson->PdgMass(); dynamic_cast(_meson)->TakePdgMass(); } @@ -256,7 +296,8 @@ namespace elSpectro{ std::cout<<"gridMin "<Epsilon()+_photonPol->Delta())*MatrixElementsSquared_L()); //eqn from Seyboth and Wolf + // std::cout<<" DifferentialXSect() "<Epsilon()+_photonPol->Delta())*MatrixElementsSquared_L()); //eqn from Seyboth and Wolf } SDME* _sdmeMeson={nullptr}; diff --git a/core/DecayVectors.h b/core/DecayVectors.h index e19807e..0a8bc8d 100644 --- a/core/DecayVectors.h +++ b/core/DecayVectors.h @@ -45,8 +45,9 @@ namespace elSpectro{ virtual void BoostToParentWithRandPhi(const LorentzVector& parent, LorentzVector& child){ - if(parent.P()==0) return; //no boost to be done, or direction - + if(parent.P()==0){ return;} //no boost to be done, or direction + //std::cout<<"BoostToParentW "<_kinematics->set_mX( GetMeson()->Mass() ); // _amp->_kinematics->set_Q2( get_Q2() ); - //std::cout<<"me "<Mass()<<" Q2 "<< get_Q2()<<" t "<_kinematics->Wth()<Mass()<<" Q2 "<< get_Q2()<<" t "<_kinematics->Wth()<<" VAL "<<_amp->probability_distribution(get_s(),get_t())/4<_kinematics->Wth()) return 0; return _amp->probability_distribution(get_s(),get_t())/4;// Average over initial state helicites; } diff --git a/core/TwoBodyFlat.cpp b/core/TwoBodyFlat.cpp index 7da9fea..aa7cf54 100644 --- a/core/TwoBodyFlat.cpp +++ b/core/TwoBodyFlat.cpp @@ -43,7 +43,7 @@ namespace elSpectro{ BoostToParentWithRandPhi(parent,_a); products[0]->SetP4(_a); products[1]->SetP4( parent - _a ); - + // std::cout<<"TwoBody "<P4()<<" "<P4().M()<<" "<P4()<<" "<P4().M()<