Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-09-11 22:29:32

0001 #include "FWCore/Framework/interface/EventForTransformer.h"
0002 
0003 #include "DataFormats/Common/interface/TriggerResults.h"
0004 #include "FWCore/Common/interface/TriggerResultsByName.h"
0005 #include "FWCore/Framework/interface/EventPrincipal.h"
0006 #include "FWCore/Framework/interface/LuminosityBlockForOutput.h"
0007 #include "FWCore/Framework/interface/TransitionInfoTypes.h"
0008 #include "FWCore/ParameterSet/interface/Registry.h"
0009 #include "FWCore/Utilities/interface/Algorithms.h"
0010 #include "FWCore/Utilities/interface/InputTag.h"
0011 
0012 namespace edm {
0013 
0014   EventForTransformer::EventForTransformer(EventPrincipal const& ep, ModuleCallingContext const* moduleCallingContext)
0015       : eventPrincipal_{ep}, mcc_{moduleCallingContext} {}
0016 
0017   BasicHandle EventForTransformer::get(edm::TypeID const& iTypeID, ProductResolverIndex iIndex) const {
0018     bool amb = false;
0019     return eventPrincipal_.getByToken(PRODUCT_TYPE, iTypeID, iIndex, false, amb, nullptr, mcc_);
0020   }
0021 
0022   void EventForTransformer::put(ProductResolverIndex index,
0023                                 std::unique_ptr<WrapperBase> edp,
0024                                 BasicHandle const& iGetHandle) {
0025     eventPrincipal_.put(index, std::move(edp), iGetHandle.provenance()->productProvenance()->parentageID());
0026   }
0027 
0028 }  // namespace edm