votca 2024.2-dev
Loading...
Searching...
No Matches
vaverage.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2020 The VOTCA Development Team
3 * (http://www.votca.org)
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License")
6 *
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20#pragma once
21#ifndef VOTCA_XTP_VAVERAGE_H
22#define VOTCA_XTP_VAVERAGE_H
23
24// Standard includes
25#include <cstdio>
26#include <string>
27#include <vector>
28
29// Local VOTCA includes
30#include "votca/xtp/eigen.h"
31#include "votca/xtp/logger.h"
34
35namespace votca {
36namespace xtp {
37
38class VAverage final : public QMCalculator {
39 public:
40 VAverage() = default;
41
42 ~VAverage() = default;
43
44 std::string Identify() const { return "vaverage"; }
45 bool WriteToStateFile() const { return false; }
46
47 protected:
48 void ParseOptions(const tools::Property& user_options);
49 bool Evaluate(Topology& top);
50
51 private:
53 std::string ratefile_;
54 std::string occfile_;
55 std::string outputfile_;
56
57 std::vector<double> ReadOccfile(std::string filename) const;
58 std::vector<Rate_Engine::PairRates> ReadRatefile(std::string filename) const;
59};
60
61} // namespace xtp
62} // namespace votca
63
64#endif // VOTCA_XTP_VAVERAGE_H
class to manage program options with xml serialization functionality
Definition property.h:55
Logger is used for thread-safe output of messages.
Definition logger.h:164
Container for segments and box and atoms.
Definition topology.h:41
std::string occfile_
Definition vaverage.h:54
bool WriteToStateFile() const
Definition vaverage.h:45
bool Evaluate(Topology &top)
Definition vaverage.cc:102
std::string outputfile_
Definition vaverage.h:55
std::string Identify() const
Calculator name.
Definition vaverage.h:44
std::string ratefile_
Definition vaverage.h:53
void ParseOptions(const tools::Property &user_options)
Definition vaverage.cc:30
std::vector< double > ReadOccfile(std::string filename) const
Definition vaverage.cc:37
std::vector< Rate_Engine::PairRates > ReadRatefile(std::string filename) const
Definition vaverage.cc:67
base class for all analysis tools
Definition basebead.h:33