#include <Utils.h>
Static Public Member Functions | |
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 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 62 of file Utils.cc.
References BuildWebpage::date, 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] |
get all files matching pattern
Definition at line 46 of file Utils.cc.
References i, NULL, and python::entryComment::results.
Referenced by pftools::IO::IO().
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 funct::exp(), and theta().