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" |
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 |
|
|
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 |
|
//-------------------------------------------------------------------------------------------------- |