CMS 3D CMS Logo

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())
17  return t;
18  else
19  return t->masterClone().template castTo<CandRef>();
20  }
21  };
22 
23  template <>
26  };
27  } // namespace helper
28 } // namespace edm
29 
30 namespace reco {
40 } // namespace reco
41 
42 #endif
edm::AssociationVector< CandidateBaseRefProd, std::vector< int > > CandViewIntAssociations
edm::ValueMap< CandidateBaseRef > CandRefValueMap
Definition: helper.py:1
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
fixed size matrix
HLT enums.
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