7 TFile in_file(
"conductivity_experiment.root");
9 float pot,cur,temp,pres;
float* row_content;
11 cout <<
"Potential\tCurrent\tTemperature\tPressure\n";
12 for (
int irow=0;irow<my_tuple->
GetEntries();++irow){
14 row_content = my_tuple->
GetArgs();
17 temp = row_content[2];
18 pres = row_content[3];
19 cout << pot <<
"\t" << cur <<
"\t" << temp
20 <<
"\t" << pres << endl;
void GetObject(const char *namecycle, T *&ptr)
Get an object with proper type checking.
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
A simple TTree restricted to a list of float variables only.
Float_t * GetArgs() const
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
Read all branches of entry and return total number of bytes read.
virtual Long64_t GetEntries() const
void read_ntuple_from_file()