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