ProteoWizard
Main Page
Namespaces
Classes
Files
File List
File Members
pwiz
data
msdata
SpectrumInfo.hpp
Go to the documentation of this file.
1
//
2
// $Id: SpectrumInfo.hpp 2842 2011-07-07 22:11:07Z chambm $
3
//
4
//
5
// Original author: Darren Kessner <darren@proteowizard.org>
6
//
7
// Copyright 2008 Spielberg Family Center for Applied Proteomics
8
// Cedars-Sinai Medical Center, Los Angeles, California 90048
9
//
10
// Licensed under the Apache License, Version 2.0 (the "License");
11
// you may not use this file except in compliance with the License.
12
// You may obtain a copy of the License at
13
//
14
// http://www.apache.org/licenses/LICENSE-2.0
15
//
16
// Unless required by applicable law or agreed to in writing, software
17
// distributed under the License is distributed on an "AS IS" BASIS,
18
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
// See the License for the specific language governing permissions and
20
// limitations under the License.
21
//
22
23
24
#ifndef _SPECTRUMINFO_HPP_
25
#define _SPECTRUMINFO_HPP_
26
27
28
#include "
pwiz/utility/misc/Export.hpp
"
29
#include "
MSData.hpp
"
30
31
32
namespace
pwiz {
33
namespace
msdata {
34
35
36
/// simple structure for holding Spectrum info
37
struct
PWIZ_API_DECL
SpectrumInfo
38
{
39
/// structure for Precursor info
40
struct
PWIZ_API_DECL
PrecursorInfo
41
{
42
size_t
index
;
43
double
mz
;
44
double
intensity
;
45
double
charge
;
46
47
PrecursorInfo
() : index((size_t)-1),
mz
(0), intensity(0), charge(0) {}
48
};
49
50
size_t
index
;
51
std::string
id
;
52
int
scanNumber
;
53
CVID
massAnalyzerType
;
54
int
scanEvent
;
55
int
msLevel
;
56
bool
isZoomScan
;
57
double
retentionTime
;
// seconds
58
std::string
filterString
;
59
double
mzLow
;
60
double
mzHigh
;
61
double
basePeakMZ
;
62
double
basePeakIntensity
;
63
double
totalIonCurrent
;
64
double
thermoMonoisotopicMZ
;
65
double
ionInjectionTime
;
66
std::vector<PrecursorInfo>
precursors
;
67
size_t
dataSize
;
68
std::vector<MZIntensityPair>
data
;
69
70
SpectrumInfo
();
71
SpectrumInfo
(
const
Spectrum
& spectrum);
72
73
void
update(
const
Spectrum
& spectrum,
bool
getBinaryData =
false
);
74
void
clearBinaryData();
75
76
// some helper functions
77
std::string massAnalyzerTypeAbbreviation()
const
;
78
double
mzFromFilterString()
const
;
79
};
80
81
82
}
// namespace msdata
83
}
// namespace pwiz
84
85
86
#endif // _SPECTRUMINFO_HPP_
87
Generated on Mon Nov 26 2012 18:05:48 for ProteoWizard by
1.8.1.1