#include <DistanceToCell.h>
Public Member Functions | |
DistanceToCell () | |
DistanceToCell (const DistanceToCell &) | |
DistanceToCell (const CaloSubdetectorGeometry *det, const DetId &cell) | |
bool | operator() (const DetId &c1, const DetId &c2) |
~DistanceToCell () | |
Private Attributes | |
const CaloSubdetectorGeometry * | det_ |
DetId | pivot_ |
GlobalPoint | pivotPosition_ |
Definition at line 11 of file DistanceToCell.h.
DistanceToCell::DistanceToCell | ( | ) |
Definition at line 6 of file DistanceToCell.cc.
:det_(0) {;}
DistanceToCell::DistanceToCell | ( | const DistanceToCell & | dist | ) |
Definition at line 8 of file DistanceToCell.cc.
References det_, pivot_, and pivotPosition_.
{ det_= dist.det_; pivotPosition_ = dist.pivotPosition_; pivot_= dist.pivot_; }
DistanceToCell::DistanceToCell | ( | const CaloSubdetectorGeometry * | det, |
const DetId & | cell | ||
) |
Definition at line 15 of file DistanceToCell.cc.
References det_, CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), pivot_, and pivotPosition_.
:det_(det),pivot_(cell) { pivotPosition_ = det_->getGeometry(pivot_)->getPosition(); }
DistanceToCell::~DistanceToCell | ( | ) | [inline] |
Definition at line 17 of file DistanceToCell.h.
{;}
Definition at line 20 of file DistanceToCell.cc.
References det_, CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), mag2(), and pivotPosition_.
{ return ((det_->getGeometry(c1)->getPosition()-pivotPosition_).mag2()< (det_->getGeometry(c2)->getPosition()-pivotPosition_).mag2()); }
const CaloSubdetectorGeometry* DistanceToCell::det_ [private] |
Definition at line 21 of file DistanceToCell.h.
Referenced by DistanceToCell(), and operator()().
DetId DistanceToCell::pivot_ [private] |
Definition at line 22 of file DistanceToCell.h.
Referenced by DistanceToCell().
GlobalPoint DistanceToCell::pivotPosition_ [private] |
Definition at line 23 of file DistanceToCell.h.
Referenced by DistanceToCell(), and operator()().