votca 2024.2-dev
Loading...
Searching...
No Matches
md2qmengine.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2020 The VOTCA Development Team (http://www.votca.org)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18#pragma once
19#ifndef VOTCA_XTP_MD2QMENGINE_H
20#define VOTCA_XTP_MD2QMENGINE_H
21
22// VOTCA includes
23#include <votca/csg/topology.h>
24
25// Local VOTCA includes
26#include "logger.h"
27#include "topology.h"
28
29namespace votca {
30namespace xtp {
31
33 public:
34 Md2QmEngine(std::string mapfile) : mapfile_(mapfile) {};
35
36 Topology map(const csg::Topology& top) const;
37
38 private:
39 void CheckMappingFile(tools::Property& topology_map) const;
40 template <class T>
41 bool SameValueForMultipleEntries(const std::vector<tools::Property*>& props,
42 std::string tag) const;
43
45 const std::vector<Index>& atom_ids_map) const;
46
47 void MakeSegmentsWholePBC(Topology& top) const;
48 bool CheckMolWhole(const Topology& top, const Segment& seg) const;
49
50 std::string mapfile_;
51};
52
53} // namespace xtp
54} // namespace votca
55
56#endif // VOTCA_XTP_MD2QMENGINE_H
information about molecules
Definition molecule.h:45
topology of the whole system
Definition topology.h:81
class to manage program options with xml serialization functionality
Definition property.h:55
void CheckMappingFile(tools::Property &topology_map) const
void MakeSegmentsWholePBC(Topology &top) const
Index DetermineAtomNumOffset(const csg::Molecule *mol, const std::vector< Index > &atom_ids_map) const
bool SameValueForMultipleEntries(const std::vector< tools::Property * > &props, std::string tag) const
Topology map(const csg::Topology &top) const
Md2QmEngine(std::string mapfile)
Definition md2qmengine.h:34
bool CheckMolWhole(const Topology &top, const Segment &seg) const
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