Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
PhysicsTools
SelectorUtils
interface
MakePtrFromCollection.h
Go to the documentation of this file.
1
#ifndef __PhysicsTools_SelectorUtils_MakePtrFromCollection_h__
2
#define __PhysicsTools_SelectorUtils_MakePtrFromCollection_h__
3
4
#include "
DataFormats/Common/interface/Ptr.h
"
5
6
template
<
class
Collection,
7
class
InPhysObj =
typename
Collection::value_type
,
8
class
OutPhysObj =
typename
Collection::value_type
>
9
struct
MakePtrFromCollection
{
10
edm::Ptr<OutPhysObj>
operator()
(
const
Collection& coll,
unsigned
idx) {
11
edm::Ptr<InPhysObj>
temp
(&coll, idx);
12
return
edm::Ptr<OutPhysObj>
(
temp
);
13
}
14
};
15
16
#endif
MakePtrFromCollection
Definition:
MakePtrFromCollection.h:9
groupFilesInBlocks.temp
temp
Definition:
groupFilesInBlocks.py:142
MakePtrFromCollection::operator()
edm::Ptr< OutPhysObj > operator()(const Collection &coll, unsigned idx)
Definition:
MakePtrFromCollection.h:10
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
Ptr.h
edm::Ptr
Definition:
AssociationVector.h:31
Generated for CMSSW Reference Manual by
1.8.5