Particle Identification and Tracking
|
Wrapper class for dealing with data from Justin's simulations. More...
#include <wrapper_i_jb_binary.h>
Public Member Functions | |
int | get_value (int &out, int ind, D_TYPE type, int frame) const |
Returns the value of the type specified from the particle selected. More... | |
float | get_value (float &out, int ind, D_TYPE type, int frame) const |
Returns the value of the type specified from the particle selected. More... | |
std::complex< float > | get_value (std::complex< float > &out, int ind, D_TYPE type, int frame) const |
Returns the value of the type specified from the particle selected. More... | |
std::set< D_TYPE > | get_data_types () const |
Returns a set of the data types. More... | |
int | get_num_entries (unsigned int frame) const |
Return the number of entries the specified frame. More... | |
int | get_num_entries () const |
Return the total number of entries in the wrapper. More... | |
int | get_num_frames () const |
Return the number of frames. More... | |
bool | contains_type (D_TYPE type) const |
Returns if the wrapper contains the specified data type. More... | |
Tuplef | get_dims () const |
Returns the dimension of each 'frame' of the data in the wrapper. More... | |
~Wrapper_i_jb_binary () | |
Wrapper_i_jb_binary () | |
bool | set_file_name (const std::string &fname) |
Sets the file name. More... | |
bool | proc_file (unsigned int N) |
reads in the binary file. More... | |
Meta data handling functions | |
const Md_store * | get_Md_store (unsigned int j) const |
Returns a pointer to plane j's meta data store. More... | |
Md_store * | get_Md_store (unsigned int j) |
Returns a pointer to plane j's meta data store. More... | |
void | set_Md_store (unsigned int j, Md_store *in) |
Sets the Md_store for plane j. More... | |
void | set_Md_store_size (unsigned int j) |
Sets the size of the md_stores_ vector. More... | |
unsigned int | get_Md_store_size () |
Gets the size of the md_stores_ vector. More... | |
void | clear_Md_store (unsigned int j) |
Deletes plane j's Md_store. More... | |
Private Attributes | |
std::string | fname_ |
path to file to read More... | |
utilities::Wrapper_i_generic * | wrapper_int_ |
pointer to Wrapper_i_generic object that deals with actual data wrangling. More... | |
Wrapper class for dealing with data from Justin's simulations.
The format is a binary file with a stream X1Y1Z1X2Y2Z2... for order million particles.
Only one 3D packing per file, but this can be split up into any number of planes for faking 3D data.
Wrapper_i_jb_binary::~Wrapper_i_jb_binary | ( | ) |
References wrapper_int_.
Wrapper_i_jb_binary::Wrapper_i_jb_binary | ( | ) |
References wrapper_int_.
|
inherited |
Deletes plane j's Md_store.
References utilities::Wrapper_in::md_stores_.
|
virtual |
Returns if the wrapper contains the specified data type.
Implements utilities::Wrapper_in.
References utilities::Wrapper_i_generic::contains_type(), and wrapper_int_.
|
virtual |
Returns a set of the data types.
Use the other version
Implements utilities::Wrapper_in.
References utilities::Wrapper_i_generic::get_data_types(), and wrapper_int_.
|
virtual |
Returns the dimension of each 'frame' of the data in the wrapper.
Implements utilities::Wrapper_in.
References utilities::Wrapper_i_generic::get_dims(), and wrapper_int_.
|
inherited |
Returns a pointer to plane j's meta data store.
Const version
References utilities::Wrapper_in::md_stores_.
Referenced by tracking::Master_box::get_Md_store(), and tracking::hash_case::init().
|
inherited |
Returns a pointer to plane j's meta data store.
Const version
References utilities::Wrapper_in::md_stores_.
|
inherited |
Gets the size of the md_stores_ vector.
References utilities::Wrapper_in::md_stores_.
|
virtual |
Return the number of entries the specified frame.
Implements utilities::Wrapper_in.
References utilities::Wrapper_i_generic::get_num_entries(), and wrapper_int_.
|
virtual |
Return the total number of entries in the wrapper.
Implements utilities::Wrapper_in.
References utilities::Wrapper_i_generic::get_num_entries(), and wrapper_int_.
|
virtual |
Return the number of frames.
Implements utilities::Wrapper_in.
References utilities::Wrapper_i_generic::get_num_frames(), and wrapper_int_.
|
virtual |
Returns the value of the type specified from the particle selected.
out | [out] the value |
ind | [in] the index of the particle |
type | [in] the D_TYPE |
frame | [in] the frame the particle is in |
Implements utilities::Wrapper_in.
References utilities::Wrapper_i_generic::get_value(), and wrapper_int_.
|
virtual |
Returns the value of the type specified from the particle selected.
out | [out] the value |
ind | [in] the index of the particle |
type | [in] the D_TYPE |
frame | [in] the frame the particle is in |
Implements utilities::Wrapper_in.
References utilities::Wrapper_i_generic::get_value(), and wrapper_int_.
|
virtual |
Returns the value of the type specified from the particle selected.
out | [out] the value |
ind | [in] the index of the particle |
type | [in] the D_TYPE |
frame | [in] the frame the particle is in |
Implements utilities::Wrapper_in.
References utilities::Wrapper_i_generic::get_value(), and wrapper_int_.
bool Wrapper_i_jb_binary::proc_file | ( | unsigned int | N) |
reads in the binary file.
There should be lots of parameters on this, but for now what I need in hard coded in.
References utilities::Wrapper_i_generic::add_float_data(), utilities::Wrapper_i_generic::close_frame(), utilities::D_XPOS, utilities::D_YPOS, utilities::Wrapper_i_generic::finalize_wrapper(), fname_, utilities::Wrapper_i_generic::open_frame(), utilities::Wrapper_i_generic::open_wrapper(), utilities::Wrapper_i_generic::set_data_type(), utilities::Wrapper_i_generic::setup(), and wrapper_int_.
Referenced by main().
bool Wrapper_i_jb_binary::set_file_name | ( | const std::string & | fname) |
|
inherited |
Sets the Md_store for plane j.
When the pointer is assigned the wrapper takes ownership of the pointer and will clean it up.
References utilities::Wrapper_in::md_stores_.
Referenced by iden::Iden::fill_wrapper(), iden::Iden::fill_wrapper_avg(), main(), utilities::Wrapper_i_hdf::priv_init(), and iden::Iden::process_frame().
|
inherited |
Sets the size of the md_stores_ vector.
References utilities::Wrapper_in::md_stores_.
Referenced by iden::Iden::fill_wrapper(), iden::Iden::fill_wrapper_avg(), main(), utilities::Wrapper_i_hdf::priv_init(), and iden::Wrapper_i_plu::Wrapper_i_plu().
|
private |
path to file to read
Referenced by proc_file(), and set_file_name().
|
private |
pointer to Wrapper_i_generic object that deals with actual data wrangling.
Referenced by contains_type(), get_data_types(), get_dims(), get_num_entries(), get_num_frames(), get_value(), proc_file(), Wrapper_i_jb_binary(), and ~Wrapper_i_jb_binary().