Main Page
Namespaces
Classes
Package Documentation
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
}
41
#endif
Event.h
edm::Handle
Definition:
AssociativeIterator.h:47
RefToBase.h
edm::RefToBase::id
ProductID id() const
Definition:
RefToBase.h:242
edm::RefToBase
Definition:
AssociativeIterator.h:49
iEvent
int iEvent
Definition:
GenABIO.cc:230
edm::RefToBaseProd
Definition:
RefToBase.h:61
View.h
edm::Event::get
bool get(ProductID const &oid, Handle< PROD > &result) const
Definition:
Event.h:334
RefToBaseProd.h
edm::makeRefToBaseProdFrom
RefToBaseProd< T > makeRefToBaseProdFrom(RefToBase< T > const &iRef, Event const &iEvent)
Definition:
makeRefToBaseProdFrom.h:34
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::Event
Definition:
Event.h:66
Handle.h
Generated for CMSSW Reference Manual by
1.8.11