Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ConstraintScoreCutoffFilter.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 src/protocols/simple_filters/ConstraintScoreCutoffFilter.hh
11 /// @brief header file for ConstraintScoreCutoffFitler class.
12 /// @detailed
13 /// @author Florian Richter floric@u.washington.edu
14 
15 
16 #ifndef INCLUDED_protocols_simple_filters_ConstraintScoreCutoffFilter_hh
17 #define INCLUDED_protocols_simple_filters_ConstraintScoreCutoffFilter_hh
18 
19 // Unit Headers
23 
24 // Project Headers
25 #include <core/pose/Pose.fwd.hh>
26 // AUTO-REMOVED #include <basic/options/option.hh>
27 // AUTO-REMOVED #include <basic/options/keys/OptionKeys.hh>
29 
30 
31 #include <utility/vector1.hh>
32 
33 
34 // ObjexxFCL Headers
35 
36 // Utility headers
37 
38 //// C++ headers
39 
40 namespace protocols {
41 namespace simple_filters {
42 
43 
45 
46 public:
48 
49 public:
50  /// c-tor and
53 
55  return new ConstraintScoreCutoffFilter( *this ); }
56 
58  return new ConstraintScoreCutoffFilter(); }
59 
60  virtual void report( std::ostream & ostr, core::pose::Pose const & pose ) const;
61  void parse_my_tag(
62  utility::tag::TagPtr const tag,
64  filters::Filters_map const &,
66  core::pose::Pose const &
67  );
68 
69  /// @brief Returns true if the given pose passes the filter, false otherwise.
70  /// In this case, the test is the result of the following comparison:
71  /// sc <= cutoff
72  /// Where cutoff is the cutoff set for this filter, and sc is the value of the
73  /// ScoreType from the Pose Energies object.
74  virtual
75  bool apply( core::pose::Pose const & pose ) const;
76 
77  void set_cutoff( core::Real cutoff_in ){
78  cutoff_ = cutoff_in;
79  }
80 
81  void set_cutoff( core::pose::Pose const & pose ) {
82  cutoff_ = get_score( pose );
83  }
84 
85  core::Real cutoff() const {
86  return cutoff_;
87  }
88 
91 
92  core::Real get_score( core::pose::Pose const & pose ) const;
93  // Undefined commenting out to fix PyRosetta build void apply_cst( core::pose::Pose const& pose ) const;
94 
95  virtual std::string name() const {
96  return "ConstraintScoreCutoffFilter";
97  }
98 
99 private:
103 };
104 
105 } // filters
106 } // protocols
107 
108 #endif