ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillMitTree.h
Revision: 1.14
Committed: Mon Jun 15 15:00:23 2009 UTC (15 years, 10 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_011a, Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b
Changes since 1.13: +2 -5 lines
Log Message:
Added proper fwd defs plus split up complilation of MitAna/DataTree LinkDefs.

File Contents

# User Rev Content
1 paus 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.14 // $Id: FillMitTree.h,v 1.13 2009/04/06 19:36:47 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    
19     namespace mithep
20     {
21 loizides 1.11 class BranchTable;
22 loizides 1.7 class BaseFiller;
23 loizides 1.11 class TreeWriter;
24 loizides 1.14 class ObjectService;
25 loizides 1.7
26 paus 1.1 class FillMitTree : public edm::EDAnalyzer
27     {
28     public:
29 loizides 1.5 FillMitTree(const edm::ParameterSet &cfg);
30 paus 1.1 ~FillMitTree();
31    
32 loizides 1.13 void analyze(const edm::Event &e, const edm::EventSetup &es);
33 loizides 1.12 void beginJob(const edm::EventSetup &es);
34     void endJob();
35 loizides 1.7
36 loizides 1.12 static ObjectService *os() { return os_; }
37 loizides 1.7
38 loizides 1.5 protected:
39 loizides 1.12 bool addActiveFiller(BaseFiller *bf);
40     bool configure(const edm::ParameterSet &cfg);
41 loizides 1.5
42 loizides 1.6 std::vector<BaseFiller*> fillers_; //list of active fillers
43     bool defactive_; //default activity flag for fillers
44 loizides 1.10 BranchTable *brtable_; //branch dependency table
45 loizides 1.11 int acfnumber_; //keep track of active file number
46     TreeWriter *tws_; //pointer to tree writer
47 loizides 1.7 static ObjectService *os_; //object service (set in beginJob)
48 paus 1.1 };
49     }
50     #endif