GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
#include "TGRSIUtilities.h"
#include <cstdlib>
#include <sys/stat.h>
#include <iostream>
#include <fstream>
#include "TObjArray.h"
#include "TObjString.h"
#include "TPRegexp.h"
#include "TString.h"
Go to the source code of this file.
Functions | |
bool | AllFilesExist (const std::vector< std::string > &filenames) |
bool | DirectoryExists (const char *dirname) |
bool | FileExists (const char *filename) |
int | GetRunNumber (const std::string &fileName) |
int | GetSubRunNumber (const std::string &fileName) |
void | trim (std::string &line, const std::string &trimChars) |
void | trimWS (std::string &line) |
bool AllFilesExist | ( | const std::vector< std::string > & | filenames | ) |
Definition at line 39 of file TGRSIUtilities.cxx.
Referenced by TGRSIint::ApplyOptions().
bool DirectoryExists | ( | const char * | dirname | ) |
This checks if the directory exists
Definition at line 26 of file TGRSIUtilities.cxx.
Referenced by TSRIM::ReadEnergyLossFile().
bool FileExists | ( | const char * | filename | ) |
This checks if the path exist, and if it is a file and not a directory!
Definition at line 13 of file TGRSIUtilities.cxx.
Referenced by TDataFrameLibrary::Load(), TParserLibrary::Load(), TGRSIint::OpenRawFile(), TGRSIint::RunMacroFile(), and TGRSIint::SetupPipeline().
int GetRunNumber | ( | const std::string & | fileName | ) |
Definition at line 67 of file TGRSIUtilities.cxx.
Referenced by TGRSIint::SetupPipeline().
int GetSubRunNumber | ( | const std::string & | fileName | ) |
Definition at line 90 of file TGRSIUtilities.cxx.
Referenced by TGRSIint::SetupPipeline().
void trim | ( | std::string & | line, |
const std::string & | trimChars ) |
Removes the string "trimCars" from the string 'line'
Definition at line 44 of file TGRSIUtilities.cxx.
Referenced by GValue::ParseInputData(), TRunInfo::ParseInputData(), and TUserSettings::ReadSettings().
void trimWS | ( | std::string & | line | ) |
Removes whitespace from the string 'line'
Definition at line 60 of file TGRSIUtilities.cxx.
Referenced by TChannel::ParseInputData().