Definition at line 59 of file LArG4GenShowerLib.cxx.
◆ CompareType
◆ stepInfoDistCompare()
| stepInfoDistCompare::stepInfoDistCompare |
( |
const CompareType | type | ) |
|
|
inlineexplicit |
◆ operator()()
Definition at line 63 of file LArG4GenShowerLib.cxx.
63 {
65 }
bool sortFunction(const ShowerLib::StepInfo *first, const ShowerLib::StepInfo *second, const CompareType type) const
◆ sortFunction()
Definition at line 69 of file LArG4GenShowerLib.cxx.
69 {
71 if (
first->position().mag2() <
second->position().mag2())
return true;
72 return false;
73 }
else if (type ==
R) {
74 if (
first->position().perp2() <
second->position().perp2())
return true;
75 return false;
76 }
else if (type ==
Z) {
77 if (
first->position().z() <
second->position().z())
return true;
78 return false;
79 }
80 return true;
81 }
◆ m_type
The documentation for this class was generated from the following file: