#include <CaloCellSelectorMinPerp.h>
Definition at line 22 of file CaloCellSelectorMinPerp.h.
◆ CaloCellSelectorMinPerp()
Trk::CaloCellSelectorMinPerp::CaloCellSelectorMinPerp |
( |
double |
coneSize | ) |
|
◆ ~CaloCellSelectorMinPerp()
Trk::CaloCellSelectorMinPerp::~CaloCellSelectorMinPerp |
( |
| ) |
|
|
default |
◆ preSelectAction()
◆ preSelectActionCells()
◆ select()
bool Trk::CaloCellSelectorMinPerp::select |
( |
const CaloCell & |
cell | ) |
const |
|
virtual |
Method to determine if a cell is to be selected or not.
- Parameters
-
- Returns
- bool
Implements Trk::ICaloCellSelector.
Definition at line 42 of file CaloCellSelectorMinPerp.cxx.
46 if (!dde)
return false;
56 float perp2 = dPos.perp2(nearestMom);
60 float totTrkLen = sqrt(dPos.mag2() -
perp2);
61 if (dPos.dot(nearestMom) < 0) { totTrkLen = -totTrkLen; }
66 for (
int i = 0;
i <= nearestIdx; ++
i) {
67 pos = intersections[
i].position();
68 totTrkLen += (
pos - oldPos).
mag();
73 if (totTrkLen < 0)
return false;
◆ m_caloExtension
◆ m_coneSize
double Trk::CaloCellSelectorMinPerp::m_coneSize |
|
private |
◆ m_meanPos
◆ m_perp2cut
double Trk::CaloCellSelectorMinPerp::m_perp2cut |
|
private |
The documentation for this class was generated from the following files:
const Trk::CaloExtension & caloExtension() const
return calo extension