Using the attached files, try:
.L TMedusa.cxx++
TFile *f = TFile::Open("medusa_run78850.root");
for(Int_t i = 1; i <= 10; i++) {TMedusa *m = f->Get<TMedusa>(TString("medusa.") + i); m->Dump(); delete m;}
TMedusa.h (1.5 KB)
TMedusa.cxx (13.9 KB)
Note: This should work for the “input_data/A4/medusa_run78850.root
” and the “output_data/A4/medusa_run78850.root
” files. For the “output_data/A4/extracted/medusa_run78850.root
” file, it seems a slightly different class layout was used when writing it, so, in the “TMedusa.h
” file, you need to comment out the line in which the “Int_t memlen;
” is defined as “(persistent, stored)
”, and uncomment the line in which it is defined as “(transient, assumed)
”.