Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:02

0001 #ifndef FWCore_ServiceRegistry_InternalContext_h
0002 #define FWCore_ServiceRegistry_InternalContext_h
0003 
0004 /**\class edm::InternalContext
0005 
0006  Description: Holds context information for the link
0007  between a MixingModule context and a module called
0008  by unscheduled production adding data to a secondary
0009  Principal.
0010 */
0011 //
0012 // Original Author: W. David Dagenhart
0013 //         Created: 7/31/2013
0014 
0015 #include "DataFormats/Provenance/interface/EventID.h"
0016 
0017 #include <iosfwd>
0018 
0019 namespace edm {
0020 
0021   class ModuleCallingContext;
0022 
0023   class InternalContext {
0024   public:
0025     InternalContext(EventID const& eventID, ModuleCallingContext const*);
0026 
0027     EventID const& eventID() const { return eventID_; }  // event#==0 is a lumi, event#==0&lumi#==0 is a run
0028     ModuleCallingContext const* moduleCallingContext() const { return moduleCallingContext_; }
0029 
0030   private:
0031     EventID eventID_;  // event#==0 is a lumi, event#==0&lumi#==0 is a run
0032     ModuleCallingContext const* moduleCallingContext_;
0033   };
0034 
0035   std::ostream& operator<<(std::ostream&, InternalContext const&);
0036 }  // namespace edm
0037 #endif