Hi,
I need to perform the following operation to get the “Wanted Value” much faster than this example:
TH1D* myhisto = new TH1D("myhisto", "myhisto", 1, 0, 100); TString mySelector = "channel==" + mychannel; myTree->Draw("mybranch>>myhisto", mySelector); cout << "Wanted value is = " << myhisto->GetMean();
I already know that myhisto contains only one value because the Branch is filtered with mySelector so, I expect just one value.
I think the “wanted value” could be more directly accessed via SetBranchAddress, but how to use the TCut?
p.s. mybranch is also a vector
ROOT Version: 6
Platform: lxplus
Compiler: Not Provided