Let’s say i have a list of files .root and i’m doing this:
TChain chain("T");
chain.Add("file1.root");
chain.Add("file2.root");
chain.Add("file3.root");
Is there a way to make it smoother? Assuming all my root files are of the type filesomething.root, can i do something like chain.Add("file*.root");
where the * will replace any character coming after “file”?
Also, on a whole different topic, let’s say i have a TH1F. How do i find the value that appears most often (aka mode)?
Using histo->GetMaximum() will return the highest value on the y axis, what i’m looking for is the corresponding value to that maximum on the x axis!
Thanks in advance and let me know if anything i said results unclear.
Andrea