CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UnscheduledHandler.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_UnscheduledHandler_h
2 #define FWCore_Framework_UnscheduledHandler_h
3 // -*- C++ -*-
4 //
5 // Package: Framework
6 // Class : UnscheduledHandler
7 //
17 //
18 // Original Author: Chris Jones
19 // Created: Mon Feb 13 16:26:33 IST 2006
20 //
21 
22 // system include files
23 
24 // user include files
26 #include <string>
27 
28 // forward declarations
29 namespace edm {
30  class CurrentProcessingContext;
31  class UnscheduledHandlerSentry;
32 
34 
35  public:
38  virtual ~UnscheduledHandler();
39 
40  UnscheduledHandler(UnscheduledHandler const&) = delete; // Disallow copying and moving
41  UnscheduledHandler& operator=(UnscheduledHandler const&) = delete; // Disallow copying and moving
42 
43  // ---------- const member functions ---------------------
44 
45  // ---------- static member functions --------------------
46 
47  // ---------- member functions ---------------------------
49  bool tryToFill(std::string const& label,
51 
52  void setEventSetup(EventSetup const& iSetup) {
53  m_setup = &iSetup;
54  }
55  private:
57  //void popCurrentProcessingContext();
58 
59  virtual bool tryToFillImpl(std::string const&,
61  EventSetup const&,
62  CurrentProcessingContext const*) = 0;
63  // ---------- member data --------------------------------
66 };
68  public:
70  CurrentProcessingContext const* iContext);
72  private:
75  };
76 }
77 
78 #endif
UnscheduledHandlerSentry(UnscheduledHandler *iHandler, CurrentProcessingContext const *iContext)
UnscheduledHandler & operator=(UnscheduledHandler const &)=delete
void setEventSetup(EventSetup const &iSetup)
#define nullptr
CurrentProcessingContext const * m_context
CurrentProcessingContext const * m_old
int iEvent
Definition: GenABIO.cc:243
UnscheduledHandler * m_handler
CurrentProcessingContext const * setCurrentProcessingContext(CurrentProcessingContext const *iContext)
EventSetup const * m_setup
bool tryToFill(std::string const &label, EventPrincipal &iEvent)
returns true if found an EDProducer and ran it
virtual bool tryToFillImpl(std::string const &, EventPrincipal &, EventSetup const &, CurrentProcessingContext const *)=0