Update 'Signal Study'
parent
dd84c14921
commit
5dc0abae03
104
Signal-Study.md
104
Signal-Study.md
@ -1,79 +1,91 @@
|
|||||||
|
|
||||||
|
## Table of Contents
|
||||||
|
|
||||||
## Global variables:
|
* [Classes](#classes)
|
||||||
|
* [YieldInfo](#yieldinfo)
|
||||||
* class YieldInfo{
|
* [Functions](#functions)
|
||||||
* public:
|
* [Plotting](#plotting)
|
||||||
|
* [void YieldInfo::addYield()](#void-yieldinfoaddyield)
|
||||||
|
* [double getValueFromTGraph()](#double-getvaluefromtgraph)
|
||||||
|
* [bool yieldComparison()](#bool-yieldcomparison)
|
||||||
|
* [YieldInfo yieldInQ2()](#yieldinfo-yieldinq2)
|
||||||
|
* [bool plotYieldInQ2()](#bool-plotyieldinq2)
|
||||||
|
* [MVA cut](#mva-cut)
|
||||||
|
* [bool ApplyCut()](#bool-applycut)
|
||||||
|
* [bool ApplyCutPerYear()](#bool-applycutperyear)
|
||||||
|
* [bool ApplyCutToAll()](#bool-applycuttoall)
|
||||||
|
* [bool ApplyCutPerYearAll()](#bool-applycutperyearall)
|
||||||
|
* [bool ApplyCutPerYearAll()](#bool-applycutperyearall-1)
|
||||||
|
* [bool printYileds()](#bool-printyileds)
|
||||||
|
|
||||||
|
|
||||||
# Classes
|
# Classes
|
||||||
### YieldInfo
|
### YieldInfo
|
||||||
* **Private members:**
|
|
||||||
* **Public members:**
|
|
||||||
* **Functions:**
|
|
||||||
* **YieldInfo()**
|
|
||||||
[comment]: # ([o()](#yieldinfo))
|
|
||||||
* **Parameters**
|
|
||||||
* //default constructor
|
|
||||||
* **Return**
|
|
||||||
* **void addYield()**
|
|
||||||
[comment]: # ([addYield()](#void-addyield))
|
|
||||||
* **Parameters**
|
|
||||||
* YieldInfo addInfo
|
|
||||||
* **Return**
|
|
||||||
* **~YieldInfo()**
|
|
||||||
[comment]: # ([o()](#~yieldinfo))
|
|
||||||
* **Parameters**
|
|
||||||
* ); //destuctor
|
|
||||||
* **Return**
|
|
||||||
|
|
||||||
|
* **Public members:**
|
||||||
|
* double sigYield
|
||||||
|
* double sigYieldErr
|
||||||
|
* double bkgYield
|
||||||
|
* double bkgYieldErr
|
||||||
|
* double significance
|
||||||
|
* **Functions:**
|
||||||
|
* **YieldInfo()** //default constructor
|
||||||
|
* **void [addYield()](#void-addyield)**
|
||||||
|
* **~YieldInfo()** //destuctor
|
||||||
|
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
### YieldInfo::~YieldInfo()
|
## Plotting
|
||||||
[comment]: # ([o()](#yieldinfo-~yieldinfo))
|
|
||||||
|
|
||||||
|
### void YieldInfo::addYield()
|
||||||
|
[comment]: # ([o()](#yieldinfo-addYield))
|
||||||
|
Adds together two YieldInfo classes: makes a sum of the current YiledInfo and `addInfo`. Recalculates the significance accordingly.
|
||||||
* **Parameters**
|
* **Parameters**
|
||||||
* //destuctor
|
* YieldInfo addInfo
|
||||||
* **Return**
|
|
||||||
|
|
||||||
### double getValueFromTGraph()
|
### double getValueFromTGraph()
|
||||||
[comment]: # ([getValueFromTGraph()](#double-getvaluefromtgraph))
|
[comment]: # ([getValueFromTGraph()](#double-getvaluefromtgraph))
|
||||||
|
Reads the expected yields and significances from the TGraph with `name` saved in the `fitFile`.
|
||||||
* **Parameters**
|
* **Parameters**
|
||||||
* string name
|
* string name
|
||||||
* TFile \*fitFile
|
* TFile \*fitFile
|
||||||
* double TMVAcut
|
* double TMVAcut
|
||||||
* **Return**
|
* **Return**
|
||||||
|
* Values of TGraphs for given MVA cut
|
||||||
|
|
||||||
### bool yieldComparison()
|
### bool yieldComparison()
|
||||||
[comment]: # ([yieldComparison()](#bool-yieldcomparison))
|
[comment]: # ([yieldComparison()](#bool-yieldcomparison))
|
||||||
|
Reads the expected signal+background yield and significance as well as the actuall yield and significance and prints the values in a form of LaTeX table er Run
|
||||||
* **Parameters**
|
* **Parameters**
|
||||||
* int Run
|
* int Run
|
||||||
* double TMVAcut
|
* double TMVAcut
|
||||||
* **Return**
|
* **Return**
|
||||||
|
* Always 1
|
||||||
|
|
||||||
### YieldInfo yieldInQ2()
|
### YieldInfo yieldInQ2()
|
||||||
|
Performs the B plus mass fit in all the Q2 bins to rare data. Loads the results into the YieldInfo.
|
||||||
[comment]: # ([yieldInQ2()](#yieldinfo-yieldinq2))
|
[comment]: # ([yieldInQ2()](#yieldinfo-yieldinq2))
|
||||||
|
|
||||||
* **Parameters**
|
* **Parameters**
|
||||||
* int Run
|
* int Run
|
||||||
* double TMVAcut
|
* double TMVAcut
|
||||||
* int nBin
|
* int nBin
|
||||||
* bool doFit
|
* bool doFit (if false, don't fit, just read)
|
||||||
* **Return**
|
* **Return**
|
||||||
|
* YieldInfo filled from B plus mass fit to rare data
|
||||||
|
|
||||||
### bool plotYieldInQ2()
|
### bool plotYieldInQ2()
|
||||||
[comment]: # ([plotYieldInQ2()](#bool-plotyieldinq2))
|
[comment]: # ([plotYieldInQ2()](#bool-plotyieldinq2))
|
||||||
|
Reads the TGraphs with signal and background yields as well as the actual significance. Also reads the CMS's significance (numbers are saved in the function) and plots it all in one nice even though complicated plot, one per Run and one for both runs.
|
||||||
* **Parameters**
|
* **Parameters**
|
||||||
* bool fixRange
|
* bool fixRange
|
||||||
* **Return**
|
* **Return**
|
||||||
|
* Always True
|
||||||
|
|
||||||
|
## MVA cut
|
||||||
### bool ApplyCut()
|
### bool ApplyCut()
|
||||||
[comment]: # ([ApplyCut()](#bool-applycut))
|
[comment]: # ([ApplyCut()](#bool-applycut))
|
||||||
|
Reads the BDT output tree and creates a new reduced tree by applying a cut on the MVA response defined in [[GlobalFunctions.hh|GlobalFunctions.hh]] for given Run.
|
||||||
* **Parameters**
|
* **Parameters**
|
||||||
* int Run
|
* int Run
|
||||||
* bool MC
|
* bool MC
|
||||||
@ -81,10 +93,11 @@
|
|||||||
* bool PHSP
|
* bool PHSP
|
||||||
* double TMVAcut
|
* double TMVAcut
|
||||||
* **Return**
|
* **Return**
|
||||||
|
* Always True
|
||||||
|
|
||||||
### bool ApplyCutPerYear()
|
### bool ApplyCutPerYear()
|
||||||
[comment]: # ([ApplyCutPerYear()](#bool-applycutperyear))
|
[comment]: # ([ApplyCutPerYear()](#bool-applycutperyear))
|
||||||
|
Reads the BDT output tree and creates a new reduced tree by applying a cut on the given MVA response.
|
||||||
* **Parameters**
|
* **Parameters**
|
||||||
* int Run
|
* int Run
|
||||||
* bool MC
|
* bool MC
|
||||||
@ -92,33 +105,38 @@
|
|||||||
* bool PHSP
|
* bool PHSP
|
||||||
* double TMVAcut
|
* double TMVAcut
|
||||||
* **Return**
|
* **Return**
|
||||||
|
* Always True
|
||||||
|
|
||||||
### bool ApplyCutToAll()
|
### bool ApplyCutToAll()
|
||||||
[comment]: # ([ApplyCutToAll()](#bool-applycuttoall))
|
[comment]: # ([ApplyCutToAll()](#bool-applycuttoall))
|
||||||
|
Calls [ApplyCut()](#bool-applycut) for data, signal MC, reference MC and PHSP MC samples.
|
||||||
|
* **Parameters**
|
||||||
|
* int Run
|
||||||
|
* double TMVAcut
|
||||||
|
* **Return**
|
||||||
|
* Always True
|
||||||
|
|
||||||
|
### bool ApplyCutPerYearAll()
|
||||||
|
[comment]: # ([ApplyCutPerYearAll()](#bool-applycutperyearall))
|
||||||
|
Calls [ApplyCutPerYear()](#bool-applycutperyear) for data, signal MC, reference MC and PHSP MC samples.
|
||||||
|
|
||||||
* **Parameters**
|
* **Parameters**
|
||||||
* int Run
|
* int Run
|
||||||
* double TMVAcut
|
* double TMVAcut
|
||||||
* **Return**
|
* **Return**
|
||||||
|
* Always True
|
||||||
|
|
||||||
### bool ApplyCutPerYearAll()
|
### bool ApplyCutPerYearAll()
|
||||||
[comment]: # ([ApplyCutPerYearAll()](#bool-applycutperyearall))
|
[comment]: # ([ApplyCutPerYearAll()](#bool-applycutperyearall))
|
||||||
|
Calls [ApplyCutPerYearAll()](#bool-applycutperyearall) for given run, applying a cut on the MVA response defined in [[GlobalFunctions.hh|GlobalFunctions.hh]] .
|
||||||
* **Parameters**
|
|
||||||
* int Run
|
|
||||||
* double TMVAcut
|
|
||||||
* **Return**
|
|
||||||
|
|
||||||
### bool ApplyCutPerYearAll()
|
|
||||||
[comment]: # ([ApplyCutPerYearAll()](#bool-applycutperyearall))
|
|
||||||
|
|
||||||
* **Parameters**
|
* **Parameters**
|
||||||
* int Run
|
* int Run
|
||||||
* **Return**
|
* **Return**
|
||||||
|
|
||||||
### bool printYileds()
|
### bool printYileds()
|
||||||
[comment]: # ([printYileds()](#bool-printyileds))
|
[comment]: # ([printYileds()](#bool-printyileds))
|
||||||
|
Prints a LaTeX table with the number of candidates fro each selection step: triger and stripping, preselection and MVA selection.
|
||||||
* **Parameters**
|
* **Parameters**
|
||||||
* bool Rare
|
* bool Rare
|
||||||
* **Return**
|
* **Return**
|
||||||
|
* Always True
|
Loading…
Reference in New Issue
Block a user