15 #ifndef TrigInDetAnalysisUtils_Associator_DeltaEtaPhi_H
16 #define TrigInDetAnalysisUtils_Associator_DeltaEtaPhi_H
38 virtual void match(
const std::vector<TIDA::Track*>& referenceTracks,
39 const std::vector<TIDA::Track*>& testTracks) {
46 std::vector<TIDA::Track*>::const_iterator
reference, referenceEnd=referenceTracks.end();
53 double bestDeltaR=1000;
55 std::vector<TIDA::Track*>::const_iterator
test, testEnd=testTracks.end();
59 double deta = (*reference)->eta() - (*test)->eta();
60 double dphi = (*reference)->phi() - (*test)->phi();
69 if(bestMatch==NULL ||
deltaR<bestDeltaR) {
93 #endif // TrigInDetAnalysisUtils_Associator_DeltaEtaPhi_H