6 Efficiency Class
Renata Kopecná edited this page 2022-02-10 11:30:58 +01:00

File defining the EffAndError class. The class contains of three memebers; value, upper error and lower error. It is used to save efficiencies in Efficiency.cpp. It was originially thought we will have to calculate the efficiency errors properly, however, turns out we don't. But if someone wants to, they hapilly can my simply modifying the functions in this file.

Table of Contents

Global variables:

string mainSignalShape = "OneCB" (Defines the shape used in the B+ mass fit, possibly obsolete)

Classes

EffAndError

Functions

EffAndError::EffAndError()

  • Parameters
  • Return
    • Inititalized EffAndError class with all members set to zero.

EffAndError::EffAndError()

  • Parameters
    • double val
  • Return
    • Inititalized EffAndError class with set value and zero errors.

EffAndError::EffAndError()

  • Parameters
    • double val
    • double highErr
    • double lowErr
  • Return
    • Inititalized EffAndError class with given values

EffAndError GetEfficiency()

Takes two files as input, from them reads the TVectorD with given name, can be different for Denominator and numerator. The division of the two numbers is saved as EffAndError without errors.

  • Parameters
    • TFile *fitFileNumerator
    • string nameNumerator
    • TFile *fitFileDenominator
    • string nameDenominator
  • Return

EffAndError getTMEfficiencySimple()

  • Parameters
    • string year
    • int Run
    • bool UseOnlyMuMuEvents
    • bool PHSP
    • bool KshortDecaysInVelo
    • bool RemoveMultiple
    • bool weighted
    • string sExtraVar
    • int nExtraBin
    • string customTMbranch
    • bool gammaTM
  • Return
    • Truth-matching efficiency without errors calculated by counting the events in the truth matched tuples.

EffAndError getBDTEfficiencySimple()

  • Parameters
    • string year
    • Double_t TMVAcut
    • int Run
    • bool UseOnlyMuMuEvents
    • bool PHSP
    • bool KshortDecaysInVelo
    • bool IncludeMultipleEff
    • bool weighted
    • string sExtraVar
    • int nExtraBin
  • Return
    • Truth-matching efficiency without errors calculated by counting the events in the truth matched tuples with given MVA cut.

EffAndError getSelectionEfficiencySimple()

  • Parameters
    • bool full
    • string year
    • int Run
    • bool UseOnlyMuMuEvents
    • bool useRefChannel
    • bool PHSP
    • bool KshortDecaysInVelo
    • bool RemoveMultiple
    • bool weighted
    • string sExtraVar
    • int nExtraBin
    • string customTMbranch
    • bool gammaTM
  • Return
    • Selection efficiency without errors calculated by counting the events in the truth matched tuples.