All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TargetDist.h
Go to the documentation of this file.
1 /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2  Copyright (c) 2013 The plumed team
3  (see the PEOPLE file at the root of the distribution for a list of names)
4 
5  See http://www.plumed-code.org for more information.
6 
7  This file is part of plumed, version 2.0.
8 
9  plumed is free software: you can redistribute it and/or modify
10  it under the terms of the GNU Lesser General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  (at your option) any later version.
13 
14  plumed is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public License
20  along with plumed. If not, see <http://www.gnu.org/licenses/>.
21 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
22 #ifndef __PLUMED_core_TargetDist_h
23 #define __PLUMED_core_TargetDist_h
24 
25 #include <vector>
26 #include <string>
27 
28 namespace PLMD{
29 
30 class Log;
31 class PDB;
32 class Value;
33 
34 class TargetDist {
35 private:
36  std::vector<Value*> args;
37  std::vector<double> target;
38  Log &log;
39 public:
40  TargetDist(Log& log) : log(log) {}
41  void read( const PDB& pdb, std::vector<Value*> args );
42  void read( const std::vector<double>& targ, std::vector<Value*> ar );
43  double calculate( std::vector<double>& derivs );
44 };
45 
46 }
47 
48 #endif
void read(const PDB &pdb, std::vector< Value * > args)
Definition: TargetDist.cpp:30
std::vector< double > target
Definition: TargetDist.h:37
Class containing the log stream.
Definition: Log.h:35
double calculate(std::vector< double > &derivs)
Definition: TargetDist.cpp:59
std::vector< Value * > args
Definition: TargetDist.h:36
Minimalistic pdb parser.
Definition: PDB.h:38
TargetDist(Log &log)
Definition: TargetDist.h:40