1 |
paus |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.11 |
// $Id: FillMitTree.h,v 1.10 2009/03/15 11:20:40 loizides Exp $
|
3 |
paus |
1.1 |
//
|
4 |
|
|
// FillMitTree
|
5 |
|
|
//
|
6 |
|
|
// This is the one Edm Module which we use to perform all our actions to properly fill the MitTree.
|
7 |
|
|
// The general function is that this module handles a list of generic fillers, which are called in
|
8 |
|
|
// the appropriate places of the Edm Module. We do make sure that first the information is
|
9 |
|
|
// completely stored and later the necessary links will get resolved.
|
10 |
|
|
//
|
11 |
|
|
// Authors: C.Paus
|
12 |
|
|
//--------------------------------------------------------------------------------------------------
|
13 |
loizides |
1.2 |
|
14 |
loizides |
1.9 |
#ifndef MITPROD_TREEFILLER_FILLMITTREE_H
|
15 |
|
|
#define MITPROD_TREEFILLER_FILLMITTREE_H
|
16 |
paus |
1.1 |
|
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 |
loizides |
1.7 |
#include "MitProd/ObjectService/interface/ObjectService.h"
|
22 |
paus |
1.1 |
|
23 |
|
|
namespace mithep
|
24 |
|
|
{
|
25 |
loizides |
1.11 |
class BranchTable;
|
26 |
loizides |
1.7 |
class BaseFiller;
|
27 |
loizides |
1.11 |
class TreeWriter;
|
28 |
loizides |
1.7 |
|
29 |
paus |
1.1 |
class FillMitTree : public edm::EDAnalyzer
|
30 |
|
|
{
|
31 |
|
|
public:
|
32 |
loizides |
1.5 |
FillMitTree(const edm::ParameterSet &cfg);
|
33 |
paus |
1.1 |
~FillMitTree();
|
34 |
|
|
|
35 |
loizides |
1.5 |
void analyze (const edm::Event &e, const edm::EventSetup &es);
|
36 |
|
|
void beginJob(const edm::EventSetup &es);
|
37 |
loizides |
1.3 |
void endJob();
|
38 |
loizides |
1.7 |
|
39 |
|
|
static ObjectService *os() { return os_; }
|
40 |
|
|
|
41 |
loizides |
1.5 |
protected:
|
42 |
loizides |
1.8 |
bool addActiveFiller(BaseFiller *bf);
|
43 |
loizides |
1.5 |
bool configure(const edm::ParameterSet &cfg);
|
44 |
|
|
|
45 |
loizides |
1.6 |
std::vector<BaseFiller*> fillers_; //list of active fillers
|
46 |
|
|
bool defactive_; //default activity flag for fillers
|
47 |
loizides |
1.10 |
BranchTable *brtable_; //branch dependency table
|
48 |
loizides |
1.11 |
int acfnumber_; //keep track of active file number
|
49 |
|
|
TreeWriter *tws_; //pointer to tree writer
|
50 |
loizides |
1.7 |
static ObjectService *os_; //object service (set in beginJob)
|
51 |
paus |
1.1 |
};
|
52 |
|
|
}
|
53 |
|
|
#endif
|