# LHCb Hooks .h and .cpp files

**URL:** <https://root-forum.cern.ch/t/lhcb-hooks-h-and-cpp-files/52383>\
**Category:** Newbie\
**Created:** [November 16, 2022, 4:15am UTC](https://root-forum.cern.ch/t/lhcb-hooks-h-and-cpp-files/52383 "2022-11-16T04:15:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joarias](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/3e96dc/32.png) [@joarias](https://root-forum.cern.ch/u/joarias)\
**Post date:** [November 16, 2022, 4:15am UTC](https://root-forum.cern.ch/t/lhcb-hooks-h-and-cpp-files/52383/1 "2022-11-16T04:15:52Z")

</div>

Hey all,

I am using Pythia8 to generate heavy flavor production at the LHCb. I am trying to implement the LHCb tuning provided in gitlab.cern.ch/lhcb/Gauss/-/blob/master/Gen/LbPythia8/options/LHCbDefault.cmd, and the header file “LhcbHooks.h” and source code “LhcbHooks.cpp.” I created a .h file and a .cpp file, however, when I run my Pythia8 simulations I get the error:

PYTHIA Error: input string not found in settings databases::  
pTDampingHook:pT0Ref = 1.43

PYTHIA Error: input string not found in settings databases::  
pTDampingHook:ecmRef = 13000

PYTHIA Error: input string not found in settings databases::  
pTDampingHook:ecmPow = 0.09

and my Root basically breaks the simulation. It looks like the macro where I am running my event collisions and heavy flavor generation is not reading in the header file “LhcbHook.h” event though I used an include statement for it.

Anyone has any tip? I suspect this is a rather easy bug, due to the fact that I am new to root and Pythia (May 2022). Can someone help me?

Thanks,

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [November 16, 2022, 8:01am UTC](https://root-forum.cern.ch/t/lhcb-hooks-h-and-cpp-files/52383/2 "2022-11-16T08:01:07Z")

</div>

Welcome to the ROOT Forum!

> [@joarias](#):
>
> PYTHIA Error: input string not found in settings databases::  
> pTDampingHook:pT0Ref = 1.43
> 
> PYTHIA Error: input string not found in settings databases::  
> pTDampingHook:ecmRef = 13000
> 
> PYTHIA Error: input string not found in settings databases::  
> pTDampingHook:ecmPow = 0.09

They look more like Pythia errors than ROOT errors

> [@joarias](#):
>
> It looks like the macro where I am running my event collisions and heavy flavor generation is not reading in the header file “LhcbHook.h” event though I used an include statement for it.

What error do you have from the ROOT side?
