int | appendToListOfFolderNames(const TString& filename, TList* list, TClass* type = TQFolder::Class(), const TString& prefix = "") |
int | appendToListOfFolders(const TString& filename, TList* list, TClass* type = TQFolder::Class()) |
bool | areEquivalent(TObject* obj1, TObject* obj2) |
double | convertdXfromNDC(double x) |
double | convertdXtoNDC(double x) |
double | convertdXtoPixels(double x) |
double | convertdYfromNDC(double y) |
double | convertdYtoNDC(double y) |
double | convertdYtoPixels(double y) |
double | convertXfromNDC(double x) |
double | convertXtoNDC(double x) |
double | convertXtoPixels(double x) |
double | convertYfromNDC(double y) |
double | convertYtoNDC(double y) |
double | convertYtoPixels(double y) |
bool | directoryExists(const TString& path) |
void | dumpTop(TString folder, TString prefix = "qframework", TString message = "") |
bool | ensureDirectory(TString path) |
bool | ensureDirectoryForFile(TString filename) |
bool | ensureTrailingNewline(const char* filename) |
TList* | execute(const TString& cmd, size_t maxOutputLength = 80) |
bool | fileExists(const TString& filename) |
bool | fileExistsEOS(const TString& filename) |
bool | fileExistsLocal(const TString& filename) |
TString | findFile(const TString& basepath, const TString& filename) |
TString | findFile(TList* basepaths, const TString& filename) |
TString | findFile(TList* basepaths, const TString& filename, int& index) |
TString | findFileEOS(const TString& basepath, const TString& filename, const TString& eosprefix) |
TString | findFileLocal(const TString& basepath, const TString& filename) |
TString | formatTimeDifference(unsigned int time) |
double | getAverage(vector<double>& vec) |
double | getAverageOrderOfMagnitude(TMatrixD* mat) |
int | getAverageOrderOfMagnitudeInt(TMatrixD* mat) |
TObjArray* | getBranchNames(const TString& input) |
size_t | getCurrentRSS() |
unsigned long | getCurrentTime() |
unsigned long | getFileSize(const TString& path) |
char | getLastCharacterInFile(const char* filename) |
TList* | getListOfFilesMatching(TString pattern) |
TList* | getListOfFolderNamesInFile(const TString& filename, TClass* type = TQFolder::Class()) |
TList* | getListOfFoldersInFile(const TString& filename, TClass* type = TQFolder::Class()) |
vector<TQTaggable*>* | getListOfTagsFromFile(const TString& filename) |
vector<TQTaggable*>* | getListOfTagsFromFile(const TString& filename, TQTaggable& dictTags) |
TString | getMD5(const TString& filepath) |
TString | getMD5EOS(TString filepath) |
TString | getMD5Local(const TString& filepath) |
int | getMinIndex(const vector<int>& vals, const vector<bool>& accepts) |
int | getMinIndex(int val0, int val1, int val2, bool accept0, bool accept1, bool accept2) |
TString | getModificationDate(TFile* f) |
TList* | getObjects(const TString& objName, TClass* objClass = TObject::Class(), TDirectory* d = (ROOT::Internal::TDirectoryAtomicAdapter(TDirectory::CurrentDirectory()))) |
TList* | getObjectsFromFile(TString identifier, TClass* objClass = TObject::Class()) |
TList* | getObjectsFromFile(const TString& filename, const TString& objName, TClass* objClass = TObject::Class()) |
double | getOrderOfMagnitude(double value) |
int | getOrderOfMagnitudeInt(double value) |
size_t | getPeakRSS() |
double | getSampleCorrelation(vector<double>& vec1, vector<double>& vec2, bool verbose = true) |
double | getSampleCovariance(vector<double>& vec1, vector<double>& vec2, bool verbose = true) |
double | getSampleVariance(vector<double>& vec) |
double | getSum(TTree* t, const TString& bname) |
TString | getTimeStamp(const TString& format = "%c", size_t len = 80) |
double | getValue(TTree* t, const TString& bname, Long64_t iEvent = 0) |
bool | inRange(double x, double a, double b) |
bool | isNum(double a) |
TList* | ls(TString exp) |
TList* | lsdCache(const TString& fname, const TString& localGroupDisk, const TString& oldHead, const TString& newHead, const TString& dq2cmd = "dq2") |
TList* | lsEOS(TString exp, const TString& eosprefix, TString path = "") |
TList* | lsLocal(const TString& exp) |
TFile* | openFile(const TString& filename) |
bool | parseAssignment(TString input, TString* dest, TString* source) |
void | printActiveBranches(TTree* t) |
void | printBranches(TTree* t) |
void | printDecayChain(TTree* t, Long64_t evt = 0, int ptcl = 0, const TString& bName = "TruthParticles") |
void | printHEPdataInfo(TQFolder* config, const TString& title, const TString& description, const TString& filename) |
void | printParticle(TTree* t, Long64_t evt, int index, const TString& bName = "TruthParticles") |
void | printParticles(TTree* t, Long64_t evt, int id, const TString& bName = "TruthParticles") |
void | printProductionChain(TTree* t, Long64_t evt = 0, int ptcl = 0, const TString& bName = "TruthParticles") |
string | readEnvVarValue(const string& envVar) |
bool | readEnvVarValueBool(const string& envVar, bool fallback = true) |
double | round(double d, int nDigits = 0) |
double | roundAuto(double d, int nSig = 1) |
double | roundAutoDown(double d, int nSig = 1) |
double | roundAutoUp(double d, int nSig = 1) |
double | roundDown(double d, int nDigits = 0) |
double | roundUp(double d, int nDigits = 0) |
int | sgn(int val) |
double | sgn(double val) |
void | writeHEPdataError(ostream& out, double eup, double edn, string elbl) |
void | writeHEPdataHeader(ostream& out, const TString& vartype, const TString name, const TString& unit = "") |
void | writeHEPdataValue(ostream& out, const TString& s) |
void | writeHEPdataValue(ostream& out, double d) |
void | writeHEPdataValueAndError(ostream& out, double d, double e, string elbl) |
void | writeHEPdataValueWithErrors(ostream& out, double d) |
double | xAODMetaDataGetNEventsInitialFromCutBookkeeper(TTree* tree, const char* container = "StreamAOD", const char* bookkeeper = "AllExecutedEvents") |
double | xAODMetaDataGetNEventsInitialFromCutBookkeeper(xAOD::TEvent& event, const char* container = "StreamAOD", const char* bookkeeper = "AllExecutedEvents") |
double | xAODMetaDataGetSumWeightsInitialFromCutBookkeeper(TTree* tree, const char* container = "StreamAOD", const char* bookkeeper = "AllExecutedEvents") |
double | xAODMetaDataGetSumWeightsInitialFromCutBookkeeper(xAOD::TEvent& event, const char* container = "StreamAOD", const char* bookkeeper = "AllExecutedEvents") |
double | xAODMetaDataGetSumWeightsInitialFromEventBookkeeper(TTree* MetaData) |
Returns true if objects <obj1> and <obj2> are considered equivalent. [not yet implemented]
check if the given text file has a terminating newline character if this is not the case, append a newline at the end
Check whether the file <filename> exists and return true if so, and false otherwise
Check whether the file <filename> exists and return true if so, and false otherwise. Works on eos paths.
Scans the file system for files whose names match the string pattern <pattern> and returns a list (instance of TList) of matching filenames (as instances of TObjString).
return the current time formatted according to the given string
convert an x-coordinate (horizontal) from user to NDC coordinates using the current pad
convert an y-coordinate (vertical) from user to NDC coordinates using the current pad
convert an x-coordinate (horizontal) from user to absolute (pixel) coordinates using the current pad
convert an y-coordinate (vertical) from user to absolute (pixel) coordinates using the current pad
convert an x-coordinate (horizontal) from NDC to user coordinates using the current pad
convert an y-coordinate (vertical) from NDC to user coordinates using the current pad
convert an x-distance (horizontal) from user to NDC coordinates using the current pad
convert an y-distance (vertical) from user to NDC coordinates using the current pad
convert an x-distance (horizontal) from user to absolute (pixel) coordinates using the current pad
convert an y-distance (vertical) from user to absolute (pixel) coordinates using the current pad
convert an x-distance (horizontal) from NDC to user coordinates using the current pad
convert an y-distance (vertical) from NDC to user coordinates using the current pad
returns unbiased sample variance 1/(n-1)*sum (x_i-x)^2
returns unbiased sample covariance 1/(n-1)*sum (x_i-x)^2
Calculates the average order of magnitude of the matrix entries through log10(value). If value is zero, the order of magnitude is assumed to be zero. This version does not round at any step.
Calculates the average order of magnitude of the matrix entries through log10(value). If value is zero, the order of magnitude is assumed to be zero. This version rounds down to the next integer at each step (i.e. at each log10(value) as well as for the average)
return the full valid path of a file residing on EOS, given the filename and a base folder returns empty string if no match found
return the full valid path of a local file, given the filename and a base folder returns empty string if no match found
return the full valid path of a file at any location, given the filename and a list of base folders returns empty string if no match found
return the full valid path of a file, given the filename and a list of base folders returns empty string if no match found
return the full valid path of a file, given the filename and a list of base folders returns empty string if no match found
return a list of files matching the expression if used on local files, the output is equivalent to bash "ls" this function also supports remote file systems - for EOS, please make sure that TQLibrary knows about the location of the "eos.select" binary if not properly detected by the Makefile, this can be edited by calling TQLibrary::getQLibary()->setEOScmd("...") please prefix EOS paths with "root://" - for Grid dCache, please make sure that TQLibrary knows about * the name of the local group disk set with TQLibary::getQLibrary()->setLocalGroupDisk("...") * a dq2 suite (default "dq2") set with TQLibary::getQLibrary()->setDQ2cmd("...") * if necessary, path head replacements. Set with TQLibrary::getQLibrary()->setDQ2Head() for the old head to be removed TQLibrary::getQLibrary()->setdCacheHead() for the new head to be prepended all of these values can be set in a "locals.h" defintion file, for example, put #define LOCALGROUPDISK "UNI-FREIBURG_LOCALGROUPDISK" #define DQ2PATHHEAD "srm://se.bfg.uni-freiburg.de" #define DCACHEPATHHEAD "dcap://se.bfg.uni-freiburg.de:22125" please prefix dataset expressions with "dCache:"
return a full list of all files locally available in the dCache the dataset and localGroupDisk names are forwarded to dq2-ls the dq2-command can be set as optional parameter (use, e.g. 'dq2' or 'rucio') if oldHead and newHead are given, the resulting path head will be exchanged accordingly
the identifier is formatted "filename:objectname"
retrieves a list of all objects in the given file
that have a key matching the given class
and object name pattern (may contain wildcards)
retrieves a list of all objects in the given file that have a key matching the given class and object name pattern (may contain wildcards)
retrieves a list of all objects in the given directory that have a key matching the given class and object name pattern (may contain wildcards) Wildcard matching is disabled, if the given name contains a slash (/). In this case the given name is used directory in root_file->Get(..), which means that the TTrees can be stored in TDirectories.
retrieves a list of sets of tags written in a file tags written in a single line are put together a set, i.e. one TQTaggable optionally provide a dictionary for $(placeholder)'s
retrieves a list of sets of tags written in a file tags written in a single line are put together a set, i.e. one TQTaggable optionally provide a dictionary for $(placeholder)'s
evaluate an expression on a specific event of a TTree
evaluate an expression on all events of a TTree and return the sum
retrieve the initial sum of weights from the event bookkeepers in this tree thanks to a dirty hack, this also works in standalone mode
retrieve the initial sum of weights from the cut bookkeepers in this file
retrieve the initial sum of weights from the cut bookkeepers in this file
retrieve the initial number of events from the cut bookkeepers in this file
retrieve the list of TQFolders contained in a given file if the class type is given, only TQFolder instances of the given class type are considered
append all TQfolders contained in a given file to a list if the class type is given, only TQFolder instances of the given class type are considered
retrieve the list of names of TQFolders contained in a given file if the class type is given, only TQFolder instances of the given class type are considered
append all names of TQFolders contained in a given file to a list if the class type is given, only TQFolder instances of the given class type are considered the prefix is prepended to every single name
retrieve the MD5 sum (hex value) of some local file as a TString
reads an env var specified by the first argument and returns its value as a boolean. If the env var is not found or cannot be safely interpreted as a boolean then fallback is returned.