# A distribution as a variable in TMVA

**URL:** <https://root-forum.cern.ch/t/a-distribution-as-a-variable-in-tmva/56725>\
**Category:** TMVA\
**Created:** [October 15, 2023, 11:08am UTC](https://root-forum.cern.ch/t/a-distribution-as-a-variable-in-tmva/56725 "2023-10-15T11:08:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomhhc](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/b3f665/32.png) [@tomhhc](https://root-forum.cern.ch/u/tomhhc)\
**Post date:** [October 15, 2023, 11:08am UTC](https://root-forum.cern.ch/t/a-distribution-as-a-variable-in-tmva/56725/1 "2023-10-15T11:08:12Z")

</div>

Dear professors,  
Variables are usually a single number for each signal or background. I’m wondering if it’s possible to consider a distribution of some physics quantities as an individual variable in TMVA. For example, if I’m interested in distinguishing the alpha signal and electron signal in liquid scintillator, in addition to common variables like original momentum and deposited energy, I may also include the time distribution of the optical photons for each event. Then, is this “variable” able to be added? Thank you for your help!  
Best regards,  
Hechong Han

---

<div class="post-metadata">

**Author:** ![mdessole](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mdessole/32/34021_2.png) [@mdessole](https://root-forum.cern.ch/u/mdessole)\
**Post date:** [October 15, 2023, 4:59pm UTC](https://root-forum.cern.ch/t/a-distribution-as-a-variable-in-tmva/56725/2 "2023-10-15T16:59:30Z")

</div>

Hi @tomhhc,  
thanks for reaching out! I think that @moneta can help with this.

Cheers,  
Monica
