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

added protection against calculating scattering properties (T-, S-matrix) below thresholds

parent 404ca3c6
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ minimumTolerance = 10 ...@@ -8,7 +8,7 @@ minimumTolerance = 10
pdgTableFile = /Particle/pdtNew.table pdgTableFile = /Particle/pdtNew.table
serverPort = 38854 serverPort = 20301
serverAddress = localhost serverAddress = localhost
noOfClients = 4 noOfClients = 4
noOfThreads = 1 noOfThreads = 1
......
...@@ -96,8 +96,14 @@ complex<double> TMatrixDynamics::eval(EvtData* theData, AbsXdecAmp* grandmaAmp, ...@@ -96,8 +96,14 @@ complex<double> TMatrixDynamics::eval(EvtData* theData, AbsXdecAmp* grandmaAmp,
while( (deltaRel-phiData) > 90.) deltaRel-=180.; while( (deltaRel-phiData) > 90.) deltaRel-=180.;
theData->DoubleId.at(IdStringMapRegistry::instance()->stringId(EvtDataScatteringList::PHIFIT_PIPISCAT_NAME))=deltaRel; theData->DoubleId.at(IdStringMapRegistry::instance()->stringId(EvtDataScatteringList::PHIFIT_PIPISCAT_NAME))=deltaRel;
} }
if(thePhpVecs[_decProjectionIndex]->factor(currentMass).real()<1.e-12){//protection against calculations below threshold
theData->DoubleId.at(IdStringMapRegistry::instance()->stringId(EvtDataScatteringList::ETAFIT_PIPISCAT_NAME))=sqrt(norm(SijRel)); theData->DoubleId.at(IdStringMapRegistry::instance()->stringId(EvtDataScatteringList::ETAFIT_PIPISCAT_NAME))=0.;
theData->DoubleId.at(IdStringMapRegistry::instance()->stringId(EvtDataScatteringList::PHIFIT_PIPISCAT_NAME))=0.;
}
else{
double normSijRel=sqrt(norm(SijRel));
theData->DoubleId.at(IdStringMapRegistry::instance()->stringId(EvtDataScatteringList::ETAFIT_PIPISCAT_NAME))=sqrt(norm(SijRel));
}
return (*_tMatr)(_prodProjectionIndex,_decProjectionIndex); return (*_tMatr)(_prodProjectionIndex,_decProjectionIndex);
} }
......
...@@ -112,9 +112,11 @@ double pipiScatteringBaseLh::calcEvtIntensity(EvtData* theData, std::shared_ptr< ...@@ -112,9 +112,11 @@ double pipiScatteringBaseLh::calcEvtIntensity(EvtData* theData, std::shared_ptr<
double result=0.5*(chi2_phi+chi2_eta); double result=0.5*(chi2_phi+chi2_eta);
// if(chi2_phi>1000.){ // if(chi2_phi>1000.){
// InfoMsg << "chi2_phi: " << chi2_phi << "\tchi2_eta: " << chi2_eta << endmsg; // InfoMsg << "etaData: " << etaData << "\tetaFit: " << etaFit << endmsg;
// InfoMsg << "phiData: " << phiData << "\tphiFit: " << phiFit << "\tphiErrData: " << phiErrData // InfoMsg << "etaErrData: " << etaErrData << endmsg;
// << "\netaData: " << etaData << "\tetaFit: " << etaFit << endmsg; // InfoMsg << "chi2_phi: " << chi2_phi << "\tchi2_eta: " << chi2_eta << endmsg;
// InfoMsg << "phiData: " << phiData << "\tphiFit: " << phiFit << "\tphiErrData: " << phiErrData
// << "\netaData: " << etaData << "\tetaFit: " << etaFit << endmsg;
// } // }
return result; return result;
......
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