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

Comparing UserCode/MitProd/TreeFiller/interface/BaseFiller.h (file contents):
Revision 1.14 by loizides, Sun Mar 15 11:20:40 2009 UTC vs.
Revision 1.16 by loizides, Fri Sep 25 08:43:07 2009 UTC

# Line 11 | Line 11
11   #ifndef MITPROD_TREEFILLER_BASEFILLER_H
12   #define MITPROD_TREEFILLER_BASEFILLER_H
13  
14 + #include "DataFormats/Common/interface/Handle.h"
15   #include "FWCore/Framework/interface/Event.h"
16   #include "FWCore/Framework/interface/Frameworkfwd.h"
17   #include "FWCore/ParameterSet/interface/ParameterSet.h"
18   #include "FWCore/MessageLogger/interface/MessageLogger.h"
18 #include "DataFormats/Common/interface/Handle.h"
19   #include "MitAna/DataUtil/interface/TreeWriter.h"
20 #include "MitProd/ObjectService/interface/ObjectService.h"
21 #include "MitProd/TreeFiller/interface/FillMitTree.h"
20   #include <TString.h>
21  
22   namespace mithep
23   {
24    class BranchTable;
25 +  class ObjectService;
26  
27    class BaseFiller
28    {
# Line 37 | Line 36 | namespace mithep
36                                   { AddBranchDep(n.c_str(), d);         }
37        void                     AddBranchDep(const std::string &n, const std::string &d)
38                                   { AddBranchDep(n.c_str(), d.c_str()); }
39 <      virtual void             BookDataBlock(TreeWriter &tws)                                = 0;
39 >      virtual void             BookDataBlock(TreeWriter &tws, const edm::EventSetup &es)     = 0;
40        virtual void             FillDataBlock(const edm::Event &e, const edm::EventSetup &es) = 0;
41        const std::string       &Name()    const { return name_;         }
42        virtual void             ResolveLinks(const edm::Event &e, const edm::EventSetup &es)    {}
# Line 53 | Line 52 | namespace mithep
52        template <typename TYPE>
53        bool                     GetProductSafe(const std::string name, edm::Handle<TYPE> &prod,
54                                                const edm::Event &event) const;    
55 <
57 <      ObjectService           *OS()            { return FillMitTree::os(); }
55 >      ObjectService           *OS();
56  
57        const std::string        name_;    //name of this filler
58        const std::string        brtname_; //name of branch table (def = BranchTable)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines