12 if (
a.size() != b.size())
return a.size() < b.size() ? -1 : 1;
13 for (
unsigned int i =0 ; i <
a.size() ; ++i) {
14 const double d =
a[i] - b[i];
16 return d < 0. ? -1 : 1;
22 if (
a.name() != b.name())
return a.name() < b.name() ? -1 : 1;
23 return compare(
a.parameters() , b.parameters());
26 const int rtCmp =
compare(*
a.rt() , *b.rt());
27 if (rtCmp)
return rtCmp;
28 return compare(*
a.rtRes(), *b.rtRes());
32 return a.t0 < b.t0 ? -1 : 1;
35 return a.adcCal < b.adcCal ? - 1 : 1;
37 if (
a.statusCode != b.statusCode) {
38 return a.statusCode < b.statusCode ? -1 : 1;
generic interface for a calibration function.
class which holds calibration constants per rt-region
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
int compare(const std::vector< double > &a, const std::vector< double > &b) const
MdtTubeCalibContainer::SingleTubeCalibPtr SingleTubeCalibPtr
MdtTubeCalibContainer::SingleTubeCalib SingleTubeCalib
CalibParamSorter(double tol)
bool operator()(const CalibFunc *a, const CalibFunc *b) const
GeoModel::TransientConstSharedPtr< MdtRtRelation > RtRelationPtr