# Storing parameter values without running code

**URL:** <https://root-forum.cern.ch/t/storing-parameter-values-without-running-code/37428>\
**Category:** Newbie\
**Created:** [January 5, 2020, 3:55am UTC](https://root-forum.cern.ch/t/storing-parameter-values-without-running-code/37428 "2020-01-05T03:55:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp211](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/cdc98d/32.png) [@asp211](https://root-forum.cern.ch/u/asp211)\
**Post date:** [January 5, 2020, 3:55am UTC](https://root-forum.cern.ch/t/storing-parameter-values-without-running-code/37428/1 "2020-01-05T03:55:40Z")

</div>

I am aware that when you fit a function in root and run the code, it prints out the parameter constants that give the best fit. Is there a way to actually store the parameters in an array or variables without actually running the code?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 5, 2020, 10:34am UTC](https://root-forum.cern.ch/t/storing-parameter-values-without-running-code/37428/2 "2020-01-05T10:34:36Z")

</div>

[TF1::GetParameters](https://root.cern.ch/doc/master/classTF1.html#a1e8c5f8de7b9c3017155f722e53e25a8)
