Logo ROOT   6.16/01
Reference Guide
hsimpleProxy.C File Reference

Detailed Description

View in nbviewer Open in SWAN

To use this file, generate hsimple.root:

root.exe -b -l -q hsimple.C
#define b(i)
Definition: RSha256.hxx:100
float * q
Definition: THbookFile.cxx:87
auto * l
Definition: textangle.C:4

and do

TFile *file = TFile::Open("hsimple.root");
TTree *ntuple ; file->GetObject("ntuple",ntuple);
ntuple->Draw("hsimpleProxy.C+");
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Definition: TFile.h:48
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseGeneralPurpose, Int_t netopt=0)
Create / open a file.
Definition: TFile.cxx:3975
A TTree object has a header with a name and a title.
Definition: TTree.h:71
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
Definition: TTree.h:371
Definition: file.py:1
double hsimpleProxy() {
return px;
}
Author
Rene Brun

Definition in file hsimpleProxy.C.