public class Precursor extends ExperimentObject
Constructor and Description |
---|
Precursor(double rt,
double mz,
java.util.ArrayList<Charge> possibleCharges)
Constructor for the precursor.
|
Precursor(double mz,
double intensity,
java.util.ArrayList<Charge> possibleCharges,
double rtMin,
double rtMax)
Cronstructor with rt window and no reference rt.
|
Precursor(double rt,
double mz,
double intensity,
java.util.ArrayList<Charge> possibleCharges)
Constructor for the precursor.
|
Precursor(double rt,
double mz,
double intensity,
java.util.ArrayList<Charge> possibleCharges,
double rtMin,
double rtMax)
Cronstructor with rt window.
|
Modifier and Type | Method and Description |
---|---|
double |
getIntensity()
Getter for the intensity.
|
double |
getMz()
Getter for the m/z.
|
java.util.ArrayList<Charge> |
getPossibleCharges()
Getter for the possible charges.
|
java.lang.String |
getPossibleChargesAsString()
Returns the possible charges as a string.
|
Precursor |
getRecalibratedPrecursor(double mzCorrection,
double rtCorrection)
Returns a recalibrated precursor.
|
double |
getRt()
Getter for the retention time.
|
double[] |
getRtWindow()
Returns an array containing the min and max of the RT window.
|
boolean |
hasRTWindow()
Returns a boolean indicating whether the rt window was implemented.
|
addUrParam, getParameterKey, getUrParam
public Precursor(double rt, double mz, java.util.ArrayList<Charge> possibleCharges)
rt
- the retention timemz
- the m/zpossibleCharges
- the possible chargespublic Precursor(double rt, double mz, double intensity, java.util.ArrayList<Charge> possibleCharges, double rtMin, double rtMax)
rt
- the retention timemz
- the m/zintensity
- possibleCharges
- the possible chargesrtMin
- the minimum of the RT windowrtMax
- the maximum of the RT windowpublic Precursor(double mz, double intensity, java.util.ArrayList<Charge> possibleCharges, double rtMin, double rtMax)
mz
- the m/zintensity
- possibleCharges
- the possible chargesrtMin
- the minimum of the RT windowrtMax
- the maximum of the RT windowpublic Precursor(double rt, double mz, double intensity, java.util.ArrayList<Charge> possibleCharges)
rt
- mz
- intensity
- possibleCharges
- public double getRt()
public boolean hasRTWindow()
public double[] getRtWindow()
public double getMz()
public double getIntensity()
public java.util.ArrayList<Charge> getPossibleCharges()
public java.lang.String getPossibleChargesAsString()
public Precursor getRecalibratedPrecursor(double mzCorrection, double rtCorrection)
mzCorrection
- the m/z correction to applyrtCorrection
- the rt correction to applyCopyright © 2013. All Rights Reserved.