GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 <c.andreopoulos \at cern.ch>
9  University of Liverpool
10 
11 \created May 06, 2004
12 
13 \cpright Copyright (c) 2003-2024, 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
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
static constexpr double b
Definition: Units.h:78
string BoolAsIOString(bool b)
Definition: PrintUtils.cxx:102
string BoolAsString(bool b)
Definition: PrintUtils.cxx:91
void PrintBanner(void)
Definition: PrintUtils.cxx:114
string PrintFramedMesg(string mesg, unsigned int nl=1, const char f='*')
Definition: PrintUtils.cxx:164
string X4AsString(const TLorentzVector *x)
Definition: PrintUtils.cxx:57
string Vec3AsString(const TVector3 *vec)
Definition: PrintUtils.cxx:80