TChain, TString, Draw question

Hi experts!
I’m studying root by copying and pasting now. But there are parts i don’t understand in this code.

I don’t know the role of TString, and in Draw class what is the role of C2_noise+C1_HE part in ch->Draw(“crystal2.energy>>h_C2”,C2_noise+C1_HE).
And also ch->Draw(“crystal2.energy>>+h_C2”,C2_noise+C1_HE) why the ‘+’ is added front of the h_C2?

And this is the result.
Screenshot from 2021-07-01 01-23-59

TTree::Draw

Thanks! It really helps me.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.