Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CountPair1B.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 core/scoring/etable/count_pair/CountPair1BC3.cc
11 /// @brief Count pair for residue pairs connected with one bond, where the
12 /// crossover from excluding to counting atom pair interactions is at 3 bonds.
13 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
14 
15 
16 #include <core/scoring/etable/count_pair/CountPair1BC3.hh>
18 
19 namespace core {
20 namespace scoring {
21 namespace etable {
22 namespace count_pair {
23 
24 
25 /// @brief take a row from the path distances table
26 /// to retrieve the lower and upper path distances
27 /// for all atoms in each residue
28 CountPair1BC3::CountPair1BC3(
29  conformation::Residue const & res1,
30  Size const res1_connect_atom,
31  conformation::Residue const & res2,
32  Size const res2_connect_atom
33 ) :
34  parent(),
35  res1_conn_dist_( res1.path_distance( res1_connect_atom )),
36  res2_conn_dist_( res2.path_distance( res2_connect_atom ))
37 {
38 }
39 
40 CountPair1BC3::~CountPair1BC3() {}
41 
42 bool
43 CountPair1BC3::count(
44  int const at1,
45  int const at2,
46  Real & w,
47  Size & path_dist
48 ) const
49 {
50  return operator() ( at1, at2, w, path_dist );
51 }
52 
53 
54 void
55 CountPair1BC3::residue_atom_pair_energy(
56  conformation::Residue const & res1,
57  conformation::Residue const & res2,
58  etable::TableLookupEvaluator const & etable_energy,
59  EnergyMap & emap
60 ) const
61 {
62  inline_residue_atom_pair_energy( res1, res2, etable_energy, *this, emap );
63 }
64 
65 
66 void
67 CountPair1BC3::residue_atom_pair_energy_sidechain_backbone(
68  conformation::Residue const & res1,
69  conformation::Residue const & res2,
70  etable::TableLookupEvaluator const & etable_energy,
71  EnergyMap & emap
72 ) const
73 {
74  inline_residue_atom_pair_energy_sidechain_backbone( res1, res2, etable_energy, *this, emap );
75 }
76 
77 
78 void
79 CountPair1BC3::residue_atom_pair_energy_sidechain_whole(
80  conformation::Residue const & res1,
81  conformation::Residue const & res2,
82  etable::TableLookupEvaluator const & etable_energy,
83  EnergyMap & emap
84 ) const
85 {
86  inline_residue_atom_pair_energy_sidechain_whole( res1, res2, etable_energy, *this, emap );
87 }
88 
89 
90 void
91 CountPair1BC3::residue_atom_pair_energy(
92  conformation::Residue const & res1,
93  conformation::Residue const & res2,
94  etable::AnalyticEtableEvaluator const & etable_energy,
95  EnergyMap & emap
96 ) const
97 {
98  inline_residue_atom_pair_energy( res1, res2, etable_energy, *this, emap );
99 }
100 
101 
102 void
103 CountPair1BC3::residue_atom_pair_energy_sidechain_backbone(
104  conformation::Residue const & res1,
105  conformation::Residue const & res2,
106  etable::AnalyticEtableEvaluator const & etable_energy,
107  EnergyMap & emap
108 ) const
109 {
110  inline_residue_atom_pair_energy_sidechain_backbone( res1, res2, etable_energy, *this, emap );
111 }
112 
113 
114 void
115 CountPair1BC3::residue_atom_pair_energy_sidechain_whole(
116  conformation::Residue const & res1,
117  conformation::Residue const & res2,
118  etable::AnalyticEtableEvaluator const & etable_energy,
119  EnergyMap & emap
120 ) const
121 {
122  inline_residue_atom_pair_energy_sidechain_whole( res1, res2, etable_energy, *this, emap );
123 }
124 
125 
126 } // namespace count_pair
127 } // namespace etable {
128 } // namespace scoring
129 } // namespace core