10 |
|
// |
11 |
|
// Authors: C.Paus |
12 |
|
//-------------------------------------------------------------------------------------------------- |
13 |
< |
#ifndef TREEFILLER_FILLMITTREE_H |
14 |
< |
#define TREEFILLER_FILLMITTREE_H |
13 |
> |
|
14 |
> |
#ifndef MITPROD_TREEFILLER_FILLMITTREE_H |
15 |
> |
#define MITPROD_TREEFILLER_FILLMITTREE_H |
16 |
|
|
17 |
|
#include "FWCore/Framework/interface/EDAnalyzer.h" |
17 |
– |
#include "FWCore/Framework/interface/Event.h" |
18 |
– |
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
19 |
– |
#include "FWCore/Framework/interface/Frameworkfwd.h" |
20 |
– |
#include "MitAna/DataUtil/interface/TreeWriter.h" |
21 |
– |
#include "MitProd/TreeService/interface/TreeService.h" |
22 |
– |
#include "MitProd/TreeFiller/interface/BaseFiller.h" |
18 |
|
|
19 |
|
namespace mithep |
20 |
|
{ |
21 |
< |
class FillerGlobalMuons; |
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&); |
29 |
> |
FillMitTree(const edm::ParameterSet &cfg); |
30 |
|
~FillMitTree(); |
31 |
|
|
32 |
< |
void analyze (const edm::Event&, const edm::EventSetup&); |
33 |
< |
void beginJob(edm::EventSetup const&); |
34 |
< |
void endJob (); |
35 |
< |
|
36 |
< |
private: |
37 |
< |
// list of our fillers and potential fillers |
38 |
< |
std::vector<BaseFiller*> fillers_; |
39 |
< |
FillerGlobalMuons *fillerGlobalMuons_; |
40 |
< |
|
41 |
< |
// parameters for service |
42 |
< |
std::vector<std::string> branchNames_; // names of the fillers to be activated |
32 |
> |
void analyze(const edm::Event &e, const edm::EventSetup &es); |
33 |
> |
void beginJob(const edm::EventSetup &es); |
34 |
> |
void endJob(); |
35 |
> |
|
36 |
> |
static ObjectService *os() { return os_; } |
37 |
> |
|
38 |
> |
protected: |
39 |
> |
bool addActiveFiller(BaseFiller *bf); |
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 |
> |
BranchTable *brtable_; //branch dependency table |
45 |
> |
int acfnumber_; //keep track of active file number |
46 |
> |
TreeWriter *tws_; //pointer to tree writer |
47 |
> |
static ObjectService *os_; //object service (set in beginJob) |
48 |
|
}; |
49 |
|
} |
50 |
|
#endif |