17 #include "Framework/Conventions/GVersion.h" 20 using std::ostringstream;
31 fmt <<
"(E = " << p->Energy()
32 <<
", px = " << p->Px()
33 <<
", py = " << p->Py()
34 <<
", pz = " << p->Pz() <<
")";
36 double m2 = p->Mag2();
37 if(m2>0.) fmt <<
" / M = " << TMath::Sqrt(m2);
38 else fmt <<
" / M^2 = " <<
m2;
40 fmt <<
" / P = " << p->P();
49 fmt <<
"(E = " << p->Energy()
50 <<
", px = " << p->Px()
51 <<
", py = " << p->Py()
52 <<
", pz = " << p->Pz() <<
")";
61 fmt <<
"(t = " << vec4->T()
62 <<
", x = " << vec4->X()
63 <<
", y = " << vec4->Y()
64 <<
", z = " << vec4->Z() <<
")";
73 fmt <<
"(px = " << vec->X()
74 <<
", py = " << vec->Y()
75 <<
", pz = " << vec->Z() <<
")";
84 fmt <<
"(x = " << vec->X()
85 <<
", y = " << vec->Y()
86 <<
", z = " << vec->Z() <<
")";
118 string base_dir =
string(gSystem->Getenv(
"GENIE"));
120 #ifdef __GENIE_DEVEL_VERSION__ 121 string warn_dev_banner =
123 string(
"/data/logo/warning_development_version.txt");
127 #ifdef __GENIE_RELEASE_CANDIDATE__ 128 string warn_rc_banner =
130 string(
"/data/logo/warning_release_candidate.txt");
136 string(
"/data/logo/genie_banner_long.txt");
142 ifstream banner(filename.c_str(), ios::in);
144 if( banner.is_open() ) {
147 int length = banner.tellg();
148 char * buffer =
new char[length];
150 banner.seekg(0, ios::beg);
151 banner.read(buffer, length);
155 cout.write(buffer,length);
156 cout <<
"\n" <<
endl;
160 gSystem->Sleep(wait_msec);
165 string mesg,
unsigned int nl,
const char f)
167 string frame(4+mesg.size(),
f);
169 string framed_mesg =
string(
"\n") +
174 for(
unsigned il=0; il<
nl; il++) { framed_mesg +=
string(
"\n"); }
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
string P4AsShortString(const TLorentzVector *p)
string BoolAsYNString(bool b)
string P3AsString(const TVector3 *vec)
string P4AsString(const TLorentzVector *p)
string BoolAsTFString(bool b)
string BoolAsIOString(bool b)
string BoolAsString(bool b)
static constexpr double m2
string PrintFramedMesg(string mesg, unsigned int nl=1, const char f='*')
string X4AsString(const TLorentzVector *x)
std::string nl(std::size_t i=1)
string Vec3AsString(const TVector3 *vec)
QTextStream & endl(QTextStream &s)