Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CanonicalSamplingMover.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
11 /// @brief
12 /// @author
13 /// @author
14 
15 #ifndef INCLUDED_protocols_canonical_sampling_CanonicalSamplingMover_HH
16 #define INCLUDED_protocols_canonical_sampling_CanonicalSamplingMover_HH
17 
18 // AUTO-REMOVED #include <protocols/canonical_sampling/CanonicalSamplingMover.fwd.hh>
19 
20 // AUTO-REMOVED #include <core/scoring/ScoreFunction.hh>
21 #include <core/pose/Pose.hh>
22 
23 // AUTO-REMOVED #include <protocols/moves/MoverContainer.hh>
25 
26 // AUTO-REMOVED #include <protocols/loops/Loop.hh>
27 // AUTO-REMOVED #include <protocols/loops/Loops.hh>
28 
30 #include <protocols/moves/Mover.hh>
32 #include <utility/vector0.hh>
33 #include <utility/vector1.hh>
34 
35 
36 
37 
38 namespace protocols {
39 namespace canonical_sampling {
40 
41 using namespace core;
42 
43 
45 
46 public:
47  static void register_options();
48 
50 
53  int ntrial);
54 
55  void add_mover(protocols::moves::MoverOP m,core::Real weight);
56 
57  std::string get_ABGEO_string( core::pose::Pose & pose, protocols::loops::Loops & loop);
58 
59  void ntrials(int ntrial);
60 
61  void set_defaults_from_cmdline();
62 
63  void set_temp(core::Real temperature);
64 
65  core::Real get_temp() {return temperature_;};
66 
67  void set_interval_pose_dump(int p_interval);
68 
69  void set_interval_data_dump(int d_interval);
70 
71  void set_scorefunction(core::scoring::ScoreFunctionOP sfxn);
72 
73  void detailed_balance(bool truefalse);
74  bool detailed_balance() const { return detailed_balance_; };
75 
76  core::Real transition_threshold() const {return transition_threshold_; };
77 
78  void use_MPI_sync_pools(bool truefalse);
79  bool use_MPI_sync_pools() const {return MPI_synchronize_pools_; };
80 
81  void use_MPI_bcast( bool truefalse );
82  bool use_MPI_bcast() const { return MPI_bcast_; };
83 
84  void use_hierarchical_clustering( bool truefalse );
85  bool use_hierarchical_clustering() const { return use_hierarchical_clustering_; };
86 
87  void output_only_cluster_transitions(bool truefalse);
88 
90 
91  virtual void apply(core::pose::Pose & pose);
92  virtual std::string get_name() const;
93 
94 private:
95 
96  core::Real periodic_range( core::Real a, core::Real x);
97 
98  void dump_xtc_format_decoy(
99  std::ostream& os,
100  core::pose::Pose const& pose,
101  loops::Loops const& loop_to_dump
102  );
103 
104 
105  void dump_decoy_or_score(
106  std::ostream& os,
107  core::pose::Pose const& pose,
108  core::Size i_trial,
109  std::string const& jobname,
110  loops::Loops const& loop_to_dump,
111  bool score_only = false
112  );
113 
114  void setup_constraints(core::pose::Pose & pose);
115 
120 
133 
134  static bool options_registered_;
137 
138 };
139 
140 }
141 }
142 
143 #endif // INCLUDED_protocols_canonical_sampling_CanonicalSamplingMover_HH