Hello
I am learning how to use TTreeReader but I have miserably failed.
I have a file with 2 TTrees (I uploaded it to cernbox)
https://cernbox.cern.ch/index.php/s/hqEk6R3Yc0vhWtI
If I open it and Draw a leaf, I can do it without any problem:
root -l 2019-08-27_15-49-55_run.txt.root
ch0->Draw("raw.event")
When I try with TTreeReader, it tells me that raw.event does not exist
root -l 2019-08-27_15-49-55_run.txt.root
root [0]
Warning in <TClass::Init>: no dictionary for class TMeas is available
Warning in <TClass::Init>: no dictionary for class TTiming is available
Warning in <TClass::Init>: no dictionary for class TWaveform is available
(TFile *) 0x18b8290
root [1] TTreeReader reader(ch0)
Error in <TClass::Load>: dictionary of class TMeasHeader not found
(TTreeReader &) Name: TTreeReader Title: A simple interface to read trees
root [2] TTreeReaderValue<UInt_t> event(reader,"raw.event")
(TTreeReaderValue<UInt_t> &) @0x7fcb74e9c178
root [3] reader.Next()
Error in <TTreeReaderValueBase::CreateProxy()>: The tree does not have a branch, nor a sub-branch called raw.event. You could check with TTree::Print() for available branches.
(bool) false
Can you indicate what I am doing wrong? Thank you!
Marcos
Please read tips for efficient and successful posting and posting code
_ROOT Version: 6.16/00
_Platform: ubuntu 16.04
_Compiler: g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609