All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
ems::bDistCentLess2D Class Reference

#include <DirOfGamma.h>

Inheritance diagram for ems::bDistCentLess2D:

Public Member Functions

 bDistCentLess2D (const TVector2 &c)
 
bool operator() (Hit2D *p1, Hit2D *p2)
 

Private Attributes

TVector2 center
 

Detailed Description

Definition at line 313 of file DirOfGamma.h.

Constructor & Destructor Documentation

ems::bDistCentLess2D::bDistCentLess2D ( const TVector2 &  c)
inline

Definition at line 315 of file DirOfGamma.h.

315 : center(c) {}

Member Function Documentation

bool ems::bDistCentLess2D::operator() ( Hit2D p1,
Hit2D p2 
)
inline

Definition at line 318 of file DirOfGamma.h.

319  {
320  double dx = p1->GetPointCm().X() - center.X();
321  double dy = p1->GetPointCm().Y() - center.Y();
322  double b1 = dx * dx + dy * dy;
323  dx = p2->GetPointCm().X() - center.X();
324  dy = p2->GetPointCm().Y() - center.Y();
325  double b2 = dx * dx + dy * dy;
326 
327  return b1 < b2;
328  }
physics associatedGroupsWithLeft p1

Member Data Documentation

TVector2 ems::bDistCentLess2D::center
private

Definition at line 331 of file DirOfGamma.h.


The documentation for this class was generated from the following file: