CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CandAssociation.h
Go to the documentation of this file.
1 #ifndef Candidate_CandAssociation_h
2 #define Candidate_CandAssociation_h
3 //
4 // \author Luca Lista, INFN
5 //
9 #include <vector>
10 
11 namespace edm {
12  namespace helper {
14  template<typename CandRef>
15  static const CandRef & get( const CandRef & t, edm::ProductID id ) {
16  if ( id == t.id() ) return t;
17  else return t->masterClone().template castTo<CandRef>();
18  }
19  };
20 
21  template<>
24  };
25  }
26 }
27 
28 namespace reco {
38 }
39 
40 #endif
edm::AssociationVector< CandidateBaseRefProd, std::vector< int > > CandViewIntAssociations
edm::ValueMap< CandidateBaseRef > CandRefValueMap
edm::AssociationVector< CandidateRefProd, std::vector< unsigned int > > CandUIntAssociations
edm::AssociationVector< CandidateRefProd, std::vector< double > > CandDoubleAssociations
edm::AssociationVector< CandidateRefProd, std::vector< float > > CandFloatAssociations
edm::AssociationVector< CandidateBaseRefProd, std::vector< float > > CandViewFloatAssociations
edm::AssociationVector< CandidateBaseRefProd, std::vector< double > > CandViewDoubleAssociations
edm::OwnVector< Candidate > CandidateCollection
collection of Candidate objects
Definition: CandidateFwd.h:21
edm::AssociationVector< CandidateBaseRefProd, std::vector< unsigned int > > CandViewUIntAssociations
edm::AssociationVector< CandidateRefProd, std::vector< int > > CandIntAssociations