| 305 | } |
| 306 | }; |
| 307 | struct DimInfoIM : DimInfo { |
| 308 | using DimInfo::DimInfo; // inherit C'tor |
| 309 | double getMaximum() const override |
| 310 | { |
| 311 | return exp_.getMaxMobility(); |
| 312 | } |
| 313 | double getValue(const MSSpectrum& spec) const override |
| 314 | { |
| 315 | return spec.getDriftTime(); |
| 316 | } |
| 317 | MSExperiment::ConstIterator getFirstScan(double value) const override |
| 318 | { |
| 319 | return exp_.IMBegin(value); |
| 320 | } |
| 321 | DimMapper<2>::Point mapToPoint(double value, double mz) const override |
| 322 | { |
| 323 | // there is no datastructure |
| 324 | return mapper_.map(MobilityPeak2D({value, mz}, 0)); |
| 325 | } |
| 326 | }; |
| 327 | |
| 328 | |
| 329 |
no outgoing calls
no test coverage detected