Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HPool.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/canonical_sampling/mc_convergence_checks/HPool.hh
11 /// @brief hierarchical pool
12 /// @author Yuan Liu (wendao@u.washington.edu)
13 
14 #ifndef INCLUDED_protocols_canonical_sampling_mc_convergence_checks_HPool_hh
15 #define INCLUDED_protocols_canonical_sampling_mc_convergence_checks_HPool_hh
16 
20 #include <ObjexxFCL/FArray3D.hh>
21 #include <ObjexxFCL/FArray2D.hh>
22 #include <ObjexxFCL/FArray2.hh>
23 #include <core/pose/Pose.hh>
24 
26 #include <deque>
27 
28 #include <utility/vector1.hh>
29 
30 
31 namespace protocols {
32 namespace canonical_sampling {
33 namespace mc_convergence_checks {
34 
35 class HPool_RMSD : public Pool_RMSD
36 {
37 public:
38  HPool_RMSD(std::string silent_file, core::Size lv=1);
39 
40  //eval with a required radius
42  core::pose::Pose& pose,
43  core::Real resolution,
44  std::string& best_decoy,
45  core::Real& best_rmsd );
46 
49  core::Real resolution,
50  std::string& best_decoy,
51  core::Real& best_rmsd );
52 
53  //load the correspond subcluster
54  bool load_lib(const core::Size);
55  //clear
56  //void clear_lib();
57  void clear_lib(const core::Size);
58  //get_size
60  {
61  return (subpools_[nsubc]())?subpools_[nsubc]->size():0;
62  }
63 
64  //void add(core::pose::Pose const &, std::string &);
65  //void add(core::io::silent::SilentStruct const& pss, std::string &tag);
66 
67  void debug();
68 
69 private:
70  void build_pair_dis_matrix();
72  core::Real dist_square(ObjexxFCL::FArray2_double &, ObjexxFCL::FArray2_double &);
74 
75 protected:
76  //hierarchy evaluate FArray2D
79  core::Real resolution,
80  std::string& best_decoy,
81  core::Real& best_rmsd );
82 
83  //fast eval returns the index and tags at
86  std::string& best_decoy,
87  core::Real& best_rmsd,
88  core::Size index ) const;
89 
91 
92 private:
102 
103  //deque
104  std::deque< core::Size > sub_ndx_deque_;
105 };
106 
108 
109 }//mc_conv
110 }//moves
111 }//prot
112 
113 #endif
114