pcbend / GRUTinizer

Let's grutinize!
8 stars 32 forks source link

TTree::Scan overwrites the GValues passed on the command line. #74

Closed Lunderberg closed 8 years ago

Lunderberg commented 8 years ago

When looping over a tree, the GValue in a ROOT file is loaded whether or not there was one passed on the command line. This makes it impossible to use a TTree::Scan() or TTree::Draw() command for values other than those already present in the root file.

lunderbe@walnut ~/mnt_analysis/e13701/analysis $ grutinizer -l sega_values.val rootfiles/run-0122.root
        file rootfiles/run-0122.root opened as _file0
parsed 6560 lines,
parsed 6560 lines,
GRizer [0] GValue::Value("beta")
(double)8.50000000000000061e-02
GRizer [1] gChain->Draw("@janus_hits.size()","","",10)
(Long64_t)10
GRizer [2] GValue::Value("beta")
(double)1.00000000000000002e-02
GRizer [3]