ifu Class Reference

Public Member Functions

Data Fields

Protected Member Functions

Protected Attributes

Friends


Detailed Description

This class encapsulates information about the IFU: fiber diameter and relative fiber positions


Constructor & Destructor Documentation

ifu::ifu ( bool  quiet = false  )  [inline]
ifu::ifu ( const string &  filename,
bool  quiet = false 
) [inline]

References init_from_file().

ifu::ifu ( const ifu other  )  [inline]

Member Function Documentation

void ifu::init_from_file ( const string &  filename  ) 

References init_from_stream().

Referenced by ifu(), and Projector::read_fibers().

float ifu::get_fiber_x ( const int  fnum  )  const [inline]
int ifu::get_target_unit ( const int  fnum  )  const [inline]

Returns the target unit spectrograph for a given fiber number.

References targetunit_.

Referenced by find_nearest_fiber(), Projector::find_res_elems(), Projector::find_res_elems_aperture(), Projector::find_res_elems_ell_aperture(), main(), and mkimage_list().

int ifu::get_target_fiber ( const int  fnum  )  const [inline]
int ifu::find_fiber ( const int  fnum,
const int  spec 
) const [inline]

Return IFU fiber number for target fiber on one spectrograph

References targetfiber_, and targetunit_.

Referenced by main().

float ifu::get_fiber_id ( const int  fnum  )  const [inline]

Returns the fiber id for a given fiber number.

References fid_.

Referenced by find_nearest_fiber().

float ifu::get_fiber_y ( const int  fnum  )  const [inline]
float ifu::get_fiberd ( void   )  const [inline]
float ifu::get_fibersep ( void   )  const [inline]

References fibersep_.

Referenced by mkimage().

int ifu::get_fibernum (  )  const [inline]
int ifu::get_nf_row ( const int  row  )  const [inline]
float ifu::get_ifu_min_x ( void   )  const [inline]
float ifu::get_ifu_max_x ( void   )  const [inline]
float ifu::get_ifu_min_y ( void   )  const [inline]
float ifu::get_ifu_max_y ( void   )  const [inline]
float ifu::get_ifu_dim_x ( void   )  const [inline]

References get_ifu_max_x(), and get_ifu_min_x().

Referenced by add_wcs(), and mkimage().

float ifu::get_ifu_dim_y ( void   )  const [inline]

References get_ifu_max_y(), and get_ifu_min_y().

Referenced by add_wcs(), and mkimage().

int ifu::get_num_fibers ( const int  tu  )  const [inline]

Returns total number of fibers for a specific unit spectrograph.

References targetunit_.

Referenced by main().

int ifu::get_num_fibers (  )  const [inline]

References fibernum_.

void ifu::init_from_stream ( istream &  is  )  [protected]
void ifu::post_init ( void   )  [protected]

Friends And Related Function Documentation

istream& operator>> ( istream &  os,
ifu i 
) [friend]
ostream& operator<< ( ostream &  os,
const ifu i 
) [friend]

Field Documentation

Referenced by init_from_stream(), and mkimage().

Referenced by init_from_stream(), and mkimage().

bool ifu::quiet_ [protected]

Referenced by init_from_stream().

vector<float> ifu::x_ [protected]
vector<float> ifu::y_ [protected]
vector<int> ifu::fid_ [protected]

Referenced by get_fiber_id(), and init_from_stream().

vector<int> ifu::targetunit_ [protected]
vector<int> ifu::targetfiber_ [protected]
vector<float> ifu::throughput_ [protected]

Referenced by init_from_stream(), and operator<<().

vector<int> ifu::nx_ [protected]

Referenced by get_nf_row(), and init_from_stream().

float ifu::fiberd_ [protected]
float ifu::fibersep_ [protected]
int ifu::fibernum_ [protected]

Referenced by get_num_fibers(), and init_from_stream().


Generated on 4 Nov 2015 for CURE by  doxygen 1.6.1