14 TChain in_chain(
"cond_data");
15 in_chain.
Add(
"conductivity_experiment*.root");
19 float pot, cur, temp, pres;
25 cout <<
"Potential\tCurrent\tTemperature\tPressure\n";
26 for (
size_t irow=0; irow<in_chain.
GetEntries(); ++irow){
29 cout << pot <<
"\t" << cur <<
"\t" << temp <<
A chain is a collection of files containing TTree objects.
Int_t SetBranchAddress(const char *bname, void *add, TBranch **ptr, TClass *realClass, EDataType datatype, bool isptr, bool suppressMissingBranchError) override
virtual Int_t Add(TChain *chain)
Add all files referenced by the passed chain to this chain.
Long64_t GetEntries() const override
Return the total number of entries in the chain.
Int_t GetEntry(Long64_t entry=0, Int_t getall=0) override
Get entry from the file to memory.
void read_ntuple_with_chain()