/usr/include/libmstoolkit/Spectrum.h is in libmstoolkit-dev 77.0.0-1+b3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | #ifndef _SPECTRUM_H
#define _SPECTRUM_H
#include "MSToolkitTypes.h"
#include <vector>
#include <cstring>
#include <cstdlib>
#include <iomanip>
using namespace std;
namespace MSToolkit {
class Spectrum {
public:
//Constructors & Destructors
Spectrum();
Spectrum(char*);
Spectrum(char, unsigned int);
Spectrum(const Spectrum&);
~Spectrum();
//Operator Functions
Spectrum& operator=(const Spectrum&);
Peak_T& operator[](const int&);
//Functions
void add(Peak_T&);
void add(double,float);
void addEZState(int,double,float,float);
void addEZState(EZState&);
void addMZ(double, double mono=0);
void addZState(int,double);
void addZState(ZState&);
Peak_T& at(const int&);
Peak_T& at(const unsigned int&);
EZState& atEZ(const int&);
EZState& atEZ(const unsigned int&);
ZState& atZ(const int&);
ZState& atZ(const unsigned int&);
void clear();
void clearMZ();
void clearPeaks();
void erase(unsigned int);
void erase(unsigned int, unsigned int);
void eraseEZ(unsigned int);
void eraseEZ(unsigned int, unsigned int);
void eraseZ(unsigned int);
void eraseZ(unsigned int, unsigned int);
MSActivation getActivationMethod();
float getArea();
float getBPI();
double getBPM();
int getCentroidStatus();
int getCharge();
double getCompensationVoltage();
double getConversionA();
double getConversionB();
double getConversionC();
double getConversionD();
double getConversionE();
double getConversionI();
MSSpectrumType getFileType();
float getIonInjectionTime();
double getMonoMZ(int index=0);
double getMZ(int index=0);
bool getNativeID(char*,int);
bool getRawFilter(char*,int,bool bLock=false);
float getRTime();
float getRTimeApex();
int getScanNumber(bool second=false);
double getTIC();
int getMsLevel();
void setActivationMethod(MSActivation);
void setArea(float);
void setBPI(float);
void setBPM(double);
void setCentroidStatus(int);
void setCharge(int);
void setCompensationVoltage(double);
void setConversionA(double);
void setConversionB(double);
void setConversionC(double);
void setConversionD(double);
void setConversionE(double);
void setConversionI(double);
void setFileType(MSSpectrumType);
void setIonInjectionTime(float);
void setMZ(double, double mono=0);
void setNativeID(char*);
void setRawFilter(char*);
void setRTime(float);
void setRTimeApex(float);
void setScanNumber(int, bool second=false);
void setTIC(double);
void setMsLevel(int level);
int size();
int sizeEZ();
int sizeMZ(); //also returns size of monoMZ
int sizeZ();
void sortIntensity();
void sortIntensityRev();
void sortMZ();
void setPeaks( std::vector<Peak_T> peaks);
void sortMZRev();
//for sqlite format
void setScanID(int scanID);
int getScanID();
//const vector<Peak_T>* getPeaks();
vector<Peak_T>* getPeaks();
//void setPeaks(vector<Peak_T> peaks);
float getTotalIntensity();
//for debugging
void printMe();
protected:
//Data Members
vector<Peak_T> *vPeaks;
vector<EZState> *vEZ;
vector<ZState> *vZ;
int charge;
float rTime;
int scanNumber;
int scanNumber2;
int msLevel;
vector<double> *monoMZ;
vector<double> *mz;
MSSpectrumType fileType;
MSActivation actMethod;
int scanID; //index for sqlite
float IIT;
float BPI; //Base Peak Intensity
double compensationVoltage;
double convA;
double convB;
double convC;
double convD;
double convE;
double convI;
double TIC;
double BPM; //Base Peak Mass
float rTimeApex; //retention time of precursor apex (MS2)
float area; //summed peak areas of precursor (MS2)
char nativeID[256]; //spectrumNativeID in mzML files
char rawFilter[256]; //RAW file header line
int centroidStatus; //0=profile, 1=centroid, 2=unknown
//private:
//Functions
static int compareIntensity(const void *p1,const void *p2);
static int compareMZ(const void *p1,const void *p2);
static int compareIntensityRev(const void *p1,const void *p2);
static int compareMZRev(const void *p1,const void *p2);
};
}
#endif
|