| 41 | 
  | 
#ifndef APPLICATIONS_STATICPROPS_RADIALDISTRFUNC_HPP | 
| 42 | 
  | 
#define APPLICATIONS_STATICPROPS_RADIALDISTRFUNC_HPP | 
| 43 | 
  | 
 | 
| 44 | 
+ | 
#include <string> | 
| 45 | 
  | 
#include <vector> | 
| 46 | 
  | 
 | 
| 47 | 
  | 
#include "selection/SelectionEvaluator.hpp" | 
| 48 | 
  | 
#include "selection/SelectionManager.hpp" | 
| 49 | 
+ | 
#include "utils/NumericConstant.hpp" | 
| 50 | 
  | 
namespace oopse { | 
| 51 | 
  | 
 | 
| 52 | 
  | 
/** | 
| 55 | 
  | 
 */ | 
| 56 | 
  | 
class RadialDistrFunc { | 
| 57 | 
  | 
    public: | 
| 58 | 
< | 
        RadialDistrFunc(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2. double len); | 
| 58 | 
> | 
        RadialDistrFunc(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2); | 
| 59 | 
  | 
 | 
| 60 | 
+ | 
        virtual ~RadialDistrFunc() {} | 
| 61 | 
+ | 
         | 
| 62 | 
  | 
        void process();         | 
| 63 | 
  | 
 | 
| 60 | 
– | 
        void setNBins(int nbins) { | 
| 61 | 
– | 
            assert(nbins > 0); | 
| 62 | 
– | 
            nbins_ = nbins; | 
| 63 | 
– | 
            delta_ = len_ / nbins_; | 
| 64 | 
– | 
        } | 
| 65 | 
– | 
 | 
| 66 | 
– | 
        int getNBins() { | 
| 67 | 
– | 
            return nbins_;  | 
| 68 | 
– | 
        } | 
| 69 | 
– | 
         | 
| 64 | 
  | 
        void setOutputName(const std::string& filename) { | 
| 65 | 
  | 
            outputFilename_ = filename; | 
| 66 | 
  | 
        } | 
| 79 | 
  | 
        virtual void preProcess() {} | 
| 80 | 
  | 
        virtual void postProcess() {} | 
| 81 | 
  | 
 | 
| 82 | 
+ | 
        int getNRealPairs() { return nRealPairs_; } | 
| 83 | 
+ | 
         | 
| 84 | 
  | 
        SimInfo* info_; | 
| 85 | 
  | 
        Snapshot* currentSnapshot_; | 
| 86 | 
< | 
        double len_; | 
| 91 | 
< | 
        int nbins_; | 
| 92 | 
< | 
        double delta_; | 
| 86 | 
> | 
 | 
| 87 | 
  | 
        std::string dumpFilename_; | 
| 88 | 
  | 
        std::string outputFilename_; | 
| 89 | 
  | 
        int step_; | 
| 90 | 
  | 
        std::string selectionScript1_; | 
| 91 | 
  | 
        std::string selectionScript2_; | 
| 92 | 
+ | 
        int nProcessed_; | 
| 93 | 
  | 
         | 
| 94 | 
  | 
    private: | 
| 95 | 
  | 
 | 
| 104 | 
  | 
        SelectionEvaluator evaluator2_; | 
| 105 | 
  | 
        SelectionManager seleMan1_; | 
| 106 | 
  | 
        SelectionManager seleMan2_; | 
| 107 | 
< | 
         | 
| 107 | 
> | 
        int nRealPairs_; | 
| 108 | 
  | 
}; | 
| 109 | 
  | 
 | 
| 110 | 
  | 
 |