Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FloatingResonance.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file CrossPeakList.hh
11 /// @author Oliver Lange
12 
13 #ifndef INCLUDED_protocols_noesy_assign_FloatingResonance_hh
14 #define INCLUDED_protocols_noesy_assign_FloatingResonance_hh
15 
16 
17 // Unit Headers
20 
21 // Package Headers
24 
25 
26 // Project Headers
27 #include <core/chemical/AA.hh>
28 #include <core/types.hh>
29 #include <core/id/NamedAtomID.hh>
30 
31 // Utility headers
32 #include <utility/vector1.hh>
33 
34 //// C++ headers
35 #include <set>
36 
37 namespace protocols {
38 namespace noesy_assign {
39 /*! @detail
40 FloatingResonance combines resonanceID (label), chemical shift (freq), tolerance (error), and the assigned atom (atom, name, resid)
41 (provided accessor methods of "FloatingResonance": label, atom, resid, name, freq, error, tolerance, calibration_atom_type )
42 */
43 
44 class FloatingResonance : public Resonance {
45 
46  //typedefs
47 public:
48  typedef std::set< core::Size > FloatList;
49 private:
50  typedef Resonance Parent;
51 
52 
53  //methods
54 public:
56  FloatingResonance( Resonance const& res, FloatList const&, ResonanceList* );
58 
59  virtual core::Real pmatch( core::Real peakfreq, core::Real error, FoldResonance const& folder ) const;
60  virtual void write_to_stream( std::ostream& os ) const;
61  virtual void write_to_stream( std::ostream&, core::chemical::AA aa ) const;
62 
63 private:
64  void _write_partner_ids( std::ostream& os ) const;
67 };
68 
69 }
70 }
71 #endif