test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MakePtrFromCollection.h
Go to the documentation of this file.
1 #ifndef __PhysicsTools_SelectorUtils_MakePtrFromCollection_h__
2 #define __PhysicsTools_SelectorUtils_MakePtrFromCollection_h__
3 
5 
6 template<class Collection, class InPhysObj = typename Collection::value_type, class OutPhysObj = typename Collection::value_type>
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
edm::Ptr< OutPhysObj > operator()(const Collection &coll, unsigned idx)
JetCorrectorParametersCollection coll
Definition: classes.h:10
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...