Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:46:50

0001 #ifndef FWCore_Framework_EventForTransformer_h
0002 #define FWCore_Framework_EventForTransformer_h
0003 
0004 // -*- C++ -*-
0005 //
0006 // Package:     Framework
0007 // Class  :     EventForTransformer
0008 //
0009 /**\class edm::EventForTransformer
0010 
0011 */
0012 /*----------------------------------------------------------------------
0013 ----------------------------------------------------------------------*/
0014 
0015 #include "DataFormats/Common/interface/BasicHandle.h"
0016 #include "DataFormats/Common/interface/WrapperBase.h"
0017 
0018 #include "FWCore/Framework/interface/Frameworkfwd.h"
0019 #include "FWCore/Utilities/interface/TypeID.h"
0020 #include "FWCore/Utilities/interface/ProductResolverIndex.h"
0021 
0022 #include <memory>
0023 
0024 namespace edm {
0025 
0026   class EventPrincipal;
0027   class ModuleCallingContext;
0028 
0029   class EventForTransformer {
0030   public:
0031     EventForTransformer(EventPrincipal const&, ModuleCallingContext const*);
0032 
0033     BasicHandle get(edm::TypeID const& iTypeID, ProductResolverIndex iIndex) const;
0034 
0035     void put(ProductResolverIndex index, std::unique_ptr<WrapperBase> edp, BasicHandle const& iGetHandle);
0036 
0037   private:
0038     EventPrincipal const& eventPrincipal_;
0039     ModuleCallingContext const* mcc_;
0040   };
0041 }  // namespace edm
0042 #endif