CMS 3D CMS Logo

makeRefToBaseProdFrom.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_makeRefToBaseProdFrom_h
2 #define FWCore_Framework_makeRefToBaseProdFrom_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : makeRefToBaseProdFrom
7 //
16 //
17 // Original Author: Christopher Jones
18 // Created: Tue, 02 Dec 2014 16:00:08 GMT
19 //
20 
21 // system include files
22 
23 // user include files
29 
30 // forward declarations
31 
32 namespace edm {
33  template<typename T>
35  Handle<View<T>> view;
36  iEvent.get(iRef.id(),view);
37 
38  return RefToBaseProd<T>(view);
39  }
40 }
41 #endif
ProductID id() const
Definition: RefToBase.h:242
int iEvent
Definition: GenABIO.cc:230
bool get(ProductID const &oid, Handle< PROD > &result) const
Definition: Event.h:341
RefToBaseProd< T > makeRefToBaseProdFrom(RefToBase< T > const &iRef, Event const &iEvent)
HLT enums.