# Option to hide RandomEngineRoot output

**URL:** <https://root-forum.cern.ch/t/option-to-hide-randomengineroot-output/33139>\
**Category:** Garfield++\
**Created:** [March 13, 2019, 10:54am UTC](https://root-forum.cern.ch/t/option-to-hide-randomengineroot-output/33139 "2019-03-13T10:54:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier\_Galan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/javier_galan/32/29662_2.png) [@Javier\_Galan](https://root-forum.cern.ch/u/Javier_Galan)\
**Post date:** [March 13, 2019, 10:54am UTC](https://root-forum.cern.ch/t/option-to-hide-randomengineroot-output/33139/1 "2019-03-13T10:54:26Z")

</div>

Hi there,

each time we link Garfield++ libraries and we load them in ROOT we get an output message coming from `RandomEngineRoot::RandomEngineRoot()`. We would like to set this output message to be disabled by default in our code. We could modify the source of Garfield++ locally. But I think is better to find a solution at the Garfield repository.

> RandomEngineRoot::RandomEngineRoot() : RandomEngine(), m\_rng(0) {  
> std::cout \<\< “RandomEngineRoot:\n”  
> \<\< " Generator type: TRandom3\n"  
> \<\< " Seed: " \<\< m\_rng.GetSeed() \<\< “\n”;  
> }

Best regards,  
Javier

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 18, 2019, 3:56pm UTC](https://root-forum.cern.ch/t/option-to-hide-randomengineroot-output/33139/2 "2019-03-18T15:56:29Z")

</div>

Have you contacted the Garfield authors ?

---

<div class="post-metadata">

**Author:** ![Javier\_Galan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/javier_galan/32/29662_2.png) [@Javier\_Galan](https://root-forum.cern.ch/u/Javier_Galan)\
**Post date:** [March 18, 2019, 4:23pm UTC](https://root-forum.cern.ch/t/option-to-hide-randomengineroot-output/33139/3 "2019-03-18T16:23:57Z")

</div>

Yes, I got an answer through Garfield-users e-group list at CERN.

Garfield authors are aware of this issue. I guess this thread may be closed.

Thanks

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [March 21, 2019, 5:21pm UTC](https://root-forum.cern.ch/t/option-to-hide-randomengineroot-output/33139/4 "2019-03-21T17:21:47Z")

</div>

The message printed out by RandomEngineRoot has been removed.

---

<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:** [April 4, 2019, 5:21pm UTC](https://root-forum.cern.ch/t/option-to-hide-randomengineroot-output/33139/5 "2019-04-04T17:21:52Z")

</div>

Closed on April 4, 2019, 5:21pm UTC

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