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

Comparing UserCode/MitProd/TreeService/src/TreeService.cc (file contents):
Revision 1.13 by loizides, Mon Mar 23 22:12:58 2009 UTC vs.
Revision 1.15 by loizides, Wed Nov 4 16:59:22 2009 UTC

# Line 3 | Line 3
3   #include "MitProd/TreeService/interface/TreeService.h"
4   #include "DataFormats/Provenance/interface/ModuleDescription.h"
5   #include "FWCore/ParameterSet/interface/ParameterSet.h"
6 < #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h"
6 > #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h"  
7   #include "FWCore/ServiceRegistry/interface/Service.h"
8   #include "FWCore/MessageLogger/interface/JobReport.h"
9   #include "FWCore/MessageLogger/interface/MessageLogger.h"
# Line 24 | Line 24 | TreeService::TreeService(const Parameter
24    lzoThres_(1),
25    lzmaThres_(1),
26    optIOVerbose_(1),
27 <  fDoReset_(cfg.getUntrackedParameter<bool>("doReset",1))
27 >  fDoReset_(cfg.getUntrackedParameter<bool>("doReset",1)),
28 >  fActivate_(cfg.getUntrackedParameter<bool>("doActivate",0))
29   {
30    // Constructor.
31  
# Line 158 | Line 159 | TreeService::TreeService(const Parameter
159    }
160  
161    // set watchers
162 <  ar.watchPreProcessEvent (this,&TreeService::preEventProcessing);
163 <  ar.watchPostProcessEvent(this,&TreeService::postEventProcessing);
164 <  ar.watchPostBeginJob    (this,&TreeService::postBeginJob);
165 <  ar.watchPostEndJob      (this,&TreeService::postEndJob);
162 >  if (fActivate_) {
163 >    ar.watchPreProcessEvent (this,&TreeService::preEventProcessing);
164 >    ar.watchPostProcessEvent(this,&TreeService::postEventProcessing);
165 >    ar.watchPostBeginJob    (this,&TreeService::postBeginJob);
166 >    ar.watchPostEndJob      (this,&TreeService::postEndJob);
167 >  }
168   }
169  
170   //--------------------------------------------------------------------------------------------------

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines