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

#include <DirOfGamma.h>

Inheritance diagram for ems::bDistCentMore2D:

Public Member Functions

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

Private Attributes

TVector2 center
 

Detailed Description

Definition at line 292 of file DirOfGamma.h.

Constructor & Destructor Documentation

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

Definition at line 294 of file DirOfGamma.h.

294 : center(c) {}

Member Function Documentation

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

Definition at line 297 of file DirOfGamma.h.

298  {
299  double dx = p1->GetPointCm().X() - center.X();
300  double dy = p1->GetPointCm().Y() - center.Y();
301  double b1 = dx * dx + dy * dy;
302  dx = p2->GetPointCm().X() - center.X();
303  dy = p2->GetPointCm().Y() - center.Y();
304  double b2 = dx * dx + dy * dy;
305 
306  return b1 > b2;
307  }
physics associatedGroupsWithLeft p1

Member Data Documentation

TVector2 ems::bDistCentMore2D::center
private

Definition at line 310 of file DirOfGamma.h.


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