32 #include "../../exception/exceptionnotpossible.h"
52 xic_coord_sp.get()->xicSptr = std::make_shared<Xic>();
68 QObject::tr(
"XicCoord to add is of a different type"));
73 xic_coord_sp.get()->mzRange += to_add.get()->mzRange;
74 xic_coord_sp.get()->rtTarget += to_add.get()->rtTarget;
76 xic_coord_sp.get()->scanNumEnd += toadd->
scanNumEnd;
78 qDebug() <<
"xic_coord_sp.get()->scanNumBegin="
79 << xic_coord_sp.get()->scanNumBegin;
80 qDebug() <<
"xic_coord_sp.get()->scanNumEnd="
81 << xic_coord_sp.get()->scanNumEnd;
93 xic_coord_sp.get()->rtTarget *= number;
94 xic_coord_sp.get()->mzRange *= number;
96 xic_coord_sp.get()->scanNumBegin *= number;
97 xic_coord_sp.get()->scanNumEnd *= number;
110 xic_coord_sp.get()->rtTarget /= number;
111 xic_coord_sp.get()->mzRange *= (double)((
double)1 / number);
113 xic_coord_sp.get()->scanNumBegin /= number;
114 xic_coord_sp.get()->scanNumEnd /= number;
116 qDebug() <<
"xic_coord_sp.get()->scanNumBegin="
117 << xic_coord_sp.get()->scanNumBegin;
118 qDebug() <<
"xic_coord_sp.get()->scanNumEnd="
119 << xic_coord_sp.get()->scanNumEnd;
139 return QString(
"%1 begin=%2 end=%3")
std::shared_ptr< XicCoordTims > XicCoordTimsSPtr
std::shared_ptr< XicCoord > XicCoordSPtr
coordinates of the XIC to extract and the resulting XIC after extraction
virtual XicCoordSPtr multiplyBy(double number) const override
compute a new xic coord as a product by
std::size_t scanNumEnd
mobility index end
std::size_t scanNumBegin
mobility index begin
virtual QString toString() const override
get a description of the XIC coordinate in a string
virtual void reset() override
reset to zero
virtual XicCoordSPtr divideBy(double number) const override
compute a new xic coord as a division by
virtual XicCoordSPtr addition(XicCoordSPtr &to_add) const override
compute a new XIC coord as the sum of the given one
virtual XicCoordSPtr initializeAndClone() const override
intialize the XIC and make a deep copy of object
coordinates of the XIC to extract and the resulting XIC after extraction
virtual QString toString() const
get a description of the XIC coordinate in a string
XIC coordinate in a Tims MSrun.