# How to get Kshort selection after Roofit?

**URL:** <https://root-forum.cern.ch/t/how-to-get-kshort-selection-after-roofit/57278>\
**Category:** Roofit and RooStats\
**Tags:** roofit\
**Created:** [November 27, 2023, 12:06pm UTC](https://root-forum.cern.ch/t/how-to-get-kshort-selection-after-roofit/57278 "2023-11-27T12:06:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikas\_Raj](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vikas_raj/32/34682_2.png) [@Vikas\_Raj](https://root-forum.cern.ch/u/Vikas_Raj)\
**Post date:** [November 27, 2023, 12:06pm UTC](https://root-forum.cern.ch/t/how-to-get-kshort-selection-after-roofit/57278/1 "2023-11-27T12:06:03Z")

</div>

Dear ROOT Forum,

I have successfully used roofit to fit the two kshorts in my decay channel( using the invariant mass variable to use roofit!). Now, what can I do after this?  
Like, I got a peak-like region in both the Kshorts, and the width is also different for the two. How, can I do Kshort selection using mass (or any other kinematic variables like flight length etc…)?

I thought that you first do the selections when generating the ‘.root’ file and then roofit, right? is that not the case?  
Kindly find the attached roofits as reference! ( I have only the signal mc file, no data!)

Any help or valuable insights on how to proceed after this would be greatly appreciated!!!  
Thank You !🙂

 ![ks2_massfit](https://root-forum.cern.ch/uploads/default/original/3X/1/0/10df9f4323d44355efeeb4187001639929cfb9f4.png)  
 ![ks1_massfit](https://root-forum.cern.ch/uploads/default/original/3X/0/b/0b25ee09f8c0939769cb88b5745acb7dd01144d1.png)

---

<div class="post-metadata">

**Author:** ![jonas](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonas/32/24756_2.png) [@jonas](https://root-forum.cern.ch/u/jonas)\
**Post date:** [November 27, 2023, 2:04pm UTC](https://root-forum.cern.ch/t/how-to-get-kshort-selection-after-roofit/57278/2 "2023-11-27T14:04:29Z")

</div>

Hi @Vikas_Raj,

I’m afraid that we can’t answer this question here, that really depends on the analysis you want to do 🙂 I’d suggest you consult your colleagues and supervisors to figure out the next steps. Then, if you need technical support for realizing these steps, you can ask here.

Cheers,  
Jonas

---

<div class="post-metadata">

**Author:** ![Vikas\_Raj](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vikas_raj/32/34682_2.png) [@Vikas\_Raj](https://root-forum.cern.ch/u/Vikas_Raj)\
**Post date:** [November 30, 2023, 10:15am UTC](https://root-forum.cern.ch/t/how-to-get-kshort-selection-after-roofit/57278/4 "2023-11-30T10:15:46Z")

</div>

Hi,  
I got the selection but how can I test it’s efficiency and purity?  
Like I have the signal MC, and did the selections, how can we get get number iof Signal events, background events etc??  
with only signal mc, as a first test for the decay channel?

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [December 14, 2023, 10:16am UTC](https://root-forum.cern.ch/t/how-to-get-kshort-selection-after-roofit/57278/5 "2023-12-14T10:16:22Z")

</div>

Closed on December 14, 2023, 10:16am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
