Page:
Efficiency Class
Pages
AddVariable.cpp
B mass model
B2Kstmumu
B2Kstmumu.pro
BDTSelection
BDTcutScanner.cpp
BackgroundPdf Class
BackgroundType Class
CompareVariables.cpp
Comparison tool
Design.cpp
Efficiency Class
Efficiency.cpp
Event generator
FCNC Fitter
Ganga
GlobalFunctions.hh
Home
InclusiveCheck.cpp
Input MVA variables
MCtruthmatching.cpp
MVA Class
MassFit.cpp
ParamValues Class
Paths.hpp
PlotTMVA.cpp
RemoveMultipleCandidates.py
ReorganizeTGraph.py
Rescale pi0 momentum
Resolution Plotting
Running the FCNC fitter
Selection code
Signal Study
SignalPdf Class
SignalType Class
Standalone Scripts
TMVA Class application
TMVA
TMsource
Utils.hpp
Utils3.py
flav.io
getPathForPython
nTrackWeights.cpp
6
Efficiency Class
Renata Kopecná edited this page 2022-02-10 11:30:58 +01:00
Table of Contents
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
- Public members:
- double value
- double highError
- double lowError
- Functions:
- EffAndError() //default constructor
- EffAndError(double val) // constructor
- EffAndError(double val,double highErr, double lowErr) //constructor
- ~EffAndError() //default destructor
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.