1 #ifndef NanoAOD_MatchingUtils_h 2 #define NanoAOD_MatchingUtils_h 8 template <
class C1,
class C2>
10 for(
unsigned int i1 = 0 ; i1 < c1.numberOfSourceCandidatePtrs();i1++){
11 auto c1s=c1.sourceCandidatePtr(i1);
12 for(
unsigned int i2 = 0 ; i2 < c2.numberOfSourceCandidatePtrs();i2++) {
13 if(c2.sourceCandidatePtr(i2)==c1s)
return true;
19 template <
class C1,
class C2>
21 auto c1s = c1.parentSuperCluster();
22 auto c2s = c2.parentSuperCluster();
bool matchByCommonParentSuperClusterRef(const C1 &c1, const C2 &c2)
bool matchByCommonSourceCandidatePtr(const C1 &c1, const C2 &c2)