-- SebastianKupny - 28 Sep 2012

Just add in your loop:

    if (i % (nevent/100) == 0) cout << "\r\r\r\rProgress = " << ((Int_t) i/100 + 1) <<  "\t[%] "<< flush;
What recive your line with process status. Of course, if you don't printing anything else.

For example:

 for (Int_t i=0; i<nevent; i++) {
    if (i % (nevent/50) == 0) cout << "\r\r\r\rProgress = " << ((Int_t) i/100 + 1) <<  "\t[%] "<< flush;
    t4-> GetEntry(i);  
    //...
 }
Progress = 2 [%]
Topic revision: r1 - 2012-09-28, SebastianKupny
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)