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" |
7 |
– |
#include "FWCore/ServiceRegistry/interface/Service.h" |
6 |
|
#include "FWCore/MessageLogger/interface/JobReport.h" |
7 |
|
#include "FWCore/MessageLogger/interface/MessageLogger.h" |
8 |
|
#include "MitAna/DataUtil/interface/TreeWriter.h" |
14 |
|
using namespace mithep; |
15 |
|
|
16 |
|
//-------------------------------------------------------------------------------------------------- |
17 |
< |
TreeService::TreeService(const ParameterSet &cfg, ActivityRegistry &ar) : |
17 |
> |
TreeService::TreeService(const ParameterSet &cfg) : |
18 |
|
tws_(0), |
19 |
|
zipMode_(1), |
20 |
|
bZipThres_(1), |
156 |
|
} |
157 |
|
|
158 |
|
// set watchers |
159 |
< |
ar.watchPreProcessEvent (this,&TreeService::preEventProcessing); |
160 |
< |
ar.watchPostProcessEvent(this,&TreeService::postEventProcessing); |
161 |
< |
ar.watchPostBeginJob (this,&TreeService::postBeginJob); |
162 |
< |
ar.watchPostEndJob (this,&TreeService::postEndJob); |
159 |
> |
// ar.watchPreProcessEvent (this,&TreeService::preEventProcessing); |
160 |
> |
// ar.watchPostProcessEvent(this,&TreeService::postEventProcessing); |
161 |
> |
// ar.watchPostBeginJob (this,&TreeService::postBeginJob); |
162 |
> |
// ar.watchPostEndJob (this,&TreeService::postEndJob); |
163 |
|
} |
164 |
|
|
165 |
|
//-------------------------------------------------------------------------------------------------- |
199 |
|
} |
200 |
|
|
201 |
|
//-------------------------------------------------------------------------------------------------- |
202 |
< |
void TreeService::postEventProcessing(const Event&, const EventSetup&) |
202 |
> |
void TreeService::postEventProcessing() |
203 |
|
{ |
204 |
|
// Loop over all TreeWriter objects before processing of an event. |
205 |
|
|
215 |
|
} |
216 |
|
|
217 |
|
//-------------------------------------------------------------------------------------------------- |
218 |
< |
void TreeService::preEventProcessing(const EventID&, const Timestamp&) |
218 |
> |
void TreeService::preEventProcessing() |
219 |
|
{ |
220 |
|
// Loop over all TreeWriter objects after processing of a events. |
221 |
|
|