title: How to disable screen output in ROOT (CERN)
body: <p>I am fitting curves to the peaks in roughly 25000 detector events.  My code just loops through all of the events, fitting to all peaks it finds and grabbing parameter info.  It takes FOREVER!</p>
  
  <p>I stopped my code from actually drawing the curves, but I'm wondering if I can do anything else to speed up this processing.  I thought that if I stopped ROOT from printing the parameters from each fit to the screen that maybe it would run faster.  </p>
  
  <p>Is this true?  If so, how can I do it?  Any other ideas?  </p>
  
  <pre><code>  TGraphErrors * gr1 = view_waveform_ebars(run,evtNum,21);    
    mygaus -&gt; SetParameters(671.55e3,-1000,S2loc,500);
    gr1 -&gt; Fit(mygaus,"","",tspulse_sum[j],tepulse_sum[j]);
    fitResult = gr1 -&gt; GetFunction("mygaus");
  
    pchi2[j] =  fitResult -&gt; GetChisquare();
  </code></pre>
  
  <p>I was hoping not to need to copy the functions I'm using into my post.  But <code>mygaus</code> has 4 parameters, and every time I call it using <code>gr1-&gt; Fit(mygaus,...)</code> I see the parameters on the screen.  So the question is whether or not that screen output is slowing me down, and, if so, how do I turn it off?</p>
  
  <p>Thanks</p>