Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FragmentCrmsd.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 protocols/frag_picker/scores/FragmentCrmsd.hh
11 /// @brief Object that scores a fragment by its crmsd to the native
12 /// @author Dominik Gront (dgront@chem.uw.edu.pl)
13 
14 #ifndef INCLUDED_protocols_frag_picker_scores_FragmentCrmsd_hh
15 #define INCLUDED_protocols_frag_picker_scores_FragmentCrmsd_hh
16 
17 // package headers
21 
22 // mini
23 // AUTO-REMOVED #include <protocols/toolbox/superimpose.hh>
24 
25 #include <core/types.hh>
26 
27 #include <ObjexxFCL/FArray2D.hh>
28 #include <ObjexxFCL/FArray1D.hh>
29 
30 //Auto Headers
31 #include <core/pose/Pose.fwd.hh>
32 #include <utility/vector1.fwd.hh>
33 #include <iostream>
34 
35 
36 namespace protocols {
37 namespace frag_picker {
38 namespace scores {
39 
40 using namespace ObjexxFCL;
41 
43 
44 /// @brief scores a fragment by its crmsd to the given reference structure
46 public:
47 
48  /// @brief creates a crmsd-based scoring function.
49  /// @detailed fragments will be compared to a given pose, which should have the same number of residues a the query sequence
51 
52  /// @brief creates a crmsd-based scoring function.
53  /// @detailed fragments will be compared to given coordinates, which should have the same number of residues a the query sequence
55 
56  ~FragmentCrmsd();
57 
58  void do_caching(VallChunkOP);
59  void clean_up();
61  bool cached_score(FragmentCandidateOP, FragmentScoreMapOP);
62 
63 private:
71  FArray1D_double weights_;
72 
73  void fill_CA_coords(core::pose::Pose const &, FArray2_double &, Size);
74 };
75 
76 /// @brief Maker class that produces a new FragmentCrmsd object
78 public:
79 
81  MakeFragmentScoringMethod("FragmentCrmsd") {
82  }
83 
85 };
86 
87 } // scores
88 } // frag_picker
89 } // protocols
90 
91 #endif // INCLUDED_protocols_frag_picker_scores_FragmentCrmsd_HH