-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcharges.h
More file actions
32 lines (26 loc) · 708 Bytes
/
Copy pathcharges.h
File metadata and controls
32 lines (26 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef CHARGES_H
#define CHARGES_H
#include "input.h"
#include "groFile.h"
#include "itpFile.h"
#include <vector>
class Charges
{
public:
Charges(const Input &input,const GroFile &gro);
~Charges();
const float* getCharges() const { return charges; }
const vector<int> getCGst() const { return cgSt; }
const int getNcg() const { return nCG; }
const int* getCG() const { return cg; }
private:
int natom;
float *charges;
const string *type;
const string *res;
const int *resnum;
vector<int> cgSt; //vector of starting inds of each charge group
int *cg; //ind of cg each atom belongs to
int nCG;
};
#endif