ROOT
CLING_PROFILE
Reference Guide
Loading...
Searching...
No Matches
hsimpleProxyDriver.C
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_tree
3
/// \notebook -nodraw
4
/// This is the driver of the hsimpleProxy example.
5
/// It provides the infrastructure to run that code on an ntuple
6
/// To be run from the tutorials directory
7
///
8
/// \macro_code
9
///
10
/// \author Rene Brun
11
12
void
hsimpleProxyDriver()
13
{
14
std::cout <<
gSystem
->WorkingDirectory() << std::endl;
15
TFile
*file =
TFile::Open
(
"hsimple.root"
);
16
if
(!file){
17
std::cerr <<
"Input file not found.\n"
;
18
return
;
19
}
20
TTree
*ntuple =
nullptr
;
21
file->
GetObject
(
"ntuple"
,ntuple);
22
std::string
s1
(__FILE__);
23
TString
dir =
gSystem
->UnixPathName(
s1
.substr(0,
s1
.find_last_of(
"\\/"
)).c_str());
24
ntuple->Draw(dir+
"/hsimpleProxy.C+"
);
25
}
s1
#define s1(x)
Definition
RSha256.hxx:91
return
return
Definition
TDirectory.cxx:1438
gSystem
externTSystem * gSystem
Definition
TSystem.h:582
TDirectory::GetObject
void GetObject(const char *namecycle, T *&ptr)
Get an object with proper type checking.
Definition
TDirectory.h:213
TFile
Definition
TFile.h:130
TFile::Open
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
TString
Basic string class.
Definition
TString.h:138
TTree
A TTree represents a columnar dataset.
Definition
TTree.h:89
csv2tntuple.ntuple
ntuple
Definition
csv2tntuple.py:30
tutorials
io
tree
hsimpleProxyDriver.C
ROOTCLING_PROFILE - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1