Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OutputMovers.cc
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 OutputMovers.cc
11 /// @brief File to contain classes that deal with output and pdb dumping
12 /// @detailed
13 /// @author Monica Berrondo
14 
16 
17 // Rosetta Headers
18 #include <core/pose/Pose.hh> // REMOVE THIS ASAP! -- this have very obviously been cut and pasted...
19 
21 
22 #include <protocols/moves/Mover.hh>
24 
25 #include <core/io/pdb/pose_io.hh>
26 // AUTO-REMOVED #include <core/scoring/rms_util.hh>
27 #include <core/scoring/Energies.hh>
29 
30 #include <basic/Tracer.hh>
31 #include <basic/prof.hh>
32 
33 // ObjexxFCL Headers
34 #include <ObjexxFCL/format.hh>
35 #include <ObjexxFCL/string.functions.hh>
36 
37 // C++ Headers
38 #include <map>
39 #include <string>
40 
41 #include <utility/vector1.hh>
42 
43 
44 namespace protocols {
45 namespace moves {
46 
47 using basic::T;
48 using basic::Error;
49 using basic::Warning;
50 
51 //constructor
53  : Mover(), name_(name_in), num_(0)
54 {
55  //tracer_.init(tr);
56 
57  Mover::type("PDBDump");
58 }
59 
60 //destructor
62 
64 {
65  num_+=1;
66  std::string filename ( name_+ObjexxFCL::right_string_of(num_,2,'0')+".pdb" );
67  //core::io::pdb::traced_dump_pdb( tracer_, pose, filename );
68  core::io::pdb::dump_pdb( pose, filename );
69 }
70 
73  return "PDBDumpMover";
74 }
75 
77 {
78  name_ = name_in;
79  clear();
80 }
81 
83 
84 //constructor
86  Mover()
87 {
88  Mover::type( "Profiler" );
89 }
90 
91 //destructor
93 
95 {
96  basic::prof_show();
97 }
98 
101  return "ProfilerMover";
102 }
103 
104 //constructor
106  Mover(), mc_( mc_in )
107 {
108  Mover::type( "MCShow" );
109 }
110 
111 //destructor
113 
115 {
116  using namespace ObjexxFCL::fmt;
117  mc_->show_scores();
118  mc_->score_function()( pose );
119  /// Now handled automatically. mc_->score_function().accumulate_residue_total_energies( pose );
121  it_end = pose.energies().total_energies().end(); it != it_end; ++it ) {
122  if ( *it != 0.0 ) {
123  std::cout << "total_energy " << core::scoring::ScoreType( it - pose.energies().total_energies().begin() + 1 ) << ' ' << F(12,3,*it) << std::endl;
124  }
125  }
126 }
127 
130  return "MCShowMover";
131 }
132 
133 } // moves
134 } // protocols