CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RunBase.h
Go to the documentation of this file.
1 #ifndef DataFormats_FWLite_RunBase_h
2 #define DataFormats_FWLite_RunBase_h
3 // -*- C++ -*-
4 //
5 // Package: DataFormats/FWLite
6 // Class : RunBase
7 //
16 //
17 // Original Author: Eric Vaandering
18 // Created: Wed Jan 13 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
28 
29 #include "Rtypes.h"
30 
31 namespace fwlite
32 {
33  class RunBase : public edm::RunBase
34  {
35  public:
36  RunBase();
37 
38  virtual ~RunBase();
39 
40  virtual bool getByLabel(
41  std::type_info const&,
42  char const*,
43  char const*,
44  char const*,
45  void*) const = 0;
46 
48 
49 // virtual std::string const getBranchNameFor (std::type_info const&,
50 // char const*,
51 // char const*,
52 // char const*) const = 0;
53 
54  virtual bool atEnd() const = 0;
55 
56  virtual const RunBase& operator++() = 0;
57 
58  virtual const RunBase& toBegin() = 0;
59 
60  virtual Long64_t fileIndex() const { return -1; }
61  virtual Long64_t secondaryFileIndex() const { return -1; }
62 
63  private:
64 
65  virtual edm::BasicHandle getByLabelImpl(std::type_info const&, std::type_info const&, const edm::InputTag&) const;
66  };
67 } // fwlite namespace
68 
69 #endif /*__CINT__ */
70 #endif
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
same as above, but using the InputTag class
virtual bool getByLabel(std::type_info const &, char const *, char const *, char const *, void *) const =0
virtual Long64_t fileIndex() const
Definition: RunBase.h:60
virtual bool atEnd() const =0
virtual ~RunBase()
Definition: RunBase.cc:39
virtual const RunBase & operator++()=0
virtual const RunBase & toBegin()=0
virtual Long64_t secondaryFileIndex() const
Definition: RunBase.h:61
virtual edm::BasicHandle getByLabelImpl(std::type_info const &, std::type_info const &, const edm::InputTag &) const
Definition: RunBase.cc:44