ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillMitTree.h
Revision: 1.18
Committed: Thu Feb 11 14:55:26 2010 UTC (15 years, 2 months ago) by yilmaz
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, Mit_014b, Mit_014a, Mit_014, Mit_014pre3, Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, Mit_013, Mit_013pre1, HEAD
Branch point for: Mit_025c_branch
Changes since 1.17: +2 -2 lines
Log Message:
event setup stuff moved to beginRun from beginJob

File Contents

# User Rev Content
1 paus 1.1 //--------------------------------------------------------------------------------------------------
2 yilmaz 1.18 // $Id: FillMitTree.h,v 1.17 2009/12/12 22:33:46 bendavid 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 bendavid 1.17 void beginRun(edm::Run const &, edm::EventSetup const&);
33 loizides 1.13 void analyze(const edm::Event &e, const edm::EventSetup &es);
34 yilmaz 1.18 void beginJob();
35 loizides 1.12 void endJob();
36 loizides 1.7
37 loizides 1.12 static ObjectService *os() { return os_; }
38 loizides 1.7
39 loizides 1.5 protected:
40 loizides 1.12 bool addActiveFiller(BaseFiller *bf);
41     bool configure(const edm::ParameterSet &cfg);
42 bendavid 1.15 bool configureTreeWriter(const edm::ParameterSet &cfg);
43 loizides 1.5
44 loizides 1.6 std::vector<BaseFiller*> fillers_; //list of active fillers
45     bool defactive_; //default activity flag for fillers
46 loizides 1.10 BranchTable *brtable_; //branch dependency table
47 loizides 1.11 int acfnumber_; //keep track of active file number
48     TreeWriter *tws_; //pointer to tree writer
49 loizides 1.7 static ObjectService *os_; //object service (set in beginJob)
50 paus 1.1 };
51     }
52     #endif