User Tools

Site Tools


root:controloutputroofit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
root:controloutputroofit [2012/01/09 15:30] – created decianmroot:controloutputroofit [2012/02/22 11:42] (current) decianm
Line 1: Line 1:
 ====== Controlling the Output of RooFit ====== ====== Controlling the Output of RooFit ======
 +===== In General =====
 +
 The most systematic approach to controlling the output of RooFit is accessing the streams of the message service directly. The most systematic approach to controlling the output of RooFit is accessing the streams of the message service directly.
 The first thing is to check the instance of the RooMsgService: The first thing is to check the instance of the RooMsgService:
Line 5: Line 7:
 RooMsgService::instance().Print() ; RooMsgService::instance().Print() ;
 </code> </code>
-This will tell you which streams exist and what they comprise.+This will tell you which streams exist and what they comprise. Note that error messages can appear in several strings at once.
 You can then access the stream and remove a certain topic: You can then access the stream and remove a certain topic:
 <code C> <code C>
Line 30: Line 32:
 RooFit::Eval RooFit::Eval
 </code> </code>
 +
 +===== Switching the MIGRAD output off =====
 +The above commands don't switch the MIGRAD output off, that goes to stdout after every fit. In order to do this, do:
 +<code>
 +RooFitResult* rForward = forward.fitTo( *forwardBS, RooFit::PrintLevel(-1) );
 +</code>
 +which will make your fit silent.
 +
  
root/controloutputroofit.txt · Last modified: 2012/02/22 11:42 by decianm