This is the driver of the hsimpleProxy example It provides the infrastructure to run that code on an ntuple To be run from the tutorials directory
void hsimpleProxyDriver()
{
if (!file){
std::cerr << "Input file not found.\n";
return ;
}
std::string
s1(__FILE__);
ntuple->
Draw(dir+
"/hsimpleProxy.C+");
}
R__EXTERN TSystem * gSystem
void GetObject(const char *namecycle, T *&ptr)
Get an object with proper type checking.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
virtual const char * WorkingDirectory()
Return working directory.
A TTree represents a columnar dataset.
void Draw(Option_t *opt) override
Default Draw method for all objects.
- Author
- Rene Brun
Definition in file hsimpleProxyDriver.C.