Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
moves
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
15
#include <
protocols/moves/OutputMovers.hh
>
16
17
// Rosetta Headers
18
#include <
core/pose/Pose.hh
>
// REMOVE THIS ASAP! -- this have very obviously been cut and pasted...
19
20
#include <
protocols/moves/OutputMovers.fwd.hh
>
21
22
#include <
protocols/moves/Mover.hh
>
23
#include <
protocols/moves/MonteCarlo.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
>
28
#include <
core/scoring/ScoreFunction.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
52
PDBDumpMover::PDBDumpMover
(
std::string
name_in)
53
:
Mover
(), name_(name_in), num_(0)
54
{
55
//tracer_.init(tr);
56
57
Mover::type
(
"PDBDump"
);
58
}
59
60
//destructor
61
PDBDumpMover::~PDBDumpMover
() {}
62
63
void
PDBDumpMover::apply
(
core::pose::Pose
& pose )
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
71
std::string
72
PDBDumpMover::get_name
()
const
{
73
return
"PDBDumpMover"
;
74
}
75
76
void
PDBDumpMover::name
(
std::string
name_in )
77
{
78
name_
= name_in;
79
clear
();
80
}
81
82
void
PDBDumpMover::clear
() {
num_
=0; }
83
84
//constructor
85
ProfilerMover::ProfilerMover
() :
86
Mover
()
87
{
88
Mover::type
(
"Profiler"
);
89
}
90
91
//destructor
92
ProfilerMover::~ProfilerMover
() {}
93
94
void
ProfilerMover::apply
(
core::pose::Pose
&
/*pose*/
)
95
{
96
basic::prof_show();
97
}
98
99
std::string
100
ProfilerMover::get_name
()
const
{
101
return
"ProfilerMover"
;
102
}
103
104
//constructor
105
MCShowMover::MCShowMover
(
MonteCarloOP
mc_in ) :
106
Mover
(), mc_( mc_in )
107
{
108
Mover::type
(
"MCShow"
);
109
}
110
111
//destructor
112
MCShowMover::~MCShowMover
() {}
113
114
void
MCShowMover::apply
(
core::pose::Pose
& pose )
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 );
120
for
(
core::scoring::EnergyMap::const_iterator
it=pose.
energies
().
total_energies
().
begin
(),
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
128
std::string
129
MCShowMover::get_name
()
const
{
130
return
"MCShowMover"
;
131
}
132
133
}
// moves
134
}
// protocols
Generated on Sat Jun 1 2013 12:00:29 for Rosetta 3.5 by
1.8.4