CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventBase.h
Go to the documentation of this file.
1 #ifndef DataFormats_FWLite_EventBase_h
2 #define DataFormats_FWLite_EventBase_h
3 // -*- C++ -*-
4 //
5 // Package: FWLite
6 // Class : EventBase
7 //
16 //
17 // Original Author: Charles Plager
18 // Created: Tue May 8 15:01:20 EDT 2007
19 //
20 #if !defined(__CINT__) && !defined(__MAKECINT__)
21 // system include files
22 #include <string>
23 #include <typeinfo>
24 //
25 // // user include files
27 
28 #include "Rtypes.h"
29 
30 namespace edm {
31  class BasicHandle;
32  class ProductID;
33  class WrapperBase;
34 }
35 
36 namespace fwlite
37 {
38  class EventBase : public edm::EventBase
39  {
40  public:
41  EventBase();
42 
43  virtual ~EventBase();
44 
45  virtual bool getByLabel(
46  std::type_info const&,
47  char const*,
48  char const*,
49  char const*,
50  void*) const = 0;
51 
52  virtual edm::WrapperBase const* getByProductID(edm::ProductID const&) const = 0;
53 
55 
56  virtual std::string const getBranchNameFor (std::type_info const&,
57  char const*,
58  char const*,
59  char const*) const = 0;
60 
61  virtual bool atEnd() const = 0;
62 
63  virtual EventBase const& operator++() = 0;
64 
65  virtual EventBase const& toBegin() = 0;
66 
67  virtual Long64_t fileIndex() const { return -1; }
68  virtual Long64_t secondaryFileIndex() const { return -1; }
69 
70  private:
71 
72  virtual edm::BasicHandle getByLabelImpl(std::type_info const&, std::type_info const&, const edm::InputTag&) const;
73  virtual edm::BasicHandle getImpl(std::type_info const&, edm::ProductID const&) const;
74  };
75 } // fwlite namespace
76 
77 #endif /*__CINT__ */
78 #endif
virtual edm::BasicHandle getByLabelImpl(std::type_info const &, std::type_info const &, const edm::InputTag &) const
Definition: EventBase.cc:42
virtual Long64_t fileIndex() const
Definition: EventBase.h:67
virtual edm::BasicHandle getImpl(std::type_info const &, edm::ProductID const &) const
Definition: EventBase.cc:72
virtual Long64_t secondaryFileIndex() const
Definition: EventBase.h:68
virtual edm::WrapperBase const * getByProductID(edm::ProductID const &) const =0
virtual std::string const getBranchNameFor(std::type_info const &, char const *, char const *, char const *) const =0
virtual ~EventBase()
Definition: EventBase.cc:37
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *) const =0
virtual EventBase const & operator++()=0
bool getByLabel(InputTag const &, Handle< T > &) const
Definition: EventBase.h:92
virtual bool atEnd() const =0
virtual EventBase const & toBegin()=0