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.15 by loizides, Mon Jun 15 15:00:23 2009 UTC vs.
Revision 1.19 by bendavid, Thu Mar 18 20:20:59 2010 UTC

# Line 36 | 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)     = 0;
40        virtual void             FillDataBlock(const edm::Event &e, const edm::EventSetup &es) = 0;
41 +      virtual void             FillRunBlock(edm::Run const &r, edm::EventSetup const &es) {}
42        const std::string       &Name()    const { return name_;         }
43        virtual void             ResolveLinks(const edm::Event &e, const edm::EventSetup &es)    {}
44        int                      Verbose() const { return verbose_;      }
# Line 76 | Line 77 | inline void mithep::BaseFiller::GetProdu
77      event.getByLabel(edm::InputTag(edmname),prod);
78      if (!prod.isValid())
79        throw edm::Exception(edm::errors::Configuration, "BaseFiller::GetProduct()\n")
80 <        << "Cannot get collection with label " << edmname << std::endl;
80 >        << "Cannot get collection with label " << edmname << " for " << Name() <<  std::endl;
81    } catch (...) {
82      edm::LogError("BaseFiller") << "Cannot get collection with label "
83 <                                << edmname << std::endl;
84 <    PrintErrorAndExit(Form("Cannot get collection with label %s", edmname.c_str()));
83 >                                << edmname << " for " << Name() << std::endl;
84 >    PrintErrorAndExit(Form("Cannot get collection with label %s for %s",
85 >                           edmname.c_str(), name_.c_str()));
86    }
87   }
88  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines