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

SortAttribute::DeltaPhi Class Reference

STL generic algorithm function object. More...

#include <FunctionObjects.h>

List of all members.


Public Methods

 DeltaPhi (Atlfast::IKinematic *reference)
 DeltaPhi (Atlfast::IKinematic &reference)
bool operator() (const Atlfast::IKinematic *a, const Atlfast::IKinematic *b) const
bool operator() (const Atlfast::IKinematic &a, const Atlfast::IKinematic &b) const

Private Attributes

Atlfast::IKinematic * ref

Detailed Description

STL generic algorithm function object.

Used to sort a container of IKinematic objects or pointers in delta phi from a reference IKinematic.

Definition at line 239 of file FunctionObjects.h.


Constructor & Destructor Documentation

SortAttribute::DeltaPhi::DeltaPhi Atlfast::IKinematic *    reference [inline]
 

Definition at line 247 of file FunctionObjects.h.

References ref.

00247 : ref(reference) {} 

SortAttribute::DeltaPhi::DeltaPhi Atlfast::IKinematic &    reference [inline]
 

Definition at line 248 of file FunctionObjects.h.

References ref.

00248 : ref(&reference) {} 

Member Function Documentation

bool SortAttribute::DeltaPhi::operator() const Atlfast::IKinematic *    a,
const Atlfast::IKinematic *    b
const [inline]
 

Definition at line 252 of file FunctionObjects.h.

References ref.

Referenced by operator()().

00253       { 
00254       Phi a_dPhi( a->phi() - ref->phi() ) ;
00255       Phi b_dPhi( b->phi() - ref->phi() ) ;
00256       
00257       return  ( abs(a_dPhi) < abs(b_dPhi) ) ;
00258    }

bool SortAttribute::DeltaPhi::operator() const Atlfast::IKinematic &    a,
const Atlfast::IKinematic &    b
const [inline]
 

Definition at line 262 of file FunctionObjects.h.

References operator()().

00263       { return this->operator() ( &a, &b ) ; }

Member Data Documentation

Atlfast::IKinematic* SortAttribute::DeltaPhi::ref [private]
 

Definition at line 242 of file FunctionObjects.h.

Referenced by DeltaPhi(), 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