| 826 | } |
| 827 | |
| 828 | double PlotCanvas::getIdentificationMZ_(const Size layer_index, const PeptideIdentification& peptide) const |
| 829 | { |
| 830 | if (getLayerFlag(layer_index, LayerDataBase::I_PEPTIDEMZ)) |
| 831 | { |
| 832 | const PeptideHit& hit = peptide.getHits().front(); |
| 833 | Int charge = hit.getCharge(); |
| 834 | return hit.getSequence().getMZ(charge); |
| 835 | } |
| 836 | else |
| 837 | { |
| 838 | return peptide.getMZ(); |
| 839 | } |
| 840 | } |
| 841 | |
| 842 | void LayerStack::addLayer(LayerDataBaseUPtr new_layer) |
| 843 | { |
no test coverage detected