11 #include <framework/modules/core/PrintBeamParametersModule.h>
12 #include <framework/logging/Logger.h>
29 setDescription(
"Print the BeamParameters everytime they change");
37 std::stringstream out;
40 const TLorentzVector& cms = her + ler;
42 out <<
"BeamParameters: cms Energy=" <<
m_beamparams->getMass() <<
" GeV, flags="
44 <<
" HER=(" << her.X() <<
", " << her.Y() <<
", " << her.Z() <<
", " << her.E() <<
"), " << std::endl
45 <<
" LER=(" << ler.X() <<
", " << ler.Y() <<
", " << ler.Z() <<
", " << ler.E() <<
"), " << std::endl
46 <<
" CMS=(" << cms.X() <<
", " << cms.Y() <<
", " << cms.Z() <<
", " << cms.E() <<
"), " << std::endl
47 <<
" VTX=(" << vtx.X() <<
", " << vtx.Y() <<
", " << vtx.Z() <<
"), " << std::endl
50 out << std::endl <<
" CovLER=";
52 out << std::endl <<
" CovVTX=";
60 bool offdiag = cov(0, 1) != 0 || cov(0, 2) != 0 || cov(1, 2) != 0;
64 for (
int i = 0; i < 3; ++i) {
65 out << (i > 0 ?
", " :
"") <<
"(";
66 for (
int j = 0; j < 3; ++j) {
67 out << cov(i, j) << (j < 2 ?
", " :
")");
74 for (
int i = 0; i < 3; ++i) {
75 out << cov(i, i) << (i < 2 ?
", " :
")");