34 #include "../../exception/exceptionnotpossible.h"
58 xic_coord_sp.get()->xicSptr = std::make_shared<Xic>();
74 QObject::tr(
"XicCoord to add is of a different type"));
79 xic_coord_sp.get()->mzRange += to_add.get()->mzRange;
80 xic_coord_sp.get()->rtTarget += to_add.get()->rtTarget;
82 xic_coord_sp.get()->scanNumEnd += toadd->
scanNumEnd;
84 qDebug() <<
"xic_coord_sp.get()->scanNumBegin="
85 << xic_coord_sp.get()->scanNumBegin;
86 qDebug() <<
"xic_coord_sp.get()->scanNumEnd="
87 << xic_coord_sp.get()->scanNumEnd;
99 xic_coord_sp.get()->rtTarget *= number;
100 xic_coord_sp.get()->mzRange *= number;
102 xic_coord_sp.get()->scanNumBegin *= number;
103 xic_coord_sp.get()->scanNumEnd *= number;
116 xic_coord_sp.get()->rtTarget /= number;
117 xic_coord_sp.get()->mzRange *= (double)((
double)1 / number);
119 xic_coord_sp.get()->scanNumBegin /= number;
120 xic_coord_sp.get()->scanNumEnd /= number;
122 qDebug() <<
"xic_coord_sp.get()->scanNumBegin="
123 << xic_coord_sp.get()->scanNumBegin;
124 qDebug() <<
"xic_coord_sp.get()->scanNumEnd="
125 << xic_coord_sp.get()->scanNumEnd;
145 return QString(
"%1 begin=%2 end=%3")
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
std::shared_ptr< XicCoordTims > XicCoordTimsSPtr
std::shared_ptr< XicCoord > XicCoordSPtr
coordinates of the XIC to extract and the resulting XIC after extraction
virtual XicCoordSPtr initializeAndClone() const override
intialize the XIC and make a deep copy of object
std::size_t scanNumEnd
mobility index end
virtual XicCoordSPtr addition(XicCoordSPtr &to_add) const override
compute a new XIC coord as the sum of the given one
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 multiplyBy(double number) const override
compute a new xic coord as a product by
coordinates of the XIC to extract and the resulting XIC after extraction
XicSPtr xicSptr
extracted xic
double rtTarget
the targeted retention time to extract around intended in seconds, and related to one msrun....
MzRange mzRange
the mass to extract
virtual QString toString() const
get a description of the XIC coordinate in a string
XIC coordinate in a Tims MSrun.