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.2 by loizides, Wed Jun 18 19:17:21 2008 UTC vs.
Revision 1.7 by loizides, Mon Jul 7 16:14:01 2008 UTC

# Line 21 | Line 21 | namespace mithep
21    class BaseFiller
22    {
23      public:
24 <      BaseFiller(const edm::ParameterSet&, const char *en, const char *mn);
24 >      BaseFiller(const edm::ParameterSet &cfg, const char *name, bool active=true);
25        virtual ~BaseFiller() {}
26  
27 <      virtual bool Active()                                                 { return active_; }
28 <      virtual void BookDataBlock(TreeWriter *tws)                           = 0;
29 <      virtual void FillDataBlock(const edm::Event&, const edm::EventSetup&) = 0;
30 <      virtual void ResolveLinks (const edm::Event&, const edm::EventSetup&) {}
27 >      bool                     Active() const { return active_; }
28 >      virtual void             BookDataBlock(TreeWriter &tws)                                = 0;
29 >      virtual void             FillDataBlock(const edm::Event &e, const edm::EventSetup &es) = 0;
30 >      const std::string       &Name()   const { return name_; }
31 >      virtual void             ResolveLinks(const edm::Event &e, const edm::EventSetup &es)    {}
32  
33      protected:
34 <      const edm::ParameterSet            &config_;
35 <      std::string                         edmName_;
36 <      std::string                         mitName_;
37 <      const bool                          active_;
34 >      const edm::ParameterSet &Conf()   const { return config_; }
35 >
36 >      const std::string        name_;    //name of this filler
37 >      const edm::ParameterSet  config_;  //parameter set for this filler
38 >      const bool               active_;  //=1 if active
39    };
40   }
41   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines