12 #ifndef TrigInDetAnalysisUtils_Associator_DeltaRCosmics_H
13 #define TrigInDetAnalysisUtils_Associator_DeltaRCosmics_H
35 virtual void match(
const std::vector<TIDA::Track*>& referenceTracks,
36 const std::vector<TIDA::Track*>& testTracks) {
42 std::vector<TIDA::Track*>::const_iterator
reference, referenceEnd=referenceTracks.end();
47 double bestDeltaR=1000;
49 std::vector<TIDA::Track*>::const_iterator
test, testEnd=testTracks.end();
53 double deta = (*reference)->eta() + (*test)->eta();
54 double dphi = (*reference)->phi() - (*test)->phi() -
M_PI;
57 double deltaR = deta*deta+dphi*dphi;
60 if(bestMatch==NULL ||
deltaR<bestDeltaR) {
82 #endif // TrigInDetAnalysisUtils_Associator_DeltaRCosmics_H