FWCore
Framework
interface
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
24
#include "
DataFormats/Common/interface/RefToBase.h
"
25
#include "
DataFormats/Common/interface/RefToBaseProd.h
"
26
#include "
DataFormats/Common/interface/View.h
"
27
#include "
DataFormats/Common/interface/Handle.h
"
28
#include "
FWCore/Framework/interface/Event.h
"
29
30
// forward declarations
31
32
namespace
edm
{
33
template
<
typename
T>
34
RefToBaseProd<T>
makeRefToBaseProdFrom
(
RefToBase<T>
const
& iRef,
Event
const
&
iEvent
) {
35
Handle<View<T>
> view;
36
iEvent
.get(iRef.
id
(), view);
37
38
return
RefToBaseProd<T>
(view);
39
}
40
}
// namespace edm
41
#endif
Event.h
edm::Handle
Definition:
AssociativeIterator.h:50
RefToBase.h
edm::RefToBase
Definition:
AssociativeIterator.h:54
edm::RefToBase::id
ProductID id() const
Definition:
RefToBase.h:214
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::RefToBaseProd
Definition:
RefToBase.h:65
View.h
RefToBaseProd.h
edm::makeRefToBaseProdFrom
RefToBaseProd< T > makeRefToBaseProdFrom(RefToBase< T > const &iRef, Event const &iEvent)
Definition:
makeRefToBaseProdFrom.h:34
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::Event
Definition:
Event.h:73
Handle.h
Generated for CMSSW Reference Manual by
1.8.14