test
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 ModuleCallingContext;
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  // ---------- member functions ---------------------------
45  bool tryToFill(std::string const& label,
46  EventPrincipal const & iEvent,
47  ModuleCallingContext const* mcc) const;
48 
49  void setEventSetup(EventSetup const& iSetup) {
50  m_setup = &iSetup;
51  }
52  private:
53 
54  virtual bool tryToFillImpl(std::string const&,
55  EventPrincipal const&,
56  EventSetup const&,
57  ModuleCallingContext const* mcc) const = 0;
58  // ---------- member data --------------------------------
60  };
61 }
62 #endif
friend class UnscheduledHandlerSentry
UnscheduledHandler & operator=(UnscheduledHandler const &)=delete
virtual bool tryToFillImpl(std::string const &, EventPrincipal const &, EventSetup const &, ModuleCallingContext const *mcc) const =0
void setEventSetup(EventSetup const &iSetup)
#define nullptr
int iEvent
Definition: GenABIO.cc:230
EventSetup const * m_setup
bool tryToFill(std::string const &label, EventPrincipal const &iEvent, ModuleCallingContext const *mcc) const
returns true if found an EDProducer and ran it