Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IGEdgeReweighters.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 edge reweighting
11 /// @brief collection of routines to assign different weights to IG edges
12 /// @author Florian Richter, floric@u.washington.edu, june 08
13 
14 // Unit headers
16 
17 // Package headers
18 #include <core/pose/Pose.hh>
21 
22 #include <utility/vector1.hh>
23 
24 
25 
26 namespace protocols{
27 namespace toolbox{
28 
29 using namespace core;
30 
33  pose::Pose const & pose,
34  pack::task::PackerTask const & task,
35  Size res1,
36  Size res2
37 ) const
38 {
39 
40  if( ( pose.residue( res1 ).is_ligand() && task.design_residue( res2 ) )
41  ||( pose.residue( res2 ).is_ligand() && task.design_residue( res1 ) ) ){
42  return weight_factor_;
43  }
44 
45  else return default_weight_;
46 
47 }
48 
49 /*
50 template <class T>
51 core::Real
52 ResidueGroupIGEdgeUpweighter::get_edge_reweight(
53  pose::Pose const & pose,
54  pack::task::PackerTask const & task,
55  Size res1,
56  Size res2
57 ) const
58 {
59 
60  if( (group1_.find(res1) != group1_.end()) && (group2_.find(res2) != group2_.end() )
61  ||(group2_.find(res1) != group2_.end()) && (group1_.find(res2) != group1_.end() ) ){
62  return weight_factor_;
63  }
64  else return default_weight_;
65 
66 }
67 */
68 
69 } //namespace toolbox
70 } //namespace protocols