Hi all,
I would like to use TEfficiency
objects in my analysis as these work nicely with ROOT’s hadd
.
Let’s suppose I have various DiHiggs MC samples for different processes (gluon gluon fusion, Vector Boson Fusion) etc. Would hadd
then be the correct macro to use?
In this example of TEfficiency’s class description, it is stated that If you use cuts to select electrons which can originate from two different processes,...
, i should be using combined efficiency. I am not entirely sure if hadd
supports the ::Combine() method, as I’ve only seen the ::Merge() method being utilized in the script.
In the end, is it correct to use hadd
for samples of different physics processes?
Secondly, there is a type of Efficiency called (sometimes) Relative, which can be defined as :
Events passed by the cut with respect to the previous cuts / Total events passed by the previous cut,
e.g. for a cut-i in the analysis :
N_events(pass_i AND pass_i-1 AND … AND pass_0) / N_events (pass_i-1 AND … AND pass_0)
So each cut-i would be represented by this bin. I basically do :
eff->SetTotalEvents(bin of cut i,Events passed by cut i-1);
eff->SetPassedEvents(bin of cut i,Events passed by cut i);
But I am not sure if the efficiency calculation with hadd produces the correct overall efficiency.
Thank you in advance for your time.