ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/TreeMod/src/AnaFwkMod.cc
(Generate patch)

Comparing UserCode/MitAna/TreeMod/src/AnaFwkMod.cc (file contents):
Revision 1.10 by loizides, Sat Mar 28 14:39:56 2009 UTC vs.
Revision 1.14 by loizides, Sun Jun 28 08:02:05 2009 UTC

# Line 18 | Line 18 | AnaFwkMod::AnaFwkMod(const char *name, c
18    fAllHeadTreeName(Names::gkAllEvtTreeName),
19    fAllHeadBrName(Names::gkAllEvtHeaderBrn),
20    fSkipNEvents(0),
21 +  fPrintScale(1),
22    fSWtotal(0),
23    fSWevent(0),
24    fAllHeaders(0,Names::gkSkimmedHeaders),
# Line 175 | Line 176 | void AnaFwkMod::Process()
176    }
177  
178    // check if printout should be done
179 <  Bool_t doPrint = 0;
179 >  Bool_t doPrint    = 0;
180 >  UInt_t nProcessed = fPrintScale;
181  
182    MDB(kAnalysis, 4) {
183 <    if (GetNEventsProcessed() % 250  == 0)
183 >    if (GetNEventsProcessed() % (fPrintScale)  == 0)
184        doPrint = 1;
185    } else {
186      MDB(kAnalysis, 3) {
187 <      if (GetNEventsProcessed() % 2500  == 0)
187 >      if (GetNEventsProcessed() % (fPrintScale*10)  == 0)
188          doPrint = 1;
189 +      nProcessed = fPrintScale*10;
190      } else {
191        MDB(kAnalysis, 2) {
192 <        if (GetNEventsProcessed() % 10000  == 0)
192 >        if (GetNEventsProcessed() % (fPrintScale*100)  == 0)
193            doPrint = 1;
194 +        nProcessed = fPrintScale*100;
195        } else {
196          MDB(kAnalysis, 1) {
197 <          if (GetNEventsProcessed() % 50000 == 0)
197 >          if (GetNEventsProcessed() % (fPrintScale*1000) == 0)
198              doPrint = 1;
199 +          nProcessed = fPrintScale*1000;
200          }
201        }
202      }
# Line 202 | Line 207 | void AnaFwkMod::Process()
207      Info("Process",
208           "Events %d -> %.2gs real, %.2gs cpu (%.2g real, %.2g cpu per event)",
209           GetNEventsProcessed(), fSWevent->RealTime(), fSWevent->CpuTime(),
210 <         fSWevent->RealTime()/GetNEventsProcessed(),
211 <         fSWevent->CpuTime()/GetNEventsProcessed());
210 >         fSWevent->RealTime()/nProcessed,
211 >         fSWevent->CpuTime()/nProcessed);
212      fSWevent->Start();
213    }  
214   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines