votca 2024.2-dev
Loading...
Searching...
No Matches
eanalyze.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_EANALYZE_H
22#define VOTCA_XTP_EANALYZE_H
23
24// Standard includes
25#include <cmath>
26#include <fstream>
27#include <numeric>
28
29// VOTCA includes
32
33// Local VOTCA includes
35#include "votca/xtp/qmstate.h"
36#include "votca/xtp/topology.h"
37
38namespace votca {
39namespace xtp {
40
41class EAnalyze final : public QMCalculator {
42 public:
43 EAnalyze() = default;
44
45 ~EAnalyze() = default;
46 bool WriteToStateFile() const { return false; }
47 std::string Identify() const { return "eanalyze"; }
48
49 protected:
50 void ParseOptions(const tools::Property &user_options);
51 bool Evaluate(Topology &top);
52
53 private:
54 void SiteHist(QMStateType state) const;
55 void PairHist(const Topology &top, QMStateType state) const;
56 void SiteCorr(const Topology &top, QMStateType state) const;
57
61 bool atomdistances_ = false;
62
63 std::vector<QMStateType> states_;
64
68
69 std::string seg_pattern_;
70 std::vector<Segment *> seg_shortlist_;
71};
72
73} // namespace xtp
74} // namespace votca
75
76#endif // VOTCA_XTP_EANALYZE_H
class to manage program options with xml serialization functionality
Definition property.h:55
double resolution_pairs_
Definition eanalyze.h:58
void SiteHist(QMStateType state) const
Definition eanalyze.cc:99
void ParseOptions(const tools::Property &user_options)
Definition eanalyze.cc:25
std::vector< Segment * > seg_shortlist_
Definition eanalyze.h:70
std::vector< QMStateType > states_
Definition eanalyze.h:63
bool WriteToStateFile() const
Definition eanalyze.h:46
bool Evaluate(Topology &top)
Definition eanalyze.cc:46
std::string Identify() const
Calculator name.
Definition eanalyze.h:47
std::string seg_pattern_
Definition eanalyze.h:69
void SiteCorr(const Topology &top, QMStateType state) const
Definition eanalyze.cc:203
void PairHist(const Topology &top, QMStateType state) const
Definition eanalyze.cc:157
double resolution_spatial_
Definition eanalyze.h:60
double resolution_sites_
Definition eanalyze.h:59
Container for segments and box and atoms.
Definition topology.h:41
base class for all analysis tools
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26