54 XicCoordSPtr xic_coord_sp = std::make_shared<XicCoord>(*
this);
56 xic_coord_sp.get()->
xicSptr = std::make_shared<Xic>();
65 XicCoordSPtr xic_coord_sp = std::make_shared<XicCoord>(*
this);
79 XicCoordSPtr xic_coord_sp = std::make_shared<XicCoord>(*
this);
83 xic_coord_sp.get()->
rtTarget *= number;
84 xic_coord_sp.get()->
mzRange *= number;
92 XicCoordSPtr xic_coord_sp = std::make_shared<XicCoord>(*
this);
96 xic_coord_sp.get()->
rtTarget /= number;
97 xic_coord_sp.get()->
mzRange *= (double)((
double)1 / number);
129 cbor_writer.append(QLatin1String(
"xic_coord"));
130 cbor_writer.startMap(2);
131 cbor_writer.append(QLatin1String(
"mz_range"));
132 cbor_writer.startArray(2);
133 cbor_writer.append(
mzRange.lower());
134 cbor_writer.append(
mzRange.upper());
135 cbor_writer.endArray();
137 cbor_writer.append(QLatin1String(
"rt"));
140 cbor_writer.endMap();
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
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 XicCoordSPtr addition(const XicCoordSPtr &to_add) const
compute a new XIC coord as the sum of the given one
double rtTarget
the targeted retention time to extract around intended in seconds, and related to one msrun....
virtual void reset()
reset to zero
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
MzRange mzRange
the mass to extract
virtual QString toString() const
get a description of the XIC coordinate in a string
virtual void writeCborStream(QCborStreamWriter &cbor_writer) const
writes xic coordinates in a cbor stream