#include <UnscheduledHandler.h>
Public Member Functions | |
void | setEventSetup (EventSetup const &iSetup) |
bool | tryToFill (std::string const &label, EventPrincipal &iEvent) |
returns true if found an EDProducer and ran it | |
UnscheduledHandler () | |
virtual | ~UnscheduledHandler () |
Private Member Functions | |
UnscheduledHandler const & | operator= (UnscheduledHandler const &) |
CurrentProcessingContext const * | setCurrentProcessingContext (CurrentProcessingContext const *iContext) |
virtual bool | tryToFillImpl (std::string const &, EventPrincipal &, EventSetup const &, CurrentProcessingContext const *)=0 |
UnscheduledHandler (UnscheduledHandler const &) | |
Private Attributes | |
CurrentProcessingContext const * | m_context |
EventSetup const * | m_setup |
Friends | |
class | UnscheduledHandlerSentry |
Definition at line 33 of file UnscheduledHandler.h.
edm::UnscheduledHandler::UnscheduledHandler | ( | ) | [inline] |
Definition at line 37 of file UnscheduledHandler.h.
UnscheduledHandler::~UnscheduledHandler | ( | ) | [virtual] |
Definition at line 41 of file UnscheduledHandler.cc.
{ }
edm::UnscheduledHandler::UnscheduledHandler | ( | UnscheduledHandler const & | ) | [private] |
UnscheduledHandler const& edm::UnscheduledHandler::operator= | ( | UnscheduledHandler const & | ) | [private] |
CurrentProcessingContext const * UnscheduledHandler::setCurrentProcessingContext | ( | CurrentProcessingContext const * | iContext | ) | [private] |
Definition at line 59 of file UnscheduledHandler.cc.
References m_context.
Referenced by edm::UnscheduledHandlerSentry::UnscheduledHandlerSentry(), and edm::UnscheduledHandlerSentry::~UnscheduledHandlerSentry().
void edm::UnscheduledHandler::setEventSetup | ( | EventSetup const & | iSetup | ) | [inline] |
bool UnscheduledHandler::tryToFill | ( | std::string const & | label, |
EventPrincipal & | iEvent | ||
) |
returns true if found an EDProducer and ran it
Definition at line 72 of file UnscheduledHandler.cc.
References m_context, m_setup, edm::CurrentProcessingContext::setUnscheduledDepth(), cond::rpcobtemp::temp, tryToFillImpl(), and edm::CurrentProcessingContext::unscheduledDepth().
{ assert(m_setup); CurrentProcessingContext const* chosen = m_context; CurrentProcessingContext temp; if(0 != m_context) { temp = *m_context; temp.setUnscheduledDepth(m_context->unscheduledDepth()); chosen = &temp; } UnscheduledHandlerSentry sentry(this, chosen); return tryToFillImpl(label, iEvent, *m_setup, chosen); }
virtual bool edm::UnscheduledHandler::tryToFillImpl | ( | std::string const & | , |
EventPrincipal & | , | ||
EventSetup const & | , | ||
CurrentProcessingContext const * | |||
) | [private, pure virtual] |
Implemented in edm::UnscheduledCallProducer.
Referenced by tryToFill().
friend class UnscheduledHandlerSentry [friend] |
Definition at line 36 of file UnscheduledHandler.h.
CurrentProcessingContext const* edm::UnscheduledHandler::m_context [private] |
Definition at line 66 of file UnscheduledHandler.h.
Referenced by setCurrentProcessingContext(), and tryToFill().
EventSetup const* edm::UnscheduledHandler::m_setup [private] |
Definition at line 65 of file UnscheduledHandler.h.
Referenced by setEventSetup(), and tryToFill().