11 |
|
// Authors: C.Paus |
12 |
|
//-------------------------------------------------------------------------------------------------- |
13 |
|
|
14 |
< |
#ifndef TREEFILLER_FILLMITTREE_H |
15 |
< |
#define TREEFILLER_FILLMITTREE_H |
14 |
> |
#ifndef MITPROD_TREEFILLER_FILLMITTREE_H |
15 |
> |
#define MITPROD_TREEFILLER_FILLMITTREE_H |
16 |
|
|
17 |
|
#include "FWCore/Framework/interface/EDAnalyzer.h" |
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 |
+ |
class BranchTable; |
27 |
+ |
|
28 |
|
class FillMitTree : public edm::EDAnalyzer |
29 |
|
{ |
30 |
|
public: |
34 |
|
void analyze (const edm::Event &e, const edm::EventSetup &es); |
35 |
|
void beginJob(const edm::EventSetup &es); |
36 |
|
void endJob(); |
37 |
< |
|
37 |
> |
|
38 |
> |
static ObjectService *os() { return os_; } |
39 |
> |
|
40 |
|
protected: |
41 |
+ |
bool addActiveFiller(BaseFiller *bf); |
42 |
|
bool configure(const edm::ParameterSet &cfg); |
43 |
|
|
44 |
< |
std::vector<BaseFiller*> fillers_; // list of active fillers |
44 |
> |
std::vector<BaseFiller*> fillers_; //list of active fillers |
45 |
> |
bool defactive_; //default activity flag for fillers |
46 |
> |
BranchTable *brtable_; //branch dependency table |
47 |
> |
static ObjectService *os_; //object service (set in beginJob) |
48 |
|
}; |
49 |
|
} |
50 |
|
#endif |