ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillMitTree.h
Revision: 1.8
Committed: Thu Jul 31 12:34:03 2008 UTC (16 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: MITHEP_2_0_x
Changes since 1.7: +2 -1 lines
Log Message:
Consistently introduced ObjectService. Updated comments. Updated .cfg files. Switched off default handling of Stable and DecayParts (for now). ZmmFullReco.cfg shows how to use standard filler with extensions.

File Contents

# User Rev Content
1 paus 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.8 // $Id: FillMitTree.h,v 1.7 2008/07/30 16:39:57 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 paus 1.1 #ifndef TREEFILLER_FILLMITTREE_H
15     #define 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 loizides 1.7 #include "MitProd/ObjectService/interface/ObjectService.h"
22 paus 1.1
23     namespace mithep
24     {
25 loizides 1.7 class BaseFiller;
26    
27 paus 1.1 class FillMitTree : public edm::EDAnalyzer
28     {
29     public:
30 loizides 1.5 FillMitTree(const edm::ParameterSet &cfg);
31 paus 1.1 ~FillMitTree();
32    
33 loizides 1.5 void analyze (const edm::Event &e, const edm::EventSetup &es);
34     void beginJob(const edm::EventSetup &es);
35 loizides 1.3 void endJob();
36 loizides 1.7
37     static ObjectService *os() { return os_; }
38    
39 loizides 1.5 protected:
40 loizides 1.8 bool addActiveFiller(BaseFiller *bf);
41 loizides 1.5 bool configure(const edm::ParameterSet &cfg);
42    
43 loizides 1.6 std::vector<BaseFiller*> fillers_; //list of active fillers
44     bool defactive_; //default activity flag for fillers
45 loizides 1.7 static ObjectService *os_; //object service (set in beginJob)
46 paus 1.1 };
47     }
48     #endif