KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
Macros | Functions
KVBase.cpp File Reference
#include <cassert>
#include "Riostream.h"
#include "TMath.h"
#include "TFile.h"
#include "KVBase.h"
#include "TClass.h"
#include "KVString.h"
#include "TSystem.h"
#include "TInterpreter.h"
#include "TEnv.h"
#include "TPluginManager.h"
#include "KVNameValueList.h"
#include "TSystemDirectory.h"
#include "KVGitInfo.h"
#include "KVVersion.h"
#include "TROOT.h"
#include "TDatime.h"
#include "THashList.h"
#include "TError.h"
#include "TGMimeTypes.h"
#include "TGClient.h"
#include "TContextMenu.h"
#include <TEntryList.h>
#include <TEventList.h>
#include <TFileMerger.h>
#include <TGraph2D.h>
#include <TH1.h>
#include <TKey.h>
#include "TTree.h"
Include dependency graph for KVBase.cpp:

Macros

#define str(s)   #s
 
#define xstr(s)   str(s)
 

Functions

Bool_t SearchFile (const Char_t *name, TString &fullpath, int ndirs,...)
 Search for file in an arbitrary number of locations, return kTRUE if file found and put full path to file in 'fullpath". More...
 

Macro Definition Documentation

◆ str

#define str (   s)    #s

Definition at line 57 of file KVBase.cpp.

◆ xstr

#define xstr (   s)    str(s)

Definition at line 56 of file KVBase.cpp.

Function Documentation

◆ SearchFile()

Bool_t SearchFile ( const Char_t name,
TString fullpath,
int  ndirs,
  ... 
)

Search for file in an arbitrary number of locations, return kTRUE if file found and put full path to file in 'fullpath".

Search for file in an arbitrary number of locations, return kTRUE if file found and put full path to file in 'fullpath"

'name' is a filename (not an absolute pathname) i.e. "toto.dat" 'fullpath" will contain the full path to the file if it is found (if file not found, fullpath="") 'ndirs" is the number of directories to search in the remaining arguments are the names of 'ndirs' paths to search in, i.e.

SearchFile("toto.dat", fullpath, 2, gSystem->pwd(), gSystem->HomeDirectory());

means: search for a file 'toto.dat' in current working directory, then user's home directory.

Definition at line 489 of file KVBase.cpp.