17 #include <basic/options/option.hh>
18 #include <basic/options/keys/score.OptionKeys.gen.hh>
74 #include <basic/database/open.hh>
78 #include <utility/string_util.hh>
81 #include <utility/vector1.hh>
108 pairE_potential_( 0 ),
112 env_pair_potential_( 0 ),
113 smooth_env_pair_potential_( 0 ),
114 cen_hb_potential_( 0 ),
115 secondary_structure_potential_( 0 ),
118 occ_hbond_sol_database_( 0 ),
119 dna_dr_potential_( 0 ),
121 mm_lj_energy_table_( 0 ),
122 mm_torsion_library_( 0 ),
123 mm_bondangle_library_( 0 ),
125 dna_torsion_potential_( 0 ),
126 DNA_base_potential_( 0 ),
127 carbon_hbond_potential_( 0 ),
128 rna_low_resolution_potential_( 0 ),
129 rna_torsion_potential_( 0 ),
130 rna_chemical_shift_potential_( 0 ),
132 water_adduct_hbond_potential_( 0 ),
133 gen_born_potential_( 0 ),
134 fa_disulfide_potential_( 0 ),
135 cen_disulfide_potential_( 0 ),
136 disulfide_matching_potential_( 0 ),
137 membrane_potential_( 0 ),
138 membrane_fapotential_( 0 ),
142 orbitals_lookup_table_( 0 ),
143 DDP_lookup_table_(0),
166 ScoreTypes sts = creator->score_types_for_method();
167 for (
Size ii = 1; ii <= sts.size(); ++ii ) {
171 utility_exit_with_message(
"Cannot register a term to two different EnergyMethodCreators. Term " + utility::to_string( sts[ ii ] ) +
" has already been registered!" );
281 if (
atom_vdw_.count( atom_type_set_name ) == 0 ) {
284 return * (
atom_vdw_[ atom_type_set_name ] );
460 ( basic::database::full_name(
"chemical/mm_atom_type_sets/fa_standard/mm_torsion_params.txt" ),
527 using namespace basic::options;
528 using namespace basic::options::OptionKeys;
540 using namespace basic::options;
541 using namespace basic::options::OptionKeys;
548 DHO_energies.push_back(
"scoring/score_functions/orbitals/BiCubic_DHO_Hpol_scOrbH.txt");
549 DHO_energies.push_back(
"scoring/score_functions/orbitals/BiCubic_DHO_Hpol_bbOrbH.txt");
550 DHO_energies.push_back(
"scoring/score_functions/orbitals/BiCubic_DHO_Haro_scOrbH.txt");
552 AOH_energies.push_back(
"scoring/score_functions/orbitals/BiCubic_AOH_Hpol_scOrbH.txt");
553 AOH_energies.push_back(
"scoring/score_functions/orbitals/BiCubic_AOH_Hpol_bbOrbH.txt");
554 AOH_energies.push_back(
"scoring/score_functions/orbitals/BiCubic_AOH_Haro_scOrbH.txt");
556 AOO_orb_orb_energies.push_back(
"scoring/score_functions/orbitals/BiCubic_AOD_OrbOrb.txt");
557 DOO_orb_orb_energies.push_back(
"scoring/score_functions/orbitals/BiCubic_DOA_OrbOrb.txt");
560 ACO_energies.push_back(
"scoring/score_functions/orbitals/BiCubic_ACO.txt");
563 DHO_energies, AOH_energies, AOO_orb_orb_energies, DOO_orb_orb_energies,ACO_energies );
580 using namespace basic::options;
581 using namespace basic::options::OptionKeys;
594 ( basic::database::full_name(
"chemical/mm_atom_type_sets/fa_standard/par_all27_prot_na.prm" ),
607 ( basic::database::full_name(
"chemical/mm_atom_type_sets/fa_standard/par_all27_prot_na.prm" ),
625 utility_exit_with_message(
"unrecognized unfolded type: "+type );
635 assert(
etables_.count(name) == 0 );
643 ScoringManager::add_coarse_etable( std::string const &name, coarse::CoarseEtableOP etable )
645 assert( coarse_etables_.count(name) == 0);
646 coarse_etables_ [name] = etable;
673 std::string msg =
"unrecognized etable: "+table_id;
674 utility_exit_with_message( msg );
695 EtableOptions options;
696 options.lj_switch_dis2sigma = 0.91;
708 EtableOptions(), alternate_parameters ) );
714 utility_exit_with_message(
"unrecognized etable: "+table_id );
717 return (
etables_.find( table_id )->second)();
837 std::cerr <<
"Critical error in ScoringManager::energy_method().\nRequested an inactive score_type '" << score_type;
838 std::cerr <<
"' defined at position " << (
int) score_type <<
" in the ScoreType enumeration.\n";
839 std::cerr <<
"Active score types must appear before the n_score_types element ";
840 std::cerr <<
"(at position " << (
int)
n_score_types <<
") as this element marks the end of the active score types.\n";
841 std::cerr <<
"Rosetta must be recompiled after src/core/scoring/ScoreType.hh is modified to include " << score_type;
842 std::cerr <<
" as an active score type." << std::endl;
843 utility_exit_with_message(
"ERROR: Attempted to use an inactive score type" );
846 if ( score_type ==
python )
return 0;
849 utility_exit_with_message(
"Requested ScoreType " + utility::to_string( score_type ) +
" does not have a registered EnergyMethodCreator." );