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
reco::CandViewUIntAssociations
edm::AssociationVector< CandidateBaseRefProd, std::vector< unsigned int > > CandViewUIntAssociations
Definition: CandAssociation.h:38
edm::helper::CandMasterKeyReference::get
static const CandRef & get(const CandRef &t, edm::ProductID id)
Definition: CandAssociation.h:15
edm::helper::AssociationKeyReferenceTrait
Definition: AssociationVector.h:43
reco::CandFloatAssociations
edm::AssociationVector< CandidateRefProd, std::vector< float > > CandFloatAssociations
Definition: CandAssociation.h:31
reco::CandDoubleAssociations
edm::AssociationVector< CandidateRefProd, std::vector< double > > CandDoubleAssociations
Definition: CandAssociation.h:32
edm::helper::AssociationKeyReferenceTrait< reco::CandidateCollection >::type
CandMasterKeyReference type
Definition: CandAssociation.h:25
edm
HLT enums.
Definition: AlignableModifier.h:19
reco::CandViewDoubleAssociations
edm::AssociationVector< CandidateBaseRefProd, std::vector< double > > CandViewDoubleAssociations
Definition: CandAssociation.h:36
reco::CandUIntAssociations
edm::AssociationVector< CandidateRefProd, std::vector< unsigned int > > CandUIntAssociations
Definition: CandAssociation.h:34
edm::helper::CandMasterKeyReference
Definition: CandAssociation.h:13
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::CandViewIntAssociations
edm::AssociationVector< CandidateBaseRefProd, std::vector< int > > CandViewIntAssociations
Definition: CandAssociation.h:37
edm::AssociationVector
Definition: AssociationVector.h:67
helper
Definition: helper.py:1
ValueMap.h
reco::CandIntAssociations
edm::AssociationVector< CandidateRefProd, std::vector< int > > CandIntAssociations
Definition: CandAssociation.h:33
reco::CandidateCollection
edm::OwnVector< Candidate > CandidateCollection
collection of Candidate objects
Definition: CandidateFwd.h:21
edm::ValueMap
Definition: ValueMap.h:107
AssociationVector.h
Candidate.h
reco::CandViewFloatAssociations
edm::AssociationVector< CandidateBaseRefProd, std::vector< float > > CandViewFloatAssociations
Definition: CandAssociation.h:35
reco::CandRefValueMap
edm::ValueMap< CandidateBaseRef > CandRefValueMap
Definition: CandAssociation.h:39
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
edm::ProductID
Definition: ProductID.h:27