Plotting input variables for specific MVA cut

Hello

In the .root file one gets from TMVA, there are the TrainTree and TestTree which also contain the input variables - So, using something like

TestTree->Draw(“var1”,“BDT>x”) one can easily draw the input variable for a specific range of the BDT method. The problem is that there are only the Bkg variables saved, so it is not possible to also plot the same variable for signal. Is there a solution to this ? I am using TMVA under CMSSW8025 (root 6.06)

Thanks

Alex

Hi @Alkass,
could it be this is an issue with the specific program that produced your trees?
Can that program be modified to also store the signal variables in your trees?
Note that often they are in a different tree than the background variables.

Cheers,
Enrico

Hello

No, my Classification .C is like any other, so the variables are formed and pushed via the factory for training/testing…So I am expecting to get trees for both S and B separately, no ?

Cheers

Alex

The TrainTree and TestTree's will have a branch called classID with which you can select events from a particular class. E.g. TestTree->Draw("var1", "BDT>x && classID==0").

Cheers,
Kim

ah! Great, did not realise that

Cheers

Alex