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
frag_picker
scores
RDCScore_Gront.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 protocols/frag_picker/scores/RDCScore.hh
11
/// @brief
12
/// @author Dominik Gront (dgront@chem.uw.edu.pl)
13
14
#ifndef INCLUDED_protocols_frag_picker_scores_RDCScore_hh
15
#define INCLUDED_protocols_frag_picker_scores_RDCScore_hh
16
17
#include <protocols/frag_picker/scores/RDCScore.fwd.hh>
18
19
// package headers
20
// AUTO-REMOVED #include <protocols/frag_picker/FragmentCandidate.hh>
21
#include <
protocols/frag_picker/scores/CachingScoringMethod.hh
>
22
#include <
protocols/frag_picker/scores/FragmentScoreMap.fwd.hh
>
23
#include <
protocols/frag_picker/FragmentPicker.fwd.hh
>
24
#include <
protocols/frag_picker/scores/AtomBasedConstraintsScore.hh
>
25
26
// mini
27
// AUTO-REMOVED #include <core/scoring/ResidualDipolarCoupling.hh>
28
// AUTO-REMOVED #include <core/scoring/constraints/Func.hh>
29
// AUTO-REMOVED #include <core/scoring/constraints/FuncFactory.hh>
30
// AUTO-REMOVED #include <utility/vector1.hh>
31
#include <numeric/xyzVector.hh>
32
33
//Auto Headers
34
#include <
core/scoring/ResidualDipolarCoupling.fwd.hh
>
35
36
37
namespace
protocols {
38
namespace
frag_picker {
39
namespace
scores {
40
41
/// @brief Calculates a score for a fragment based on RDC experimental data
42
class
RDCScore:
public
AtomBasedConstraintsScore {
43
public
:
44
45
/// @brief Prepare the scoring method
46
RDCScore
(
Size
,
Real
,
bool
,
Size
);
47
48
/// @brief In this case caching means copying coordinates of relevant atoms from a chunk's pose
49
void
do_caching
(
VallChunkOP
);
50
51
/// @brief Erases the internal array of coordinates
52
void
clean_up
();
53
54
/// @brief Evaluate the score
55
bool
score
(
FragmentCandidateOP
,
FragmentScoreMapOP
);
56
57
private
:
58
utility::vector1<core::scoring::RDC>
rdc_data_
;
59
utility::vector1<std::string>
rdc_atoms_
;
60
utility::vector1<std::string>
&
rdc_atoms
();
61
62
void
read_RDC_file
(
std::string
const
&,
Size
);
63
utility::vector1<std::string>
rdc_atom_names_
;
64
65
//------- RDC computing stuff ---------
66
inline
Real
sqr
(
Real
x)
const
{
67
return
x * x;
68
}
69
inline
Real
iprod
(
const
Real
a[3],
const
Real
b
[3])
const
{
70
return
(a[0] * b[0] + a[1] * b[1] + a[2] * b[2]);
71
}
72
inline
void
mvmul
(
Real
a[3][3],
const
Real
src[3],
Real
dest[3])
const
{
73
dest[0] = a[0][0] * src[0] + a[0][1] * src[1] + a[0][2] * src[2];
74
dest[1] = a[1][0] * src[0] + a[1][1] * src[1] + a[1][2] * src[2];
75
dest[2] = a[2][0] * src[0] + a[2][1] * src[1] + a[2][2] * src[2];
76
}
77
78
void
jacobi
(
Real
a[5][5],
Real
d[],
Real
v[5][5],
int
*nrot);
79
int
m_inv_gen
(
Real
m[5][5],
int
n,
Real
minv[5][5]);
80
};
81
82
}
// scores
83
}
// frag_picker
84
}
// protocols
85
86
#endif
/* INCLUDED_protocols_frag_picker_scores_RDCScore_HH */
87
Generated on Sat Jun 1 2013 11:53:05 for Rosetta 3.5 by
1.8.4