#include <EventBase.h>
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 |
Definition at line 32 of file EventBase.h.
EventBase::EventBase | ( | ) |
EventBase::~EventBase | ( | ) | [virtual] |
virtual bool fwlite::EventBase::atEnd | ( | ) | const [pure virtual] |
Implemented in fwlite::ChainEvent, fwlite::Event, fwlite::MultiChainEvent, and fwlite::EventContainer.
Referenced by fwlite::EventContainer::atEnd(), fwlite::Scanner< Collection >::count(), fwlite::Scanner< Collection >::countEvents(), fwlite::Scanner< Collection >::draw(), fwlite::Scanner< Collection >::draw2D(), fwlite::Scanner< Collection >::drawGraph(), fwlite::Scanner< Collection >::drawProf(), fwlite::Scanner< Collection >::fillDataSet(), and fwlite::Scanner< Collection >::scan().
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] |
Implemented in fwlite::ChainEvent, fwlite::Event, fwlite::MultiChainEvent, and fwlite::EventContainer.
Referenced by fwlite::EventContainer::getBranchNameFor(), and fwlite::Handle< Collection >::getBranchNameFor().
virtual bool fwlite::EventBase::getByLabel | ( | std::type_info const & | , |
char const * | , | ||
char const * | , | ||
char const * | , | ||
edm::WrapperHolder & | |||
) | const [pure virtual] |
Implemented in fwlite::ChainEvent, fwlite::Event, and fwlite::MultiChainEvent.
virtual bool fwlite::EventBase::getByLabel | ( | std::type_info const & | , |
char const * | , | ||
char const * | , | ||
char const * | , | ||
void * | |||
) | const [pure virtual] |
Implemented in fwlite::ChainEvent, fwlite::Event, fwlite::MultiChainEvent, and fwlite::EventContainer.
Referenced by fwlite::EventContainer::getByLabel(), and getByLabelImpl().
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] |
Implemented in fwlite::ChainEvent, fwlite::Event, fwlite::MultiChainEvent, and fwlite::EventContainer.
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] |
Implemented in fwlite::ChainEvent, fwlite::Event, fwlite::MultiChainEvent, and fwlite::EventContainer.
Referenced by fwlite::Scanner< Collection >::count(), fwlite::Scanner< Collection >::countEvents(), fwlite::Scanner< Collection >::draw(), fwlite::Scanner< Collection >::draw2D(), fwlite::Scanner< Collection >::drawGraph(), fwlite::Scanner< Collection >::drawProf(), fwlite::Scanner< Collection >::fillDataSet(), fwlite::Scanner< Collection >::scan(), and fwlite::EventContainer::toBegin().