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

SortAttribute::DeltaEta Class Reference

STL generic algorithm function object. More...

#include <FunctionObjects.h>

List of all members.


Public Methods

 DeltaEta (Atlfast::IKinematic *reference)
 Constructor which accept the reference.

 DeltaEta (Atlfast::IKinematic &reference)
 Constructor which accept the reference.

bool operator() (const Atlfast::IKinematic *a, const Atlfast::IKinematic *b) const
 function operator

bool operator() (const Atlfast::IKinematic &a, const Atlfast::IKinematic &b) const
 forwarded function operator


Private Attributes

Atlfast::IKinematic * ref

Detailed Description

STL generic algorithm function object.

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

Definition at line 274 of file FunctionObjects.h.


Constructor & Destructor Documentation

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

Constructor which accept the reference.

Definition at line 282 of file FunctionObjects.h.

References ref.

00282 : ref(reference) {} 

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

Constructor which accept the reference.

Definition at line 284 of file FunctionObjects.h.

References ref.

00284 : ref(&reference) {} 

Member Function Documentation

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

function operator

Definition at line 288 of file FunctionObjects.h.

References ref.

Referenced by operator()().

00288                                                                         { 
00289       return( 
00290              abs(a->eta() - ref->eta()) 
00291              < 
00292              abs(b->eta() - ref->eta()) 
00293              );
00294     }

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

forwarded function operator

Definition at line 298 of file FunctionObjects.h.

References operator()().

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

Member Data Documentation

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

Definition at line 277 of file FunctionObjects.h.

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