# BDT with different cuts for different eras

**URL:** <https://root-forum.cern.ch/t/bdt-with-different-cuts-for-different-eras/34934>\
**Category:** TMVA\
**Created:** [July 1, 2019, 11:40am UTC](https://root-forum.cern.ch/t/bdt-with-different-cuts-for-different-eras/34934 "2019-07-01T11:40:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![piedra](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/piedra/32/17043_2.png) [@piedra](https://root-forum.cern.ch/u/piedra)\
**Post date:** [July 1, 2019, 11:40am UTC](https://root-forum.cern.ch/t/bdt-with-different-cuts-for-different-eras/34934/1 "2019-07-01T11:40:42Z")

</div>

Hi.

In our analysis we have simulated the signal (and the background) for different (2016, 2017 and 2018) LHC eras. For each LHC era we have a set of signal and background files. We would like to know if a given cut can have different thresholds depending on the input files,

cut \> 0.23 // When simulation corresponds to 2016  
cut \> 0.12 // When simulation corresponds to 2017  
cut \> 0.41 // When simulation corresponds to 2018

Thanks and best regards,  
Jonatan

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [July 1, 2019, 11:50am UTC](https://root-forum.cern.ch/t/bdt-with-different-cuts-for-different-eras/34934/2 "2019-07-01T11:50:48Z")

</div>

Hi,

Yes you can, but you have to use the general interface ([link](https://root.cern.ch/doc/master/classTMVA_1_1DataLoader.html#ad8302f484ef93fcd9039b1152ce26730)):

```auto
TTree * sigTree2016 = input_file.Get("SignalTree");
TTree * sigTree2017 = input_file.Get("SignalTree");

TMVA::DataLoader dataloader{"base_name"};

// NOTE: This is the most general way of adding an input source
// NOTE: Be careful with spelling, for classification the two
// predefined categories are "Signal" and "Background".
dataloader.AddTree(sigTree2016, "Signal", sigWeight2016, "<your cut>");
dataloader.AddTree(sigTree2017, "Signal", sigWeight2017, TCut("<your cut>")););

// Similar for background

```

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![piedra](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/piedra/32/17043_2.png) [@piedra](https://root-forum.cern.ch/u/piedra)\
**Post date:** [July 1, 2019, 2:34pm UTC](https://root-forum.cern.ch/t/bdt-with-different-cuts-for-different-eras/34934/3 "2019-07-01T14:34:19Z")

</div>

Thank you! I will try and let you know.

Cheers, Jonatan
