1 | /*
|
---|
2 | * FragmentationChargeDensity.hpp
|
---|
3 | *
|
---|
4 | * Created on: Aug 31, 2012
|
---|
5 | * Author: heber
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef FRAGMENTATIONCHARGEDENSITY_HPP_
|
---|
9 | #define FRAGMENTATIONCHARGEDENSITY_HPP_
|
---|
10 |
|
---|
11 |
|
---|
12 | // include config.h
|
---|
13 | #ifdef HAVE_CONFIG_H
|
---|
14 | #include <config.h>
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | #include <map>
|
---|
18 | #include <vector>
|
---|
19 |
|
---|
20 | #include "JobMarket/types.hpp"
|
---|
21 |
|
---|
22 | #include "Fragmentation/SetValues/Fragment.hpp"
|
---|
23 | #include "Fragmentation/Summation/IndexSet.hpp"
|
---|
24 | #include "Jobs/MPQCData.hpp"
|
---|
25 | #include "Jobs/MPQCDataMap.hpp"
|
---|
26 | #include "Jobs/Grid/SamplingGrid.hpp"
|
---|
27 |
|
---|
28 | class KeySetsContainer;
|
---|
29 |
|
---|
30 | /** This structure is a container for the summed up charge density per level.
|
---|
31 | *
|
---|
32 | */
|
---|
33 | struct FragmentationChargeDensity
|
---|
34 | {
|
---|
35 | /** Sums up sampled charge grids contained in \a fragmentData.
|
---|
36 | *
|
---|
37 | * @param fragmentData MPQCData resulting from the jobs, each associated to a job
|
---|
38 | * @param KeySet KeySets of all (non-hydrogen) atoms
|
---|
39 | */
|
---|
40 | FragmentationChargeDensity(
|
---|
41 | const std::map<JobId_t,MPQCData> &fragmentData,
|
---|
42 | const KeySetsContainer& KeySet);
|
---|
43 |
|
---|
44 | std::vector<SamplingGrid> getFullSampledGrid();
|
---|
45 |
|
---|
46 | const Fragment &getFragment();
|
---|
47 |
|
---|
48 | //!> results per level of summed up sampled grid charge
|
---|
49 | std::vector<MPQCDataGridMap_t> Result_Grid_fused;
|
---|
50 | //!> results per level of summed up fragment positions and charges
|
---|
51 | std::vector<MPQCDataFragmentMap_t> Result_Fragment_fused;
|
---|
52 |
|
---|
53 | //!> results per IndexSet of summed up sampled grid charge
|
---|
54 | std::map<IndexSet::ptr, std::pair<MPQCDataGridMap_t, MPQCDataGridMap_t> > Result_perIndexSet_Grid;
|
---|
55 | //!> results per IndexSet of summed up fragment positions and charges
|
---|
56 | std::map<IndexSet::ptr, std::pair<MPQCDataFragmentMap_t, MPQCDataFragmentMap_t> > Result_perIndexSet_Fragment;
|
---|
57 |
|
---|
58 | private:
|
---|
59 | /** Helper function to call OrthogonalSummation.
|
---|
60 | *
|
---|
61 | * \param fragmentData map of calculated jobs
|
---|
62 | * \param KeySet container of all keysets
|
---|
63 | * \param MatrixNrLookup map with enumerated job ids
|
---|
64 | */
|
---|
65 | void sumUp(
|
---|
66 | const std::map<JobId_t,MPQCData> &fragmentData,
|
---|
67 | const KeySetsContainer &KeySet,
|
---|
68 | const std::map< JobId_t, size_t > &MatrixNrLookup);
|
---|
69 |
|
---|
70 | };
|
---|
71 |
|
---|
72 | #endif /* FRAGMENTATIONCHARGEDENSITY_HPP_ */
|
---|