votca 2024.2-dev
Loading...
Searching...
No Matches
paircalculator.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_PAIRCALCULATOR_H
22#define VOTCA_XTP_PAIRCALCULATOR_H
23
24// Local VOTCA includes
25#include "qmcalculator.h"
26
27namespace votca {
28namespace xtp {
29
31 public:
33 virtual ~PairCalculator() {};
34
35 bool EvaluateFrame(Topology *top);
36 virtual void EvaluatePair(Topology *top, QMPair *pair) {};
37};
38
40
41 // Rigidify if (a) not rigid yet (b) rigidification at all possible
42 if (!top->isRigid()) {
43 bool isRigid = top->Rigidify();
44 if (!isRigid) {
45 return 0;
46 }
47 } else {
48 std::cout << std::endl << "... ... System is already rigidified.";
49 }
50 std::cout << std::endl;
51
52 QMNBList &nblist = top->NBList();
53
55 for (pit = nblist.begin(); pit != nblist.end(); pit++) {
56
57 EvaluatePair(top, *pit);
58
59 if ((*pit)->getId() == -1) {
60
61 std::string pairId = boost::lexical_cast<std::string>((*pit)->getId());
62 std::string pdbname = "Pair" + pairId + ".pdb";
63 }
64 }
65
66 return 1;
67}
68
69} // namespace xtp
70} // namespace votca
71
72#endif // VOTCA_XTP_PAIRCALCULATOR_H
typename std::vector< QMPair * >::iterator iterator
Definition pairlist.h:40
iterator begin()
Definition pairlist.h:44
virtual void EvaluatePair(Topology *top, QMPair *pair)
bool EvaluateFrame(Topology *top)
Container for segments and box and atoms.
Definition topology.h:41
QMNBList & NBList()
Definition topology.h:70
base class for all analysis tools
Definition basebead.h:33