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.11 by ceballos, Wed Jun 17 16:58:44 2009 UTC vs.
Revision 1.12 by loizides, Fri Jun 19 07:39:01 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(100),
22    fSWtotal(0),
23    fSWevent(0),
24    fAllHeaders(0,Names::gkSkimmedHeaders),
# Line 178 | Line 179 | void AnaFwkMod::Process()
179    Bool_t doPrint = 0;
180  
181    MDB(kAnalysis, 4) {
182 <    if (GetNEventsProcessed() % 100  == 0)
182 >    if (GetNEventsProcessed() % (fPrintScale)  == 0)
183        doPrint = 1;
184    } else {
185      MDB(kAnalysis, 3) {
186 <      if (GetNEventsProcessed() % 1000  == 0)
186 >      if (GetNEventsProcessed() % (fPrintScale*10)  == 0)
187          doPrint = 1;
188      } else {
189        MDB(kAnalysis, 2) {
190 <        if (GetNEventsProcessed() % 10000  == 0)
190 >        if (GetNEventsProcessed() % (fPrintScale*100)  == 0)
191            doPrint = 1;
192        } else {
193          MDB(kAnalysis, 1) {
194 <          if (GetNEventsProcessed() % 100000 == 0)
194 >          if (GetNEventsProcessed() % (fPrintScale*1000) == 0)
195              doPrint = 1;
196          }
197        }
# Line 215 | Line 216 | void AnaFwkMod::SlaveBegin()
216  
217    fSWtotal = new TStopwatch;
218    fSWevent = new TStopwatch;
219 +  cout << fSkipNEvents << endl;
220  
221    if (!PublishObj(&fAllHeaders)) {
222      SendError(kAbortAnalysis, "SlaveBegin",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines