36                       double max, 
double binWidth, 
bool singlemode)
 
   38    , binWidth_m(binWidth)
 
   44    , singlemode_m(singlemode)
 
   58    double radius = std::hypot(
R(0),
R(1));
 
   77    bool globFinished = 
false;
 
  131    double globPeakRadius = 0.0;
 
  132    int globRegister = 0;
 
  144        if ( globRegister > 0 )
 
  145            peaks_m.push_back(globPeakRadius / 
double(globRegister));
 
  159        int bin = 
static_cast<int>(
std::abs(*it - 
min_m ) * invBinWidth);
 
  160        if (bin < 0 || (
unsigned int)bin >= 
nBins_m) 
continue; 
 
  168        reduce(&(locHist[0]), &(locHist[0]) + locHist.size(),
 
  201    hos_m << 
"# Histogram bin counts (min, max, nbins, binsize) " 
void allreduce(const T *input, T *output, int count, Op op)
 
bool reduce(Communicate &, InputIterator, InputIterator, OutputIterator, const ReduceOp &, bool *IncludeVal=0)
 
T::PETE_Expr_t::PETE_Return_t max(const PETE_Expr< T > &expr, NDIndex< D > &loc)
 
T::PETE_Expr_t::PETE_Return_t min(const PETE_Expr< T > &expr, NDIndex< D > &loc)
 
PETE_TUTree< FnCeil, typename T::PETE_Expr_t > ceil(const PETE_Expr< T > &l)
 
PETE_TUTree< FnAbs, typename T::PETE_Expr_t > abs(const PETE_Expr< T > &l)
 
Inform & level2(Inform &inf)
 
Inform & endl(Inform &inf)
 
std::string::iterator iterator
 
void checkAndAddOutputFileName(const std::string &outfn)
checks the output file names of all items to avoid duplicates
 
static OpalData * getInstance()
 
std::vector< double > container_t
 
void open_m()
Open output file.
 
std::list< double > peaks_m
 
std::ofstream hos_m
used to write out the histrogram
 
std::ofstream os_m
used to write out the data
 
double binWidth_m
Bin width in mm.
 
container_t globHist_m
global histogram values
 
double min_m
histogram size
 
unsigned int nBins_m
Number of bins.
 
std::string outputName_m
Element/probe name, for name output file.
 
void append_m()
Open output file in append mode.
 
std::string hist_m
histogram filename with extension (.hist)
 
std::string fileName_m
filename with extension (.peaks)
 
void evaluate(const int &turn)
 
void saveASCII_m()
Write to output file.
 
void addParticle(const Vector_t &R)
 
void close_m()
Close output file.