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" |
18 |
|
|
19 |
|
namespace mithep |
20 |
|
{ |
21 |
+ |
class BranchTable; |
22 |
+ |
class BaseFiller; |
23 |
+ |
class TreeWriter; |
24 |
+ |
class ObjectService; |
25 |
+ |
|
26 |
|
class FillMitTree : public edm::EDAnalyzer |
27 |
|
{ |
28 |
|
public: |
29 |
|
FillMitTree(const edm::ParameterSet &cfg); |
30 |
|
~FillMitTree(); |
31 |
|
|
32 |
< |
void analyze (const edm::Event &e, const edm::EventSetup &es); |
33 |
< |
void beginJob(const edm::EventSetup &es); |
34 |
< |
void endJob(); |
35 |
< |
|
32 |
> |
void beginRun(edm::Run const &, edm::EventSetup const&); |
33 |
> |
void analyze(const edm::Event &e, const edm::EventSetup &es); |
34 |
> |
void beginJob(); |
35 |
> |
void endJob(); |
36 |
> |
|
37 |
> |
static ObjectService *os() { return os_; } |
38 |
> |
|
39 |
|
protected: |
40 |
< |
bool configure(const edm::ParameterSet &cfg); |
40 |
> |
bool addActiveFiller(BaseFiller *bf); |
41 |
> |
bool configure(const edm::ParameterSet &cfg); |
42 |
> |
bool configureTreeWriter(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 |
> |
int acfnumber_; //keep track of active file number |
48 |
> |
TreeWriter *tws_; //pointer to tree writer |
49 |
> |
static ObjectService *os_; //object service (set in beginJob) |
50 |
|
}; |
51 |
|
} |
52 |
|
#endif |