query MSn data by the attribute of 'msLevel' and get MSn raw data into a R list. Users may just use function "saveMSnRaw" to retrieve ion tree from a data file and avoid a direct Java function call.
Usage
getMSnRaw(msdata, msLevel = 2)
Arguments
msdata
msdata is a reference to a Java ArrayList. Obtained by calling getMSData Java function.
msdata=.jcall("XCMS", "Ljava/util/ArrayList;","getMSData", filename);