LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ems::bDistCentMore2D Class Reference

#include "DirOfGamma.h"

Public Member Functions

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

Private Attributes

TVector2 center
 

Detailed Description

Definition at line 191 of file DirOfGamma.h.

Constructor & Destructor Documentation

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

Definition at line 193 of file DirOfGamma.h.

193 : center(c) {}

Member Function Documentation

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

Definition at line 195 of file DirOfGamma.h.

References ems::Hit2D::GetPointCm().

196  {
197  double dx = p1->GetPointCm().X() - center.X();
198  double dy = p1->GetPointCm().Y() - center.Y();
199  double b1 = dx * dx + dy * dy;
200  dx = p2->GetPointCm().X() - center.X();
201  dy = p2->GetPointCm().Y() - center.Y();
202  double b2 = dx * dx + dy * dy;
203 
204  return b1 > b2;
205  }

Member Data Documentation

TVector2 ems::bDistCentMore2D::center
private

Definition at line 208 of file DirOfGamma.h.


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