Update 'Selection code'

Renata Kopecná 2022-01-27 15:50:42 +01:00
parent 5d56efea6c
commit 8df2a3f182

@ -42,14 +42,14 @@ Next step is to compile and perform the MC Truth-Matching, saved in [[MCtruthma
TruthMatchAllAll(1); TruthMatchAllAll(2);
```
Then, we need to add the XMuMu mass variable and apply the KplusMuMu veto ([[addVariable.cpp|addVariable]])
Then, we need to add the XMuMu mass variable and apply the KplusMuMu veto ([[AddVariable.cpp|AddVariable]])
```
.L AddVariable.cpp+
addAllXMuMuMass(true,true,1); addAllXMuMuMass(false,true,1); applyAllVetoKplusMuMuMass(1);
addAllXMuMuMass(true,true,2); addAllXMuMuMass(false,true,2); applyAllVetoKplusMuMuMass(2);
```
We have all the preselection finished. Now we will need to fit the reconstructed B mass peak. For the instructions how to compile the code and make RooFit use double-sided Crystal Ball or ExpGauss, see [B mass model section](https://git.physi.uni-heidelberg.de/kopecna/EWP-BplusToKstMuMu-AngAna/wiki/B-mass-model).
We have all the preselection finished. Now we will need to fit the reconstructed B mass peak. For the instructions how to compile the code and make RooFit use double-sided Crystal Ball or ExpGauss, see [[B mass model section|B-mass-model]].
Now the peaking background is removed, we can proceed to reweighting via [[nTrackWeights.cpp|nTrackWeights]]
```