CMS 3D CMS Logo

Public Member Functions | Private Member Functions

fwlite::EventBase Class Reference

#include <EventBase.h>

Inheritance diagram for fwlite::EventBase:
edm::EventBase fwlite::ChainEvent fwlite::Event fwlite::EventContainer fwlite::MultiChainEvent

List of all members.

Public Member Functions

virtual bool atEnd () const =0
 EventBase ()
virtual Long64_t fileIndex () const
virtual std::string const getBranchNameFor (std::type_info const &, char const *, char const *, char const *) const =0
virtual bool getByLabel (std::type_info const &, char const *, char const *, char const *, edm::WrapperHolder &) const =0
virtual bool getByLabel (std::type_info const &, char const *, char const *, char const *, void *) const =0
virtual EventBase const & operator++ ()=0
virtual Long64_t secondaryFileIndex () const
virtual EventBase const & toBegin ()=0
virtual ~EventBase ()

Private Member Functions

virtual edm::BasicHandle getByLabelImpl (std::type_info const &, std::type_info const &, const edm::InputTag &) const

Detailed Description

Definition at line 32 of file EventBase.h.


Constructor & Destructor Documentation

EventBase::EventBase ( )

Reimplemented from edm::EventBase.

Definition at line 29 of file EventBase.cc.

   {
   }
EventBase::~EventBase ( ) [virtual]

Reimplemented from edm::EventBase.

Definition at line 33 of file EventBase.cc.

   {
   }

Member Function Documentation

virtual bool fwlite::EventBase::atEnd ( ) const [pure virtual]
virtual Long64_t fwlite::EventBase::fileIndex ( ) const [inline, virtual]

Reimplemented in fwlite::ChainEvent, fwlite::MultiChainEvent, and fwlite::EventContainer.

Definition at line 65 of file EventBase.h.

Referenced by fwlite::EventContainer::fileIndex().

{ return -1; }
virtual std::string const fwlite::EventBase::getBranchNameFor ( std::type_info const &  ,
char const *  ,
char const *  ,
char const *   
) const [pure virtual]
virtual bool fwlite::EventBase::getByLabel ( std::type_info const &  ,
char const *  ,
char const *  ,
char const *  ,
edm::WrapperHolder  
) const [pure virtual]
virtual bool fwlite::EventBase::getByLabel ( std::type_info const &  ,
char const *  ,
char const *  ,
char const *  ,
void *   
) const [pure virtual]
edm::BasicHandle EventBase::getByLabelImpl ( std::type_info const &  iWrapperInfo,
std::type_info const &  ,
const edm::InputTag iTag 
) const [private, virtual]

Implements edm::EventBase.

Definition at line 38 of file EventBase.cc.

References compareJSON::const, getByLabel(), edm::InputTag::instance(), edm::WrapperHolder::isPresent(), edm::WrapperHolder::isValid(), edm::InputTag::label(), edm::InputTag::process(), edm::errors::ProductNotFound, s_prov, and relativeConstraints::value.

                                                                                                                   {
      edm::WrapperHolder edp;
      getByLabel(iWrapperInfo,
                 iTag.label().c_str(),
                 iTag.instance().empty()?static_cast<char const*>(0):iTag.instance().c_str(),
                 iTag.process().empty()?static_cast<char const*> (0):iTag.process().c_str(),
                 edp);
      if(!edp.isValid() || !edp.isPresent()) {
         edm::TypeID productType(iWrapperInfo);
         boost::shared_ptr<cms::Exception> whyFailed(new edm::Exception(edm::errors::ProductNotFound));
         *whyFailed
         << "getByLabel: Found zero products matching all criteria\n"
         << "Looking for type: " << productType << "\n"
         << "Looking for module label: " << iTag.label() << "\n"
         << "Looking for productInstanceName: " << iTag.instance() << "\n"
         << (iTag.process().empty() ? "" : "Looking for process: ") << iTag.process() << "\n"
         << "The data is registered in the file but is not available for this event\n";
         edm::BasicHandle failed(whyFailed);
         return failed;
      }

      edm::BasicHandle value(edp, &s_prov);
      return value;
   }
virtual EventBase const& fwlite::EventBase::operator++ ( ) [pure virtual]
virtual Long64_t fwlite::EventBase::secondaryFileIndex ( ) const [inline, virtual]

Reimplemented in fwlite::MultiChainEvent, and fwlite::EventContainer.

Definition at line 66 of file EventBase.h.

Referenced by fwlite::EventContainer::secondaryFileIndex().

{ return -1; }
virtual EventBase const& fwlite::EventBase::toBegin ( ) [pure virtual]