ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillMitTree.h
(Generate patch)

Comparing UserCode/MitProd/TreeFiller/interface/FillMitTree.h (file contents):
Revision 1.3 by loizides, Thu Jun 19 16:53:43 2008 UTC vs.
Revision 1.15 by bendavid, Tue Nov 3 14:02:32 2009 UTC

# Line 11 | Line 11
11   // Authors: C.Paus
12   //--------------------------------------------------------------------------------------------------
13  
14 < #ifndef TREEFILLER_FILLMITTREE_H
15 < #define TREEFILLER_FILLMITTREE_H
14 > #ifndef MITPROD_TREEFILLER_FILLMITTREE_H
15 > #define MITPROD_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 < #include "MitProd/TreeFiller/interface/BaseFiller.h"
18 > #include "MitProd/TreeService/interface/TreeService.h"
19 >
20  
21   namespace mithep
22   {
23 +  class BranchTable;
24 +  class BaseFiller;
25 +  class TreeWriter;
26 +  class ObjectService;
27 +
28    class FillMitTree : public edm::EDAnalyzer
29    {
30      public:
31 <      FillMitTree(const edm::ParameterSet&);
31 >      FillMitTree(const edm::ParameterSet &cfg);
32        ~FillMitTree();
33  
34 <      void analyze (const edm::Event&, const edm::EventSetup&);
35 <      void beginJob(const edm::EventSetup&);
36 <      void endJob();
37 <  
38 <    private:
39 <      bool configure(const edm::ParameterSet&);
40 <      std::vector<BaseFiller*>  fillers_;       // list of our fillers and potential fillers
34 >      void                     analyze(const edm::Event &e, const edm::EventSetup &es);
35 >      void                     beginJob(const edm::EventSetup &es);
36 >      void                     endJob();
37 >
38 >      static ObjectService    *os() { return os_; }
39 >
40 >    protected:
41 >      bool                     addActiveFiller(BaseFiller *bf);
42 >      bool                     configure(const edm::ParameterSet &cfg);
43 >      bool                     configureTreeWriter(const edm::ParameterSet &cfg);
44 >
45 >      std::vector<BaseFiller*> fillers_;       //list of active fillers
46 >      bool                     defactive_;     //default activity flag for fillers
47 >      BranchTable             *brtable_;       //branch dependency table
48 >      int                      acfnumber_;     //keep track of active file number
49 >      TreeWriter              *tws_;           //pointer to tree writer
50 >      static ObjectService    *os_;            //object service (set in beginJob)
51    };
52   }
53   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines