44 : mzRange(other.mzRange), rtTarget(other.rtTarget)
56 XicCoordSPtr xic_coord_sp = std::make_shared<XicCoord>(*
this);
58 xic_coord_sp.get()->xicSptr = std::make_shared<Xic>();
67 XicCoordSPtr xic_coord_sp = std::make_shared<XicCoord>(*
this);
71 xic_coord_sp.get()->rtTarget += to_add.get()->rtTarget;
73 xic_coord_sp.get()->mzRange += to_add.get()->mzRange;
81 XicCoordSPtr xic_coord_sp = std::make_shared<XicCoord>(*
this);
85 xic_coord_sp.get()->rtTarget *= number;
86 xic_coord_sp.get()->mzRange *= number;
94 XicCoordSPtr xic_coord_sp = std::make_shared<XicCoord>(*
this);
98 xic_coord_sp.get()->rtTarget /= number;
99 xic_coord_sp.get()->mzRange *= (double)((
double)1 / number);
118 return QString(
"mz=%1 rt=%2").arg(mzRange.toString()).arg(rtTarget);
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
double pappso_double
A type definition for doubles.
std::shared_ptr< XicCoord > XicCoordSPtr
coordinates of the XIC to extract and the resulting XIC after extraction
XicSPtr xicSptr
extracted xic
virtual XicCoordSPtr initializeAndClone() const
intialize the XIC and make a deep copy of object
virtual XicCoordSPtr multiplyBy(double number) const
compute a new xic coord as a product by
virtual void reset()
reset to zero
virtual XicCoordSPtr addition(XicCoordSPtr &to_add) const
compute a new XIC coord as the sum of the given one
virtual XicCoordSPtr divideBy(double number) const
compute a new xic coord as a division by
virtual const QVariant getParam(XicCoordParam param) const
get a specific XIC coordinate parameter
virtual QString toString() const
get a description of the XIC coordinate in a string