2 TMVA Class application
Renata Kopecná edited this page 2022-01-31 17:16:24 +01:00

The MVA response is calculated by the ROOT TMVA in TMVAClassApp.cpp.

Table of Contents

Functions and their parameters:

string InputToReader()

Gets the ReaderName (from the InputVariables) and changes it into a name stripped of the ':=' part. This is needed in order to add the variables into the TMVA::Reader.

  • Parameters
    • string ReaderName
  • Return
    • Stripped ReaderName string

Int_t TMVAClassificationApplication_b2kmm()

Calculates the MVA response for each event and saves the response in a new tuple. The MVA response is calculated using the xml file generated by MVA.cpp. The splitting and the input variables must be exactly the same (variables even in the same order) as in the MVA training! The variables are read from TMVA_variables_KplusPi0Resolved.txt.

  • Parameters
    • Int_t Run = 1
    • Int_t year = 2011
    • bool KshortDecayInVelo = false
    • bool MC = false
    • bool ReferenceChannel = false
    • bool PHSP = false
    • bool UseLowQ2Range = false
    • bool IncSample = false
  • Return
    • 0 if something fails, otherwise 1

Int_t TMVAClassAppData()

Calls TMVAClassificationApplication_b2kmm() for data each year (and both DD and LL).

  • Parameters
    • Int_t Run
  • Return
    • 0 if something fails, otherwise 1

Int_t TMVAClassAppMC()

Calls TMVAClassificationApplication_b2kmm() for signal MC each year (and both DD and LL).

  • Parameters
    • Int_t Run
  • Return
    • 0 if something fails, otherwise 1

Int_t TMVAClassAppRefMC()

Calls TMVAClassificationApplication_b2kmm() for reference MC each year (and both DD and LL).

  • Parameters
    • Int_t Run
  • Return
    • 0 if something fails, otherwise 1

Int_t TMVAClassAppPHSP()

Calls TMVAClassificationApplication_b2kmm() for PHSP MC each year (and both DD and LL).

  • Parameters
    • Int_t Run
  • Return
    • 0 if something fails, otherwise 1

Int_t TMVAClassAppInc()

Calls TMVAClassificationApplication_b2kmm() for Inclusive MC each year (and both DD and LL).

  • Parameters
    • Int_t Run
  • Return
    • 0 if something fails, otherwise 1

Int_t TMVAClassAppAll()

Calls TMVAClassApp for data, signal MC, reference MC and PHPS MC.

  • Parameters
    • Int_t Run = 1
  • Return
    • 0 if something fails, otherwise 1