Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TrialCounter.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/moves/TrialCounter.hh
11 /// @brief
12 /// @author Oliver Lange
13 
14 #ifndef INCLUDED_protocols_moves_TrialCounter_hh
15 #define INCLUDED_protocols_moves_TrialCounter_hh
16 
17 // Unit Headers
18 #include <protocols/moves/Mover.hh>
19 
20 // Project Headers
22 #include <core/pose/Pose.fwd.hh>
23 #include <numeric/random/WeightedSampler.hh>
24 #include <protocols/jd2/Job.fwd.hh>
25 
26 // Utility Headers
27 #include <core/types.hh>
28 #include <utility/vector1.hh>
29 
30 namespace protocols {
31 namespace moves {
32 
33 class TrialCounter {
34 public:
36  void reset();
37 
38  void count_trial( std::string const& );
39  void count_accepted( std::string const& );
41 
42  core::Size trial( std::string const& );
45 
46 
47  void show( std::ostream&, std::string line_header="", bool with_end_line = true ) const;
48  void show() const;
49  core::Size total_trials() const;
50 private:
51  std::map< std::string, int > trial_counter_;
52  std::map< std::string, int > accept_counter_;
53  std::map< std::string, core::Real > energy_drop_counter_;
54 };
55 
56 
57 }
58 }
59 
60 #endif