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.
|
| 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.
|
| 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.
|
| double | pathInsideCell (const CaloCell &cell, const Amg::Vector3D &entry, const Amg::Vector3D &exit) |
| | Return the % of path length crossed by the track inside a cell in Z for a ladder shaped cell.
|
◆ 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.
16 {
17 double mean_phi =
phiMean(phi_entrance, phi_exit);
19 double phi_min = mean_phi - dphi, phi_max = mean_phi + dphi;
20
23}
double phiMean(double a, double b)
static double diff(double phi1, double phi2)
simple phi1 - phi2 calculation, but result is fixed to respect range.
◆ 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.
26 {
29 if (fabs(eta_entrance - eta_exit) < 1e-6)
31
32 double etaMinTrack = std::min(eta_entrance, eta_exit);
33 double etaMaxTrack = std::max(eta_entrance, eta_exit);
34 return (std::min(etaMax, etaMaxTrack) - std::max(etaMin, etaMinTrack)) / (etaMaxTrack - etaMinTrack);
35}
◆ 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.
48 {
50}
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.
◆ 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.
38 {
39 if (fabs(z_entrance - z_exit) < 1e-6)
40 return z_entrance > zMin && z_entrance < zMax;
41
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);
45}
◆ pathInsideCell()
Return the % of path length crossed by the track inside a cell in Z for a ladder shaped cell.
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.
84 {
86 double pathCrossed = 0;
89 else if (
cell.caloDDE()->getSampling() == CaloCell_ID::TileBar1)
90 pathCrossed = 0;
91 else
93 if (pathCrossed <= 0) return 0;
94 return pathCrossed;
95}
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.
bool crossedPhi(const CaloCell &cell, double phi_entrance, double phi_exit)
Return true if the cell crossed was crossed by the track in phi.
◆ phiMean()
| double phiMean |
( |
double | a, |
|
|
double | b ) |
|
inline |