Update 'AddVariable.cpp'

Renata Kopecná 2022-01-27 14:36:44 +01:00
parent c34a58edab
commit cc21d7cad2

@ -54,7 +54,7 @@ Calls [addPi0TRUEVariablesAllMC()](#int-addpi0truevariablesallmc) for all MC sam
* If something fails 0, otherwise 1. * If something fails 0, otherwise 1.
### int addVariable() ### int addVariable()
Adds PX, PY, PZ, PE, PT, M, P, ETA, PHI Adds PX, PY, PZ, PE, PT to the `particle` specified as input.
* **Parameters** * **Parameters**
* string year * string year
* int Run * int Run
@ -71,7 +71,7 @@ Adds PX, PY, PZ, PE, PT, M, P, ETA, PHI
### int addAllVariables() ### int addAllVariables()
Calls [addVariable()](#int-addvariable) for B_plus, K_star_plus, pi_zero_resolved, K_plus, gamma1, gamma2, mu_minus and mu_plus.
* **Parameters** * **Parameters**
* string year * string year
* int Run * int Run
@ -87,7 +87,7 @@ Adds PX, PY, PZ, PE, PT, M, P, ETA, PHI
### int addAllVariablesAllYearMC() ### int addAllVariablesAllYearMC()
Calls [addAllVariables()](#int-addallvariables) for all possible polarities.
* **Parameters** * **Parameters**
* string year * string year
* bool ReferenceChannel * bool ReferenceChannel
@ -97,7 +97,7 @@ Adds PX, PY, PZ, PE, PT, M, P, ETA, PHI
### int addAllVariablesAllMC() ### int addAllVariablesAllMC()
Calls [addAllVariablesAllYearMC()](#int-addallvariablesallyearmc) for all years for a given `Run`.
* **Parameters** * **Parameters**
* int Run * int Run
* bool ReferenceChannel * bool ReferenceChannel
@ -107,21 +107,15 @@ Adds PX, PY, PZ, PE, PT, M, P, ETA, PHI
### int addAllVariablesAllMCSamples() ### int addAllVariablesAllMCSamples()
Calls [addAllVariablesAllMC()](#int-addallvariablesallmc) for signal, reference and PHSP.
* **Parameters** * **Parameters**
* int Run * int Run
* **Return** * **Return**
* If something fails 0, otherwise 1. * If something fails 0, otherwise 1.
### int testFunction()
* **Parameters**
*
* **Return**
### int addXMuMuMass() ### int addXMuMuMass()
Calculates KplusMuMu (Kplus=True) or pi0MuMu mass (Kplus=False) and adds the branch to the tree. Moreover, takes the existing K+, pi0, mu+ and mu- branches, add PX, PY, PZ and PE to them.
* **Parameters** * **Parameters**
* bool Kplus * bool Kplus
* bool DTF * bool DTF
@ -137,7 +131,7 @@ Adds PX, PY, PZ, PE, PT, M, P, ETA, PHI
### int addAllXMuMuMass() ### int addAllXMuMuMass()
Calls [addXMuMuMass()](int-addxmumumass) for all years for the given `Run`.
* **Parameters** * **Parameters**
* bool Kplus * bool Kplus
* bool DTF * bool DTF
@ -150,7 +144,7 @@ Adds PX, PY, PZ, PE, PT, M, P, ETA, PHI
### int addAllXMuMuMass() ### int addAllXMuMuMass()
Calls [addAllXMuMuMass()](int-addallxmumumass) for data, signal MC, reference MC and PHSP MC.
* **Parameters** * **Parameters**
* bool Kplus * bool Kplus
* bool DTF * bool DTF
@ -160,7 +154,7 @@ Adds PX, PY, PZ, PE, PT, M, P, ETA, PHI
### int applyVetoKplusMuMuMass() ### int applyVetoKplusMuMuMass()
Removes all events with 5179 MeV < M_KplusMuMu < 5379 MeV.
* **Parameters** * **Parameters**
* string year * string year
* string magnet * string magnet
@ -174,6 +168,7 @@ Adds PX, PY, PZ, PE, PT, M, P, ETA, PHI
### int applyAllVetoKplusMuMuMass() ### int applyAllVetoKplusMuMuMass()
Calls [applyVetoKplusMuMuMass()](int-applyvetokplusmumumass) for all years for the given `Run`.
* **Parameters** * **Parameters**
* int Run * int Run
@ -181,24 +176,29 @@ Adds PX, PY, PZ, PE, PT, M, P, ETA, PHI
* bool ReferenceChannel * bool ReferenceChannel
* bool PHSP * bool PHSP
* **Return** * **Return**
* If something fails 0, otherwise 1.
### int applyAllVetoKplusMuMuMass() ### int applyAllVetoKplusMuMuMass()
Calls [applyAllVetoKplusMuMuMass()](int-applyallvetokplusmumumass) for data, signal MC, reference MC and PHSP MC.
* **Parameters** * **Parameters**
* int Run * int Run
* **Return** * **Return**
* If something fails 0, otherwise 1.
### int applyVetoPizMuMuMass() ### int applyVetoPizMuMuMass()
Removes all events with M_PizMuMu < 3700 MeV in the Jpsi Q2 region.
* **Parameters** * **Parameters**
* string year * string year
* string magnet * string magnet
* int Run * int Run
* bool MC * bool MC
* **Return** * **Return**
* If something fails 0, otherwise 1.
### int applyVetoPizMuMuMass() ### int applyVetoPizMuMuMass()
Calls [applyVetoPizMuMuMass()](int-applyvetopizmumumass()) for all years and polarities for given `Run`.
* **Parameters** * **Parameters**
* int Run * int Run
* **Return** * **Return**
* If something fails 0, otherwise 1.