CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Attributes

TopProjectorDeltaROverlap< Top, Bottom > Class Template Reference

This checks matching based on delta R. More...

#include <TopProjector.h>

Inheritance diagram for TopProjectorDeltaROverlap< Top, Bottom >:
unary_function

List of all members.

Public Types

typedef edm::FwdPtr< Bottom > BottomFwdPtr
typedef edm::FwdPtr< Top > TopFwdPtr

Public Member Functions

bool operator() (TopFwdPtr const &top) const
void setBottom (BottomFwdPtr const &bottom)
 TopProjectorDeltaROverlap ()
 TopProjectorDeltaROverlap (edm::ParameterSet const &config)

Protected Attributes

float botEta_
float botPhi_
BottomFwdPtr const * bottom_
const Bottom * bottomCPtr_
double deltaR2_

Detailed Description

template<class Top, class Bottom>
class TopProjectorDeltaROverlap< Top, Bottom >

This checks matching based on delta R.

Definition at line 104 of file TopProjector.h.


Member Typedef Documentation

template<class Top , class Bottom >
typedef edm::FwdPtr<Bottom> TopProjectorDeltaROverlap< Top, Bottom >::BottomFwdPtr

Definition at line 108 of file TopProjector.h.

template<class Top , class Bottom >
typedef edm::FwdPtr<Top> TopProjectorDeltaROverlap< Top, Bottom >::TopFwdPtr

Definition at line 107 of file TopProjector.h.


Constructor & Destructor Documentation

template<class Top , class Bottom >
TopProjectorDeltaROverlap< Top, Bottom >::TopProjectorDeltaROverlap ( ) [inline, explicit]

Definition at line 110 of file TopProjector.h.

References TopProjectorDeltaROverlap< Top, Bottom >::bottom_.

{bottom_ = 0;}
template<class Top , class Bottom >
TopProjectorDeltaROverlap< Top, Bottom >::TopProjectorDeltaROverlap ( edm::ParameterSet const &  config) [inline, explicit]

Definition at line 111 of file TopProjector.h.

References TopProjectorDeltaROverlap< Top, Bottom >::deltaR2_.

                                                                        :
    deltaR2_( config.getParameter<double>("deltaR") ),
      bottom_(0),bottomCPtr_(0),botEta_(-999.f),botPhi_(0.f)
      {deltaR2_*=deltaR2_;}

Member Function Documentation

template<class Top , class Bottom >
bool TopProjectorDeltaROverlap< Top, Bottom >::operator() ( TopFwdPtr const &  top) const [inline]

Definition at line 123 of file TopProjector.h.

References TopProjectorDeltaROverlap< Top, Bottom >::botEta_, TopProjectorDeltaROverlap< Top, Bottom >::botPhi_, Geom::deltaR2(), TopProjectorDeltaROverlap< Top, Bottom >::deltaR2_, and TtFullHadDaughter::Top.

                                                   {
      const Top& oTop = *top; float topEta = oTop.eta(); float topPhi = oTop.phi();
      bool matched = reco::deltaR2( topEta, topPhi, botEta_, botPhi_) < deltaR2_;
      return matched;
    }
template<class Top , class Bottom >
void TopProjectorDeltaROverlap< Top, Bottom >::setBottom ( BottomFwdPtr const &  bottom) [inline]

Member Data Documentation

template<class Top , class Bottom >
float TopProjectorDeltaROverlap< Top, Bottom >::botEta_ [protected]
template<class Top , class Bottom >
float TopProjectorDeltaROverlap< Top, Bottom >::botPhi_ [protected]
template<class Top , class Bottom >
BottomFwdPtr const* TopProjectorDeltaROverlap< Top, Bottom >::bottom_ [protected]
template<class Top , class Bottom >
const Bottom* TopProjectorDeltaROverlap< Top, Bottom >::bottomCPtr_ [protected]

Definition at line 132 of file TopProjector.h.

Referenced by TopProjectorDeltaROverlap< Top, Bottom >::setBottom().

template<class Top , class Bottom >
double TopProjectorDeltaROverlap< Top, Bottom >::deltaR2_ [protected]