Add 'Efficiency.cpp'

Renata Kopecná 2022-01-25 17:48:37 +01:00
parent ecf4c1bdab
commit 5979f22d2d

428
Efficiency.cpp.md Normal file

@ -0,0 +1,428 @@
## Global variables:
* double defaultBDTstep = 0.005
# Functions and their parameters:
### Double_t getLowBDTcut()
* **Parameters**
* bool fineScan
* **Return**
### TH1D \*convertTGraph()
* **Parameters**
* TGraphErrors \*effGraph
* **Return**
### TH1D \* getL0MuonEfficiency()
* **Parameters**
* string year
* string magnet
* bool MC
* bool ReferenceChannel
* bool PHSP
* bool useDimuon
* **Return**
### int getAllL0MuonEfficiencies()
* **Parameters**
* string year
* string magnet
* bool useDimuon
* **Return**
### int getAllL0MuonEfficienciesAllYears()
* **Parameters**
* int Run
* string magnet
* bool useDimuon
* **Return**
### int ScanBDTEfficiency()
* **Parameters**
* string year
* string magnet
* Double_t BDTstep
* int Run
* bool UseOnlyMuMuEvents
* bool PHSP
* bool KshortDecaysInVelo
* bool IncludeMultipleEff
* bool weighted
* **Return**
### int ScanBDTEfficiencyAllYears()
* **Parameters**
* bool UseOnlyMuMuEvents
* bool PHSP
* bool weighted
* bool IncludeMultipleEff
* **Return**
### int ScanMultipleCandidatesEfficiencyAllYearsAllSamples()
* **Parameters**
* bool weighted
* bool IncludeMultipleEff
* **Return**
### int ScanBDTEfficiencyAllSig ()
* **Parameters**
* int Run
* Double_t BDTstep
* bool SplitByYears
* bool RemoveMultiple
* bool weighted
* **Return**
### int ScanBDTEfficiencyAllPHSP()
* **Parameters**
* int Run
* Double_t BDTstep
* bool SplitByYears
* bool RemoveMultiple
* bool weighted
* **Return**
### int ScanBDTEfficiencyAllRef ()
* **Parameters**
* int Run
* Double_t BDTstep
* bool SplitByYears
* bool RemoveMultiple
* bool weighted
* **Return**
### int ScanBDTEfficiencyAll()
* **Parameters**
*
* **Return**
### int plotBDTEfficiency()
* **Parameters**
* string year
* int Run
* Double_t TMVAcut
* bool UseOnlyMuMuEvents
* bool PHSP
* bool KshortDecaysInVelo
* bool RemoveMultiple
* bool weighted
* string sExtraVar
* **Return**
### int plotBDTEffciencyInAngles()
* **Parameters**
* string year
* int Run
* **Return**
### void ScanKshortBDTGcutOverQ2()
* **Parameters**
*
* **Return**
### plotBDTEfficiency()
* **Parameters**
* "2011"
* 1
* 0.8
* true
* false
* false
* false
* true
* "q2"); //Run1 DD
* **Return**
### plotBDTEfficiency()
* **Parameters**
* "2011"
* 1
* 0.5
* true
* false
* true
* false
* true
* "q2"); //Run1 LL
* **Return**
### plotBDTEfficiency()
* **Parameters**
* "2011"
* 2
* 0.65
* true
* false
* false
* false
* true
* "q2"); //Run2 DD
* **Return**
### plotBDTEfficiency()
* **Parameters**
* "2011"
* 2
* 0.4
* true
* false
* true
* false
* true
* "q2"); //Run2 LL
* **Return**
### void GetKshortBDTeffForJpsi()
* **Parameters**
*
* **Return**
### EffAndError effRun1DD = EffAndError()
* **Parameters**
* );
* **Return**
### EffAndError effRun1LL = EffAndError()
* **Parameters**
* );
* **Return**
### EffAndError effRun2DD = EffAndError()
* **Parameters**
* );
* **Return**
### EffAndError effRun2LL = EffAndError()
* **Parameters**
* );
* **Return**
### effRun1DD = getBDTEfficiencySimple()
* **Parameters**
* "2011"
* 0.8
* 1
* false
* false
* false
* false
* true
* ""
* 0);
* **Return**
### effRun1LL = getBDTEfficiencySimple()
* **Parameters**
* "2011"
* 0.5
* 1
* false
* false
* true
* false
* true
* ""
* 0);
* **Return**
### effRun2DD = getBDTEfficiencySimple()
* **Parameters**
* "2011"
* 0.65
* 2
* false
* false
* false
* false
* true
* ""
* 0);
* **Return**
### effRun2LL = getBDTEfficiencySimple()
* **Parameters**
* "2011"
* 0.4
* 2
* false
* false
* true
* false
* true
* ""
* 0);
* **Return**
### TGraphErrors \*getSelectionEffTGraph()
* **Parameters**
* bool full
* bool UseOnlyMuMuEvents
* bool PHSP
* bool KshortDecaysInVelo
* bool RemoveMultiple
* bool weighted
* string customTMbrach
* bool gammaTM
* **Return**
### TGraphErrors \*getSelectionEffTGraph()
* **Parameters**
* bool full
* string year
* int Run
* string customTMbranch
* bool gammaTM
* bool UseOnlyMuMuEvents
* bool Reference
* bool PHSP
* bool RemoveMultiple
* bool weighted
* string sExtraVar
* **Return**
### int plotSelectionEfficiency()
* **Parameters**
* bool full
* string year
* int Run
* bool UseOnlyMuMuEvents
* bool Reference
* bool PHSP
* bool weighted
* string sExtraVar
* string customTMbranch
* bool gammaTM
* **Return**
### int plotSelectionEfficiencyAllYearsAll()
* **Parameters**
* bool full
* bool RemoveMultiple
* bool weighted
* string customTMbrach
* bool gammaTM
* **Return**
### // TGraphErrors \*effGraphPHSP = getSelectionEffTGraph()
* **Parameters**
* full
* false
* true
* KshortDecaysInVelo
* RemoveMultiple
* weighted
* customTMbrach
* gammaTM);
* **Return**
### int plotSelectionEfficiencyAll()
* **Parameters**
* bool full
* bool UseOnlyMuMuEvents
* bool Reference
* bool PHSP
* bool weighted
* string sExtraVar
* **Return**
### int plotSelectionEfficiencyAll()
* **Parameters**
* bool full
* **Return**
### TGraphErrors \*getTMeffTGraph()
* **Parameters**
* bool UseOnlyMuMuEvents
* bool PHSP
* bool KshortDecaysInVelo
* bool RemoveMultiple
* bool weighted
* string customTMbrach
* bool gammaTM
* **Return**
### int plotTruthMatchingEfficiencyAllYearsAll()
* **Parameters**
* bool RemoveMultiple
* bool weighted
* string customTMbrach
* bool gammaTM
* **Return**
### int plotTruthMatchingEfficiencyAllYearsAll()
* **Parameters**
* bool gammaTM
* string customTMbranch
* **Return**
### TGraphErrors \*getTMeffTGraph()
* **Parameters**
* string year
* int Run
* string customTMbranch
* bool gammaTM
* bool UseOnlyMuMuEvents
* bool PHSP
* bool RemoveMultiple
* bool weighted
* string sExtraVar
* **Return**
### int plotTruthMatchingEfficiency()
* **Parameters**
* string year
* int Run
* bool UseOnlyMuMuEvents
* bool PHSP
* string sExtraVar
* string customTMbranch
* bool gammaTM //TODO sigEff
* **Return**
### int runAllEff()
* **Parameters**
*
* **Return**