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));
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) "
std::list< double > peaks_m
static OpalData * getInstance()
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of it
double binWidth_m
Bin width in mm.
PETE_TUTree< FnAbs, typename T::PETE_Expr_t > abs(const PETE_Expr< T > &l)
void append_m()
Open output file in append mode.
void addParticle(const Vector_t &R)
void checkAndAddOutputFileName(const std::string &outfn)
checks the output file names of all items to avoid duplicates
Inform & endl(Inform &inf)
T::PETE_Expr_t::PETE_Return_t min(const PETE_Expr< T > &expr, NDIndex< D > &loc)
T::PETE_Expr_t::PETE_Return_t max(const PETE_Expr< T > &expr, NDIndex< D > &loc)
std::string::iterator iterator
std::string hist_m
histogram filename with extension (.hist)
std::string fileName_m
filename with extension (.peaks)
std::vector< double > container_t
void allreduce(const T *input, T *output, int count, Op op)
std::ofstream os_m
used to write out the data
void saveASCII_m()
Write to output file.
container_t globHist_m
global histogram values
Inform & level2(Inform &inf)
PETE_TUTree< FnCeil, typename T::PETE_Expr_t > ceil(const PETE_Expr< T > &l)
std::string outputName_m
Element/probe name, for name output file.
std::ofstream hos_m
used to write out the histrogram
unsigned int nBins_m
Number of bins.
double min_m
histogram size
void open_m()
Open output file.
void close_m()
Close output file.
void evaluate(const int &turn)
bool reduce(Communicate &, InputIterator, InputIterator, OutputIterator, const ReduceOp &, bool *IncludeVal=0)