Go to the source code of this file.
|
double | phiMean (double a, double b) |
|
bool | crossedPhi (const CaloCell &cell, double phi_entrance, double phi_exit) |
| Return true if the cell crossed was crossed by the track in phi. More...
|
|
double | getPathLengthInEta (const CaloCell &cell, double eta_entrance, double eta_exit) |
| Return the % of path length crossed by the track inside a cell in eta. More...
|
|
double | getPathLengthInZ (double zMin, double zMax, double z_entrance, double z_exit) |
| Return the % of path length crossed by the track inside a cell in Z. More...
|
|
double | getPathLengthInZ (const CaloCell &cell, double z_entrance, double z_exit) |
| Return the % of path length crossed by the track inside a cell in Z. More...
|
|
double | pathInsideCell (const CaloCell &cell, const Amg::Vector3D &entry, const Amg::Vector3D &exit) |
| Return the % of the path crossed inside the cell, given the parameters for the extrapolation at entrance and exit of the layer. More...
|
|
◆ crossedPhi()
bool crossedPhi |
( |
const CaloCell & |
cell, |
|
|
double |
phi_entrance, |
|
|
double |
phi_exit |
|
) |
| |
|
inline |
Return true if the cell crossed was crossed by the track in phi.
Definition at line 16 of file CaloCellHelpers.h.
17 double mean_phi =
phiMean(phi_entrance, phi_exit);
19 double phi_min = mean_phi - dphi, phi_max = mean_phi + dphi;
◆ getPathLengthInEta()
double getPathLengthInEta |
( |
const CaloCell & |
cell, |
|
|
double |
eta_entrance, |
|
|
double |
eta_exit |
|
) |
| |
|
inline |
Return the % of path length crossed by the track inside a cell in eta.
Definition at line 26 of file CaloCellHelpers.h.
29 if (fabs(eta_entrance - eta_exit) < 1
e-6)
32 double etaMinTrack =
std::min(eta_entrance, eta_exit);
33 double etaMaxTrack =
std::max(eta_entrance, eta_exit);
◆ getPathLengthInZ() [1/2]
double getPathLengthInZ |
( |
const CaloCell & |
cell, |
|
|
double |
z_entrance, |
|
|
double |
z_exit |
|
) |
| |
|
inline |
Return the % of path length crossed by the track inside a cell in Z.
Definition at line 48 of file CaloCellHelpers.h.
◆ getPathLengthInZ() [2/2]
double getPathLengthInZ |
( |
double |
zMin, |
|
|
double |
zMax, |
|
|
double |
z_entrance, |
|
|
double |
z_exit |
|
) |
| |
|
inline |
Return the % of path length crossed by the track inside a cell in Z.
Definition at line 38 of file CaloCellHelpers.h.
39 if (fabs(z_entrance - z_exit) < 1
e-6)
40 return z_entrance > zMin && z_entrance < zMax;
42 double zMinTrack =
std::min(z_entrance, z_exit);
43 double zMaxTrack =
std::max(z_entrance, z_exit);
44 return (
std::min(zMax, zMaxTrack) -
std::max(zMin, zMinTrack)) / (zMaxTrack - zMinTrack);
◆ pathInsideCell()
Return the % of the path crossed inside the cell, given the parameters for the extrapolation at entrance and exit of the layer.
Definition at line 84 of file CaloCellHelpers.h.
86 double pathCrossed = 0;
93 if (pathCrossed <= 0)
return 0;
◆ phiMean()
double phiMean |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
|
inline |
bool crossedPhi(const CaloCell &cell, double phi_entrance, double phi_exit)
Return true if the cell crossed was crossed by the track in phi.
double getPathLengthInEta(const CaloCell &cell, double eta_entrance, double eta_exit)
Return the % of path length crossed by the track inside a cell in eta.
double getPathLengthInZ(double zMin, double zMax, double z_entrance, double z_exit)
Return the % of path length crossed by the track inside a cell in Z.