Update 'MCtruthmatching.cpp'
parent
f658dd86a2
commit
51df4f4844
@ -1,4 +1,4 @@
|
||||
In this script, the MC truthmatching is executed. The script can check both the background category of the decay or perform true-ID based truthmatching.
|
||||
In this script, the MC truthmatching is executed. The script can check both the background category of the decay or perform true-ID based truthmatching. Since this had to be heavily optimized for the K+pi0 channel, the KShort part is obsolete, but in principle it should work.
|
||||
|
||||
The corresponding classes are defined in [[TMsource.cpp|TMsource]]. **TODO**
|
||||
|
||||
@ -27,6 +27,7 @@ Returns a number from 1 to 6:
|
||||
|
||||
### passAllTM()
|
||||
|
||||
Checks the TRUEID decay chain, fills some mass histograms and returns whether the event is sucessfully truthmatched or not.
|
||||
|
||||
* **Parameters**
|
||||
* B_plus: Bplus_IDs class of the Bplus
|
||||
@ -40,26 +41,38 @@ Returns a number from 1 to 6:
|
||||
* pi_plus: pi_plus_IDs class of the pi+
|
||||
* Ks_pi_plus: Ks_pi_IDs class of the pi+ from Ks
|
||||
* Ks_pi_minus: Ks_pi_IDs class of the pi- from Ks
|
||||
*
|
||||
|
||||
* \*counter: counter class to see the number of vetoed events
|
||||
* \*h_pi0_mismatched_mass:
|
||||
* \*h_Bplus_M_pi0mismatched:
|
||||
*
|
||||
* \*h_Bplus_M_noPi0Constr:
|
||||
*
|
||||
* \*h_pi0_resolved_mass:
|
||||
* \*h_pi0_mismatched_mass: histogram to be filled with the mass of mismatched pi0
|
||||
* \*h_Bplus_M_pi0mismatched: histogram to be filled with the B+ mass for events with mismatched pi0
|
||||
* \*h_Bplus_M_noPi0Constr:histogram to be filled with the B+ mass for events with any pi0
|
||||
* \*h_pi0_resolved_mass: histogram to be filled with the pi0 mass
|
||||
* \*h_Bplus_M_pi0random: histogram to be filled with the B+ mass for events with random
|
||||
|
||||
* \*h_Bplus_M_pi0random:
|
||||
|
||||
|
||||
|
||||
* B_plus_TM: Check whether the gamma TRUEID chain originates from a B?
|
||||
* K_star_plus_TM: Check whether the gamma TRUEID chain originates from a Kstar?
|
||||
* K_plus_TM: Check whether the gamma TRUEID chain originates from a Kplus?
|
||||
* pi_zero_TM: Check whether the gamma TRUEID chain originates from a pi0?
|
||||
* pi_zero_full_TM: Check whether the gamma TRUEID chain originates from a pi0?**TODO**
|
||||
* mu_TM: Check whether the gamma TRUEID chain originates from a pi0 **TODO**?
|
||||
* J_psi_TM: Check whether the gamma TRUEID chain originates from a pi0 **TODO**?
|
||||
* B_plus_TM: Check whether the TRUEID chain originates from a B?
|
||||
* K_star_plus_TM: Check whether the TRUEID chain originates from a Kstar?
|
||||
* K_plus_TM: Check whether the TRUEID chain originates from a Kplus?
|
||||
* pi_zero_TM: Check whether the TRUEID chain originates from a pi0?
|
||||
* pi_zero_full_TM: Check whether the TRUEID of pi0?
|
||||
* mu_TM: Check whether the TRUEID of muons is correct?
|
||||
* J_psi_TM: Check whether the TRUEID chain originates from a Jpsi?
|
||||
|
||||
* **Result**\
|
||||
Returns a boolean: passed (event is TMed) or not passed (event is not TMed)
|
||||
|
||||
|
||||
### MCtruth()
|
||||
|
||||
The meaning of the parameters is in [[BDTSelection.cpp|BDTSelection]]
|
||||
|
||||
* **Parameters**
|
||||
* year
|
||||
* magnet
|
||||
* ReferenceChnnel
|
||||
* PHSP
|
||||
* B0
|
||||
* K1
|
||||
* Inc
|
||||
|
||||
* **Result**\
|
||||
* If everyhting is fine, returns 1, otherwise returns 0.
|
Loading…
Reference in New Issue
Block a user