Update 'RemoveMultipleCandidates.py'
parent
aa2e231c3d
commit
6fb9215e65
@ -10,7 +10,14 @@ When running over the inclusive sample, it is necesarry to change the IsInc bool
|
||||
|
||||
The helper functions are defined in [[Utils3.py|Utils3.py]].
|
||||
|
||||
# Functions
|
||||
## Table of Contents
|
||||
* [Functions](#functions)
|
||||
* [isMultipleCandidate()](#ismultiplecandidate)
|
||||
* [Plotting](#plotting)
|
||||
* [plotMultiple()](#plotmultiple)
|
||||
|
||||
## Functions
|
||||
|
||||
### isMultipleCandidate()
|
||||
Reads the pariringBranch from the TTree, reads the needed branches based on the options (MLPresponse, TM branch). Loops over the MLPvalues to see at what MLP value are all the events 'alone'. Creates a new IsAloneAt+tag branch, storing the MLP response value at which is th event 'alone', the tag represents the Truth-matching method (if applied). If the event does not pass the truth-matching and it is desired, IsAloneAt+tag is set to two.
|
||||
* **Parameters**
|
||||
@ -25,5 +32,23 @@ Reads the pariringBranch from the TTree, reads the needed branches based on the
|
||||
* PHSP
|
||||
* KshortDecaysInVelo
|
||||
* verbose
|
||||
|
||||
|
||||
## Plotting
|
||||
The ploting of multiple candidates is performed by `Scripts/PlotMultiple.py`. It is necesary to update the path to your [[Comparison tool|Comparison-tool]] folder.
|
||||
|
||||
The code as is plots the fraction of multiple candidates (including the real one!) in the data, MC and truth matched MC for each year versus the MVA reponse.
|
||||
|
||||
### plotMultiple()
|
||||
[comment]: # ([plotMultiple()](#plotmultiple))
|
||||
|
||||
Loads the data from the tuple tree using uproot, checks the branch with the MLP response-dependent boolean whether the multiple candidate is removed and plots the data, MC and truth matched MC for each year versus the MVA reponse.
|
||||
* **Parameters**
|
||||
* year
|
||||
* Run
|
||||
* Reference
|
||||
* PHSP
|
||||
* verbose
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user