[27594e] | 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"
|
---|
[b8f0b25] | 23 | #include "Fragmentation/Summation/IndexSet.hpp"
|
---|
[27594e] | 24 | #include "Jobs/MPQCData.hpp"
|
---|
| 25 | #include "Jobs/MPQCDataMap.hpp"
|
---|
| 26 | #include "Jobs/Grid/SamplingGrid.hpp"
|
---|
| 27 |
|
---|
[bae7bc] | 28 | class KeySetsContainer;
|
---|
| 29 |
|
---|
[27594e] | 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
|
---|
[bae7bc] | 38 | * @param KeySet KeySets of all (non-hydrogen) atoms
|
---|
[27594e] | 39 | */
|
---|
| 40 | FragmentationChargeDensity(
|
---|
| 41 | const std::map<JobId_t,MPQCData> &fragmentData,
|
---|
[bae7bc] | 42 | const KeySetsContainer& KeySet);
|
---|
[27594e] | 43 |
|
---|
| 44 | std::vector<SamplingGrid> getFullSampledGrid();
|
---|
| 45 |
|
---|
| 46 | const Fragment &getFragment();
|
---|
| 47 |
|
---|
[b8f0b25] | 48 | //!> results per level of summed up sampled grid charge
|
---|
[27594e] | 49 | std::vector<MPQCDataGridMap_t> Result_Grid_fused;
|
---|
[b8f0b25] | 50 | //!> results per level of summed up fragment positions and charges
|
---|
[27594e] | 51 | std::vector<MPQCDataFragmentMap_t> Result_Fragment_fused;
|
---|
[b8f0b25] | 52 |
|
---|
| 53 | //!> results per IndexSet of summed up sampled grid charge
|
---|
[79398d] | 54 | std::map<IndexSet::ptr, std::pair<MPQCDataGridMap_t, MPQCDataGridMap_t> > Result_perIndexSet_Grid;
|
---|
[b8f0b25] | 55 | //!> results per IndexSet of summed up fragment positions and charges
|
---|
[79398d] | 56 | std::map<IndexSet::ptr, std::pair<MPQCDataFragmentMap_t, MPQCDataFragmentMap_t> > Result_perIndexSet_Fragment;
|
---|
[bae7bc] | 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 |
|
---|
[27594e] | 70 | };
|
---|
| 71 |
|
---|
| 72 | #endif /* FRAGMENTATIONCHARGEDENSITY_HPP_ */
|
---|