CMS 3D CMS Logo

JetTrackConeAssociator< JetC > Class Template Reference

Associates tracks in eta-phi cone around jet direction. More...

#include <RecoJets/JetAlgorithms/interface/JetTrackConeAssociator.h>

Inheritance diagram for JetTrackConeAssociator< JetC >:

JetTrackAssociator< JetC >

List of all members.

Public Types

typedef JetTrackAssociator
< JetC >::JetRef 
JetRef
typedef JetTrackAssociator
< JetC >::TrackRef 
TrackRef

Public Member Functions

virtual bool associate (const JetRef &fJet, const TrackRef &fTrack) const
 virtual method to make association
 JetTrackConeAssociator (double fConeSize)
virtual ~JetTrackConeAssociator ()

Private Attributes

double mConeSize


Detailed Description

template<typename JetC>
class JetTrackConeAssociator< JetC >

Associates tracks in eta-phi cone around jet direction.

Author:
: F.Ratnikov, UMd Apr. 20, 2007
Id
JetTrackConeAssociator.h,v 1.1 2007/05/03 21:20:09 fedor Exp

Definition at line 14 of file JetTrackConeAssociator.h.


Member Typedef Documentation

template<typename JetC>
typedef JetTrackAssociator<JetC>::JetRef JetTrackConeAssociator< JetC >::JetRef

Reimplemented from JetTrackAssociator< JetC >.

Definition at line 16 of file JetTrackConeAssociator.h.

template<typename JetC>
typedef JetTrackAssociator<JetC>::TrackRef JetTrackConeAssociator< JetC >::TrackRef

Reimplemented from JetTrackAssociator< JetC >.

Definition at line 17 of file JetTrackConeAssociator.h.


Constructor & Destructor Documentation

template<typename JetC>
JetTrackConeAssociator< JetC >::JetTrackConeAssociator ( double  fConeSize  )  [inline]

Definition at line 18 of file JetTrackConeAssociator.h.

00018 : mConeSize (fConeSize) {}

template<typename JetC>
virtual JetTrackConeAssociator< JetC >::~JetTrackConeAssociator (  )  [inline, virtual]

Definition at line 19 of file JetTrackConeAssociator.h.

00019 {}


Member Function Documentation

template<typename JetC>
virtual bool JetTrackConeAssociator< JetC >::associate ( const JetRef fJet,
const TrackRef fTrack 
) const [inline, virtual]

virtual method to make association

Implements JetTrackAssociator< JetC >.

Definition at line 22 of file JetTrackConeAssociator.h.

References deltaR(), and JetTrackConeAssociator< JetC >::mConeSize.

00022                                                                             {
00023     return deltaR (fJet->eta(), fJet->phi(), fTrack->eta(), fTrack->phi()) <= mConeSize;
00024   }


Member Data Documentation

template<typename JetC>
double JetTrackConeAssociator< JetC >::mConeSize [private]

Definition at line 26 of file JetTrackConeAssociator.h.

Referenced by JetTrackConeAssociator< JetC >::associate().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:26:13 2009 for CMSSW by  doxygen 1.5.4