Page MenuHomeHEPForge

EndPoint.cc
No OneTemporary

EndPoint.cc

// -*- C++ -*-
//
// This is the implementation of the non-inlined, non-templated member
// functions of the EndPoint class.
//
#include "EndPoint.h"
#ifdef PYTHIA7_TEMPLATES_IN_CC_FILE
// #include "EndPoint.tcc"
#endif
using namespace Pythia7;
EndPoint EndPoint::CC() const {
EndPoint retEP(*this);
retEP.setPt(-pTcomp());
return retEP;
}
void EndPoint::UpdatedFrom (const EndPoint& currEP) {
if(this != &currEP){
theParticle = currEP.PData()->CC();
theStrRg = currEP.SR();
thePTcomp = - currEP.pTcomp();
theGamma = currEP.Gamma();
}
}
// ************************ DB ******************************************
void EndPoint::echo() const {
cout<<"\nEndPoint :"<<endl;
if(theParticle){
cout<<"EP id() = "<<theParticle->id()<<endl;
cout<<"\t EP m() = "<<mass()<<endl;
}else{
cout<<"Particle undefined"<<endl;
}
cout<<"\t EP Px() = "<<thePTcomp.first<<endl;
cout<<"\t EP Py() = "<<thePTcomp.second<<endl;
cout<<"\t EP Gamma() = "<<Gamma()<<endl;
if (theStrRg) {
theStrRg->echo();
cout<<"\t Pfwd() = "<<theStrRg->Pfwd()<<endl;
cout<<"\t Pbwd() = "<<theStrRg->Pbwd()<<endl;
}else cout<<"StringRegion :unknown"<<endl;
}

File Metadata

Mime Type
text/x-c
Expires
Wed, May 14, 10:28 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5043605
Default Alt Text
EndPoint.cc (1 KB)

Event Timeline