CMS 3D CMS Logo

EDAnalyzerBase.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_stream_EDAnalyzerBase_h
2 #define FWCore_Framework_stream_EDAnalyzerBase_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : EDAnalyzerBase
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri, 02 Aug 2013 00:11:27 GMT
19 //
20 
21 // system include files
22 
23 // user include files
29 
30 // forward declarations
31 namespace edm {
32  namespace stream {
33  class EDAnalyzerAdaptorBase;
34 
36  //This needs access to the parentage cache info
37  friend class EDAnalyzerAdaptorBase;
38 
39  public:
41 
43  ~EDAnalyzerBase() override;
44 
45  static void fillDescriptions(ConfigurationDescriptions& descriptions);
46  static void prevalidate(ConfigurationDescriptions& descriptions);
47  static const std::string& baseType();
48 
49  // Warning: the returned moduleDescription will be invalid during construction
51 
53 
54  private:
55  EDAnalyzerBase(const EDAnalyzerBase&) = delete; // stop default
56 
57  const EDAnalyzerBase& operator=(const EDAnalyzerBase&) = delete; // stop default
58 
60 
61  virtual void beginStream(StreamID) {}
62  virtual void beginRun(edm::Run const&, edm::EventSetup const&) {}
64  virtual void analyze(Event const&, EventSetup const&) = 0;
66  virtual void endRun(edm::Run const&, edm::EventSetup const&) {}
67  virtual void endStream() {}
68 
70  // ---------- member data --------------------------------
71  std::function<void(BranchDescription const&)> callWhenNewProductsRegistered_;
73  };
74 
75  } // namespace stream
76 } // namespace edm
77 
78 #endif
void registerProductsAndCallbacks(EDAnalyzerBase const *, ProductRegistry *reg)
ModuleDescription const & moduleDescription() const
static void prevalidate(ConfigurationDescriptions &descriptions)
void callWhenNewProductsRegistered(std::function< void(BranchDescription const &)> const &func)
ModuleDescription const * moduleDescriptionPtr_
virtual void analyze(Event const &, EventSetup const &)=0
virtual void beginStream(StreamID)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
static const std::string & baseType()
static void fillDescriptions(ConfigurationDescriptions &descriptions)
const EDAnalyzerBase & operator=(const EDAnalyzerBase &)=delete
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
std::function< void(BranchDescription const &)> callWhenNewProductsRegistered_
EDAnalyzerAdaptorBase ModuleType
void setModuleDescriptionPtr(ModuleDescription const *iDesc)
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
HLT enums.
virtual void endRun(edm::Run const &, edm::EventSetup const &)
Definition: Run.h:45