18 |
|
#include "FWCore/Framework/interface/Event.h" |
19 |
|
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
20 |
|
#include "FWCore/Framework/interface/Frameworkfwd.h" |
21 |
< |
#include "MitProd/TreeFiller/interface/BaseFiller.h" |
21 |
> |
#include "MitProd/ObjectService/interface/ObjectService.h" |
22 |
|
|
23 |
|
namespace mithep |
24 |
|
{ |
25 |
+ |
class BaseFiller; |
26 |
+ |
|
27 |
|
class FillMitTree : public edm::EDAnalyzer |
28 |
|
{ |
29 |
|
public: |
33 |
|
void analyze (const edm::Event &e, const edm::EventSetup &es); |
34 |
|
void beginJob(const edm::EventSetup &es); |
35 |
|
void endJob(); |
36 |
< |
|
36 |
> |
|
37 |
> |
static ObjectService *os() { return os_; } |
38 |
> |
|
39 |
|
protected: |
40 |
|
bool configure(const edm::ParameterSet &cfg); |
41 |
|
|
42 |
|
std::vector<BaseFiller*> fillers_; //list of active fillers |
43 |
|
bool defactive_; //default activity flag for fillers |
44 |
+ |
static ObjectService *os_; //object service (set in beginJob) |
45 |
|
}; |
46 |
|
} |
47 |
|
#endif |