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
simple_filters
PDDFScoreFilter.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 PDDFScoreFilter.cc
11
/// @brief runs reject or accept filters on pose
12
/// @detailed
13
/// Contains currently: PDDFScoreFilter
14
///
15
///
16
/// @author Dominik Gront
17
18
// Unit Headers
19
#include <
protocols/simple_filters/PDDFScoreFilter.hh
>
20
21
// Project Headers
22
// AUTO-REMOVED #include <core/pose/Pose.hh>
23
#include <
core/types.hh
>
24
25
#include <basic/options/option.hh>
26
#include <basic/options/keys/filters.OptionKeys.gen.hh>
27
28
#include <
protocols/scoring/methods/saxs/PDDFEnergy.hh
>
29
30
// Utility headers
31
#include <basic/Tracer.hh>
32
33
#include <utility/vector1.hh>
34
35
36
37
38
//// C++ headers
39
static
basic::Tracer
tr
(
"protocols.simple_filters.PDDFScoreFilter"
);
40
41
namespace
protocols {
42
namespace
simple_filters {
43
44
PDDFScoreFilter::PDDFScoreFilter
() {
45
using namespace
basic::options;
46
using namespace
basic::options::OptionKeys;
47
48
score_
=
new
protocols::scoring::methods::saxs::PDDFEnergy
();
49
cutoff_
= basic::options::option[ basic::options::OptionKeys::filters::set_pddf_filter ]();
50
score_value_
=
cutoff_
+1;
51
}
52
53
54
bool
PDDFScoreFilter::apply
(
core::pose::Pose
const
& pose )
const
{
55
56
57
score_value_
=
score_
->evaluate_pddf_energy( pose );
58
if
(
score_value_
>
cutoff_
)
59
return
false
;
60
return
true
;
61
}
62
63
}
// simple_filters
64
}
// protocols
Generated on Sat Jun 1 2013 12:13:48 for Rosetta 3.5 by
1.8.4