Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CutBiasClaimer.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 TopologyBroker
11 /// @brief top-class (Organizer) of the TopologyBroker mechanism
12 /// @detailed responsibilities:
13 /// @author Oliver Lange
14 
15 // Unit Headers
17 
18 // Package Headers
19 
20 // Project Headers
22 
23 // ObjexxFCL Headers
24 
25 // Utility headers
26 //#include <utility/io/izstream.hh>
27 //#include <utility/io/ozstream.hh>
28 //#include <utility/io/util.hh>
29 #include <basic/Tracer.hh>
30 
31 #include <utility/vector1.hh>
32 
33 
34 //#include <basic/options/option.hh>
35 
36 //// C++ headers
37 
38 // option key includes
39 
40 
41 static basic::Tracer tr("protocols.topo_broker",basic::t_info);
42 //static numeric::random::RandomGenerator RG(181134);
43 
44 namespace protocols {
45 namespace topology_broker {
46 
47 using namespace core;
48 
50 
52 {
53  cut_bias_.reserve( ss.total_residue() );
54  ObjexxFCL::FArray1D_float const& lf = ss.loop_fraction();
55  for ( Size i = 1; i <= ss.total_residue(); i ++ ) {
56  cut_bias_.push_back( lf( i ) );
57  }
58 }
59 
61  cut_bias_ = set;
62 }
63 
64 void
66  for ( Size i = 1; i<=cut_bias_.size() && i<=tot_cut_bias.size(); i++ ) {
67  tot_cut_bias[ i ] *= cut_bias_[ i ];
68  }
69 }
70 
71 } //topology_broker
72 } //protocols