Utility functions. More...
#include <Utils.h>
Static Public Member Functions | |
static std::string | date () |
returns the date | |
static std::string | Date () |
returns the date | |
static TCanvas * | DivideCanvas (TCanvas *cv, int nPads) |
divide a TCanvas in a nice way | |
static std::vector< std::string > | Glob (const char *pattern) |
get all files matching pattern | |
static double | mpi_pi (double angle) |
returns angle between mpi and pi | |
static std::vector< std::string > | myGlob (const char *pattern) |
get all files matching pattern | |
static bool | stringMatch (const char *string, const char *pattern) |
match a string to a regexp | |
static bool | StringMatch (const char *string, const char *pattern) |
match a string to a regexp | |
static TVector3 | VectorEPRtoXYZ (const TVector3 &posepr) |
converts a vector (in eta,phi,R) to a vector in (x,y,z) |
string Utils::date | ( | ) | [static] |
returns the date
Definition at line 41 of file Utils.cc.
References recoMuon::in, and query::result.
string Utils::Date | ( | ) | [static] |
returns the date
Definition at line 62 of file Utils.cc.
References recoMuon::in, and query::result.
TCanvas * Utils::DivideCanvas | ( | TCanvas * | cv, |
int | nPads | ||
) | [static] |
divide a TCanvas in a nice way
Definition at line 30 of file Utils.cc.
References mathSSE::sqrt().
{ if( !cv ) return 0; if( nPads<=1 ) return cv; int sqnP = (unsigned int) (sqrt( nPads )); int nC = sqnP; int nL = sqnP; while( nC*nL < nPads ) if( nC < nL ) nC++; else nL++; cv->Divide( nC, nL, 0.005, 0.005, 0 ); return cv; }
vector< string > Utils::Glob | ( | const char * | pattern | ) | [static] |
double Utils::mpi_pi | ( | double | angle | ) | [static] |
vector< string > Utils::myGlob | ( | const char * | pattern | ) | [static] |
get all files matching pattern
Definition at line 25 of file Utils.cc.
References i, NULL, and python::entryComment::results.
bool Utils::stringMatch | ( | const char * | string, |
const char * | pattern | ||
) | [static] |
match a string to a regexp
Definition at line 9 of file Utils.cc.
References NULL, and ntuplemaker::status.
bool Utils::StringMatch | ( | const char * | string, |
const char * | pattern | ||
) | [static] |
match a string to a regexp
Definition at line 13 of file Utils.cc.
References NULL, and ntuplemaker::status.
TVector3 Utils::VectorEPRtoXYZ | ( | const TVector3 & | posepr | ) | [static] |
converts a vector (in eta,phi,R) to a vector in (x,y,z)
Definition at line 73 of file Utils.cc.
References create_public_lumi_plots::exp, and theta().
Referenced by PFRootEventManager::tauBenchmark().