Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

PartitionCondition::BelowThresholdDeltaR Class Reference

STL generic algorithm function object. More...

#include <FunctionObjects.h>

List of all members.


Public Methods

 BelowThresholdDeltaR (Atlfast::IKinematic *ref, double boundary)
 constructor taking

 BelowThresholdDeltaR (Atlfast::IKinematic &ref, double boundary)
bool operator() (const Atlfast::IKinematic *a) const
bool operator() (const Atlfast::IKinematic &a) const

Private Attributes

double m_boundary
Atlfast::IKinematic * m_ref

Detailed Description

STL generic algorithm function object.

Used to select IKinematic objects below a threshold delta R.

Definition at line 419 of file FunctionObjects.h.


Constructor & Destructor Documentation

PartitionCondition::BelowThresholdDeltaR::BelowThresholdDeltaR Atlfast::IKinematic *    ref,
double    boundary
[inline]
 

constructor taking

Definition at line 423 of file FunctionObjects.h.

References m_boundary, and m_ref.

00424       : m_boundary(boundary), m_ref(ref) {}

PartitionCondition::BelowThresholdDeltaR::BelowThresholdDeltaR Atlfast::IKinematic &    ref,
double    boundary
[inline]
 

Definition at line 426 of file FunctionObjects.h.

References m_boundary, and m_ref.

00427       : m_boundary(boundary), m_ref(&ref) {}

Member Function Documentation

bool PartitionCondition::BelowThresholdDeltaR::operator() const Atlfast::IKinematic *    a const [inline]
 

Definition at line 429 of file FunctionObjects.h.

References m_boundary, and m_ref.

Referenced by operator()().

00430       { 
00431         Phi dphi( a->phi() - m_ref->phi() ) ;
00432         
00433         double dist = 
00434           sqrt(
00435                (dphi*dphi) +
00436                (a->eta() - m_ref->eta())*(a->eta() - m_ref->eta()) 
00437                );
00438         
00439         return (dist < m_boundary) ;
00440         
00441       }

bool PartitionCondition::BelowThresholdDeltaR::operator() const Atlfast::IKinematic &    a const [inline]
 

Definition at line 444 of file FunctionObjects.h.

References operator()().

00445       { return this->operator()( &a ) ; }

Member Data Documentation

double PartitionCondition::BelowThresholdDeltaR::m_boundary [private]
 

Definition at line 448 of file FunctionObjects.h.

Referenced by BelowThresholdDeltaR(), and operator()().

Atlfast::IKinematic* PartitionCondition::BelowThresholdDeltaR::m_ref [private]
 

Definition at line 449 of file FunctionObjects.h.

Referenced by BelowThresholdDeltaR(), and operator()().


The documentation for this class was generated from the following file:
Generated on Wed Jan 15 11:00:37 2003 for AtlfastUtils by doxygen1.3-rc1