PrintUtils.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \namespace genie::utils::print
5 
6 \brief Simple printing utilities
7 
8 \author Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
9  University of Liverpool & STFC Rutherford Appleton Laboratory
10 
11 \created May 06, 2004
12 
13 \cpright Copyright (c) 2003-2020, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15 */
16 //____________________________________________________________________________
17 
18 #ifndef _PRINT_UTILS_H_
19 #define _PRINT_UTILS_H_
20 
21 #include <string>
22 
23 #include <TVector3.h>
24 #include <TLorentzVector.h>
25 
26 using std::string;
27 
28 namespace genie {
29 namespace utils {
30 
31 namespace print
32 {
33  string P4AsString (const TLorentzVector * p);
34  string P4AsShortString (const TLorentzVector * p);
35  string X4AsString (const TLorentzVector * x);
36  string P3AsString (const TVector3 * vec);
37  string Vec3AsString (const TVector3 * vec);
38  string BoolAsString (bool b);
39  string BoolAsTFString (bool b);
40  string BoolAsIOString (bool b);
41  string BoolAsYNString (bool b);
42  void PrintBanner (void);
43  void PrintBanner (string filename, UInt_t wait_msec);
44  string PrintFramedMesg (string mesg, unsigned int nl=1, const char f='*');
45 
46 } // print namespace
47 } // utils namespace
48 } // genie namespace
49 
50 #endif // _PRINT_UTILS_H_
string P4AsShortString(const TLorentzVector *p)
Definition: PrintUtils.cxx:45
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
std::string string
Definition: nybbler.cc:12
string BoolAsYNString(bool b)
Definition: PrintUtils.cxx:108
string P3AsString(const TVector3 *vec)
Definition: PrintUtils.cxx:69
string P4AsString(const TLorentzVector *p)
Definition: PrintUtils.cxx:27
string BoolAsTFString(bool b)
Definition: PrintUtils.cxx:96
string filename
Definition: train.py:213
string BoolAsIOString(bool b)
Definition: PrintUtils.cxx:102
string BoolAsString(bool b)
Definition: PrintUtils.cxx:91
p
Definition: test.py:223
void PrintBanner(void)
Definition: PrintUtils.cxx:114
Definition: utils.py:1
static bool * b
Definition: config.cpp:1043
string PrintFramedMesg(string mesg, unsigned int nl=1, const char f='*')
Definition: PrintUtils.cxx:164
list x
Definition: train.py:276
string X4AsString(const TLorentzVector *x)
Definition: PrintUtils.cxx:57
std::string nl(std::size_t i=1)
string Vec3AsString(const TVector3 *vec)
Definition: PrintUtils.cxx:80