Main Page
Namespaces
Classes
Package Documentation
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,
class
InPhysObj =
typename
Collection::value_type,
class
OutPhysObj =
typename
Collection::value_type>
7
struct
MakePtrFromCollection
{
8
edm::Ptr<OutPhysObj>
operator()
(
const
Collection&
coll
,
unsigned
idx
) {
9
edm::Ptr<InPhysObj>
temp
(&coll,idx);
10
return
edm::Ptr<OutPhysObj>
(
temp
);
11
}
12
};
13
14
#endif
MakePtrFromCollection
Definition:
MakePtrFromCollection.h:7
groupFilesInBlocks.temp
temp
Definition:
groupFilesInBlocks.py:142
MakePtrFromCollection::operator()
edm::Ptr< OutPhysObj > operator()(const Collection &coll, unsigned idx)
Definition:
MakePtrFromCollection.h:8
Ptr.h
edm::Ptr
Definition:
AssociationVector.h:30
coll
JetCorrectorParametersCollection coll
Definition:
classes.h:10
training_settings.idx
idx
Definition:
training_settings.py:16
Generated for CMSSW Reference Manual by
1.8.11