1 |
mmeineke |
803 |
#ifndef __ALLCORR_H__ |
2 |
|
|
#define __ALLCORR_H__ |
3 |
|
|
|
4 |
|
|
#include <vector> |
5 |
|
|
|
6 |
|
|
3include "SimInfo.hpp" |
7 |
|
|
|
8 |
|
|
#include "PairCorrList.hpp" |
9 |
|
|
#include "PairCorrType.hpp" |
10 |
|
|
#include "ReadWrite.hpp" |
11 |
|
|
|
12 |
|
|
|
13 |
|
|
class AllCorr { |
14 |
|
|
|
15 |
|
|
public: |
16 |
|
|
|
17 |
|
|
AllCorr(); |
18 |
|
|
~AllCorr(); |
19 |
|
|
|
20 |
|
|
void setNbins( theNbins ); |
21 |
|
|
void setPairCorrList( vector <PairCorrList> &theList ); |
22 |
|
|
void setFrames( SimInfo* theInfoArray, int theNframes, |
23 |
|
|
DumpReader* theReader ); |
24 |
|
|
void setMaxLength( double theLength ); |
25 |
|
|
|
26 |
|
|
void initCorrelations( char* theOutPrefix, bool theIsSeparateOut, |
27 |
|
|
bool theHavePairCorrs, |
28 |
|
|
bool theHaveStaticCorrs ); |
29 |
|
|
void calcCorrelations( void ); |
30 |
|
|
|
31 |
|
|
protected: |
32 |
|
|
|
33 |
|
|
bool matchI(int i); |
34 |
|
|
bool matchJ(int j); |
35 |
|
|
|
36 |
|
|
void setFrameVolume( double theVolume ); |
37 |
|
|
void pairCorrelate( double[3] Rij, double dist, |
38 |
|
|
double[3] uHatI, double[3] uHatJ ); |
39 |
|
|
void accumulateFrame( void ); |
40 |
|
|
void writeCorrs( void ); |
41 |
|
|
|
42 |
|
|
PairCorrType **pairCorrs; |
43 |
|
|
int nPairs; |
44 |
|
|
int nBins; |
45 |
|
|
|
46 |
|
|
int nAtoms; |
47 |
|
|
SimInfo* infoArray; |
48 |
|
|
int nFrames; |
49 |
|
|
DumpReader* reader; |
50 |
|
|
double maxLength; |
51 |
|
|
|
52 |
|
|
bool haveFrames; |
53 |
|
|
bool haveLength; |
54 |
|
|
bool pairCorrSet; |
55 |
|
|
bool havePairCorrs; |
56 |
|
|
bool havestaticCorrs; |
57 |
|
|
bool isSeparateOut; |
58 |
|
|
bool haveNbins; |
59 |
|
|
|
60 |
|
|
char outPrefix[1000]; |
61 |
|
|
|
62 |
|
|
}; |
63 |
|
|
|
64 |
|
|
|
65 |
|
|
#endif |