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.1 by paus, Wed Jun 18 13:23:22 2008 UTC vs.
Revision 1.11 by loizides, Thu Mar 19 22:20:46 2009 UTC

# Line 10 | Line 10
10   //
11   // Authors: C.Paus
12   //--------------------------------------------------------------------------------------------------
13 < #ifndef TREEFILLER_FILLMITTREE_H
14 < #define TREEFILLER_FILLMITTREE_H
13 >
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 "MitAna/DataUtil/interface/TreeWriter.h"
21 < #include "MitProd/TreeService/interface/TreeService.h"
22 < #include "MitProd/TreeFiller/interface/BaseFiller.h"
21 > #include "MitProd/ObjectService/interface/ObjectService.h"
22  
23   namespace mithep
24   {
25 <  class FillerGlobalMuons;
25 >  class BranchTable;
26 >  class BaseFiller;
27 >  class TreeWriter;
28  
29    class FillMitTree : public edm::EDAnalyzer
30    {
31      public:
32 <      FillMitTree(const edm::ParameterSet&);
32 >      FillMitTree(const edm::ParameterSet &cfg);
33        ~FillMitTree();
34  
35 <      void analyze (const edm::Event&, const edm::EventSetup&);
36 <      void beginJob(edm::EventSetup const&);
37 <      void endJob  ();
38 <  
39 <    private:
40 <      // list of our fillers and potential fillers
41 <      std::vector<BaseFiller*>  fillers_;
42 <      FillerGlobalMuons        *fillerGlobalMuons_;
43 <      
44 <      // parameters for service
45 <      std::vector<std::string>  branchNames_;   // names of the fillers to be activated
35 >      void analyze (const edm::Event &e, const edm::EventSetup &es);
36 >      void beginJob(const edm::EventSetup &es);
37 >      void endJob();
38 >
39 >      static ObjectService *os() { return os_; }
40 >
41 >    protected:
42 >      bool addActiveFiller(BaseFiller *bf);
43 >      bool configure(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