# Exclude empty bins in TH1::Fit with L option

**URL:** <https://root-forum.cern.ch/t/exclude-empty-bins-in-th1-fit-with-l-option/63441>\
**Category:** Newbie\
**Created:** [April 23, 2025, 6:36pm UTC](https://root-forum.cern.ch/t/exclude-empty-bins-in-th1-fit-with-l-option/63441 "2025-04-23T18:36:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![piandani](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/57b2e6/32.png) [@piandani](https://root-forum.cern.ch/u/piandani)\
**Post date:** [April 23, 2025, 6:36pm UTC](https://root-forum.cern.ch/t/exclude-empty-bins-in-th1-fit-with-l-option/63441/1 "2025-04-23T18:36:32Z")

</div>

I would like to exclude empty bins (with null error) from my fit with the likelihood option enabled  
Roberto

---

<div class="post-metadata">

**Author:** ![lbreitwi](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/lbreitwi/32/21330_2.png) [@lbreitwi](https://root-forum.cern.ch/u/lbreitwi)\
**Post date:** [April 23, 2025, 7:55pm UTC](https://root-forum.cern.ch/t/exclude-empty-bins-in-th1-fit-with-l-option/63441/2 "2025-04-23T19:55:02Z")

</div>

Welcome to the ROOT forum @piandani!

I am adding our fitting expert @jonas into the loop.

---

<div class="post-metadata">

**Author:** ![piandani](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/57b2e6/32.png) [@piandani](https://root-forum.cern.ch/u/piandani)\
**Post date:** [April 23, 2025, 7:56pm UTC](https://root-forum.cern.ch/t/exclude-empty-bins-in-th1-fit-with-l-option/63441/3 "2025-04-23T19:56:59Z")

</div>

Thank you
