Skip to content

DataSplit

dglazier edited this page Nov 1, 2019 · 3 revisions

Before Loading the Data define how you would like to split your data using LoadBinVar

Say I have the following branches in my tree V1, V2, V3 as well as the fit variables. I want to divide the data in n1 bins in V1; n2 in V2; and n3 in V3, giving a total of n1*n2*n3 datasets. Here I assume the range of all the variables is 0-10, and you can change these for whatever you like. If I have created a FitManager fm, I can divide the data into these datasets using,

  fm.Bins().LoadBinVar("V1",n1,0,10);
  fm.Bins().LoadBinVar("V2",n2,0,10);
  fm.Bins().LoadBinVar("V3",n3,0,10);
Clone this wiki locally