Particle Identification and Tracking
|
simple g(r) computation More...
#include <corr_gofr.h>
Public Member Functions | |
void | compute (const particle *, const std::vector< const particle * > &) |
takes in a particle_base object. More... | |
void | out_to_wrapper (utilities::Generic_wrapper &, const std::string &, const utilities::Md_store *) const |
outputs the result of the computation to the wrapper More... | |
float | normalize (std::vector< float > &gofr) const |
normalize g(r) to the average and area etc More... | |
void | get_bin_edges (std::vector< float > &out) const |
Returns the bin edges. More... | |
Corr_gofr (int bins, float max) | |
constructor. More... | |
void | display () const |
Display on screen using gnuplot. More... | |
float | get_max_range () const |
Return the maximum range. More... | |
void | add_plane_temperature (float temp) |
Adds the temperature for a plane. More... | |
Protected Attributes | |
float | temperature_sum_ |
The sum of the temperatures added. More... | |
unsigned int | plane_count_ |
Count of the number of planes added. More... | |
Private Attributes | |
std::vector< unsigned int > | bin_count_ |
gives the number entries in the bin More... | |
std::vector< float > | bin_edges_ |
gives the value of the bottom edge of the bin More... | |
unsigned int | n_bins_ |
number of bins More... | |
float | max_range_ |
maximum range More... | |
unsigned int | parts_added_ |
count of the number of particles added More... | |
simple g(r) computation
Corr_gofr::Corr_gofr | ( | int | bins, |
float | max | ||
) |
|
inherited |
Adds the temperature for a plane.
References tracking::Corr::plane_count_, and tracking::Corr::temperature_sum_.
Referenced by tracking::Hash_shelf::compute_corr().
takes in a particle_base object.
For correlations that need the tracking information this should throw an error or something clever like that
Implements tracking::Corr.
References bin_count_, tracking::particle_base::distancesq(), max_range_, n_bins_, and parts_added_.
void Corr_gofr::display | ( | ) | const |
Display on screen using gnuplot.
References bin_edges_, and normalize().
void Corr_gofr::get_bin_edges | ( | std::vector< float > & | out) | const |
Returns the bin edges.
References bin_edges_.
|
inlinevirtual |
Return the maximum range.
This might get promoted to Corr.
Implements tracking::Corr.
References max_range_.
float Corr_gofr::normalize | ( | std::vector< float > & | gofr) | const |
normalize g(r) to the average and area etc
References bin_count_, bin_edges_, max_range_, n_bins_, parts_added_, and pi.
Referenced by display(), and out_to_wrapper().
|
virtual |
outputs the result of the computation to the wrapper
Implements tracking::Corr.
References utilities::Generic_wrapper::add_dset(), utilities::Generic_wrapper::add_meta_data(), bin_edges_, utilities::Generic_wrapper::close_group(), utilities::Generic_wrapper::close_wrapper(), utilities::Generic_wrapper::is_open(), max_range_, n_bins_, normalize(), utilities::Generic_wrapper::open_group(), utilities::Generic_wrapper::open_wrapper(), parts_added_, tracking::Corr::plane_count_, tracking::Corr::temperature_sum_, and utilities::V_FLOAT.
Referenced by main().
|
private |
gives the number entries in the bin
Referenced by compute(), Corr_gofr(), and normalize().
|
private |
gives the value of the bottom edge of the bin
Referenced by Corr_gofr(), display(), get_bin_edges(), normalize(), and out_to_wrapper().
|
private |
maximum range
Referenced by compute(), Corr_gofr(), get_max_range(), normalize(), and out_to_wrapper().
|
private |
number of bins
Referenced by compute(), normalize(), and out_to_wrapper().
|
private |
count of the number of particles added
Referenced by compute(), normalize(), and out_to_wrapper().
|
protectedinherited |
Count of the number of planes added.
Referenced by tracking::Corr::add_plane_temperature(), out_to_wrapper(), and tracking::Corr_theta_2pt::out_to_wrapper().
|
protectedinherited |
The sum of the temperatures added.
Referenced by tracking::Corr::add_plane_temperature(), out_to_wrapper(), and tracking::Corr_theta_2pt::out_to_wrapper().