casa
$Rev:20696$

Definition of the second level (the top level) in the tree hierarchy: include the antenna baseline configuration. More...
#include <BaselinesSet.h>
Public Member Functions  
BaselinesSet ()  
BaselinesSet (vector< Tag > v_antennaIdArray, vector< int > v_feedIdArray, vector< int > v_phasedArrayList, vector< bool > v_antennaUsedArray, DataDescriptionsSet &dataDescriptionsSet)  
Definition of the second level of the tree hierarchy.  
BaselinesSet (const BaselinesSet &)  
Copy constructor.  
~BaselinesSet ()  
Destructor (use the default implementation)  
unsigned int  transferId (unsigned int na, unsigned int ndd, unsigned int nbin) 
Transfer identifier for a given node in the tree hierarchy for autocorrelation data Transfer identifier for a given node in the tree hierarchy for autocorrelation data.  
unsigned int  transferId (unsigned int na, unsigned int nfe, unsigned int ndd, unsigned int nbin) 
Transfer identifier for a given node in the tree hierarchy for autocorrelation data.  
unsigned int  transferId (unsigned int na1, unsigned int na2, unsigned int ndd, unsigned int nbin, unsigned int napc) 
Transfer identifier for a given node in the tree hierarchy for crosscorrelation data.  
unsigned int  transferId (unsigned int na1, unsigned int na2, unsigned int nfe, unsigned int ndd, unsigned int nbin, unsigned int napc) 
Transfer identifier for a given node in the tree hierarchy for crosscorrelation data.  
unsigned int  baselineIndex (Tag antennaId) 
Baseline number for a given antenna identifier.  
unsigned int  baselineIndex (Tag antennaId1, Tag antennaId2) 
Baseline number for a given pair of antenna identifiers.  
unsigned int  baselineIndex (unsigned int na1, unsigned int na2) 
Baseline number for a given pair of antenna indices in the list of antennas effectively producing data.  
unsigned int  antenna1 (unsigned int baselineIndex) 
Antenna index of the first antenna of a pair defining a baseline number.  
unsigned int  antenna2 (unsigned int baselineIndex) 
Antenna index of the second antenna of a pair defining a baseline number.  
unsigned int  feedIndex (Tag antennaId, int feedId) 
Accessor to the feed index of a feed identifier given an antenna identifier.  
Tag  getEffAntennaId (unsigned int na) 
Antenna identifier from its index in the sequence of antenna restricted to those effectively producing data.  
unsigned int  getNumAntennas () 
Number of antenna involved in the data if none would have been dropped.  
int  getFeedId (unsigned int na, unsigned int nfe) 
Accessor to the feed identifier given a feed index and an antenna index.  
unsigned int  getNumEffAntennas () 
Number of antenna actualy involved in the data.  
unsigned int  getNumBaselines () 
Get the number of antenna pairs if all the antennas in v_AntennaIdArray_ were used.  
unsigned int  getNumEffBaselines () 
Get the effective number of antenna pairs producing data.  
unsigned int  getNumPDTvalue (Enum< DataContent > e_dc, EnumSet< AxisName > es_an, bool effective) 
Get the number of primitive data values (i.e.  
BaselinesSet ()  
BaselinesSet (vector< Tag > v_antennaIdArray, vector< int > v_feedIdArray, vector< int > v_phasedArrayList, vector< bool > v_antennaUsedArray, DataDescriptionsSet &dataDescriptionsSet)  
Definition of the second level of the tree hierarchy.  
BaselinesSet (const BaselinesSet &)  
Copy constructor.  
~BaselinesSet ()  
Destructor (use the default implementation)  
unsigned int  transferId (unsigned int na, unsigned int ndd, unsigned int nbin) 
Transfer identifier for a given node in the tree hierarchy for autocorrelation data Transfer identifier for a given node in the tree hierarchy for autocorrelation data.  
unsigned int  transferId (unsigned int na, unsigned int nfe, unsigned int ndd, unsigned int nbin) 
Transfer identifier for a given node in the tree hierarchy for autocorrelation data.  
unsigned int  transferId (unsigned int na1, unsigned int na2, unsigned int ndd, unsigned int nbin, unsigned int napc) 
Transfer identifier for a given node in the tree hierarchy for crosscorrelation data.  
unsigned int  transferId (unsigned int na1, unsigned int na2, unsigned int nfe, unsigned int ndd, unsigned int nbin, unsigned int napc) 
Transfer identifier for a given node in the tree hierarchy for crosscorrelation data.  
unsigned int  baselineIndex (Tag antennaId) 
Baseline number for a given antenna identifier.  
unsigned int  baselineIndex (Tag antennaId1, Tag antennaId2) 
Baseline number for a given pair of antenna identifiers.  
unsigned int  baselineIndex (unsigned int na1, unsigned int na2) 
Baseline number for a given pair of antenna indices in the list of antennas effectively producing data.  
unsigned int  antenna1 (unsigned int baselineIndex) 
Antenna index of the first antenna of a pair defining a baseline number.  
unsigned int  antenna2 (unsigned int baselineIndex) 
Antenna index of the second antenna of a pair defining a baseline number.  
unsigned int  feedIndex (Tag antennaId, int feedId) 
Accessor to the feed index of a feed identifier given an antenna identifier.  
Tag  getEffAntennaId (unsigned int na) 
Antenna identifier from its index in the sequence of antenna restricted to those effectively producing data.  
unsigned int  getNumAntennas () 
Number of antenna involved in the data if none would have been dropped.  
int  getFeedId (unsigned int na, unsigned int nfe) 
Accessor to the feed identifier given a feed index and an antenna index.  
unsigned int  getNumEffAntennas () 
Number of antenna actualy involved in the data.  
unsigned int  getNumBaselines () 
Get the number of antenna pairs if all the antennas in v_AntennaIdArray_ were used.  
unsigned int  getNumEffBaselines () 
Get the effective number of antenna pairs producing data.  
unsigned int  getNumPDTvalue (Enum< DataContent > e_dc, EnumSet< AxisName > es_an, bool effective) 
Get the number of primitive data values (i.e.  
Private Attributes  
vector< Tag >  v_AntennaIdArray_ 
Input array set of antenna identifiers (size numAntennas_)  
vector< int >  v_FeedIdArray_ 
Input array list of feed identifiers (size numFeed*numAntennas_)  
vector< int >  v_PhasedArrayList_ 
Input phasedArray list (not yet implemented)  
unsigned int  numFeeds_ 
Input number of feeds.  
unsigned int  numAntennas_ 
Input number of antennas.  
unsigned int  numEffAntennas_ 
Effective number of antennas with data.  
unsigned int  numBaselines_ 
number of antenna pairs  
unsigned int  numEffBaselines_ 
Effective number of antenna pairs.  
vector< Tag >  v_effAntennaIdArray_ 
Effective array of antenna identifiers. 
Definition of the second level (the top level) in the tree hierarchy: include the antenna baseline configuration.
Definition at line 17 of file BaselinesSet.h.
sdmbin::BaselinesSet::BaselinesSet  (  vector< Tag >  v_antennaIdArray, 
vector< int >  v_feedIdArray,  
vector< int >  v_phasedArrayList,  
vector< bool >  v_antennaUsedArray,  
DataDescriptionsSet &  dataDescriptionsSet  
) 
Definition of the second level of the tree hierarchy.
v_antennaIdArray  Array of antenna identifiers 
v_feedIdArray  Array of feed identifiers 
v_phasedArrayList  Placeholder, not yet implemented 
v_antennaUsedArray  Array to tell in the antennaIdArray which antenna have been actually used for the data being stored. v_antennaUsedArray and v_antennaIdArray must have the same size. 
dataDescriptionsSet  a dataDescriptionsSet object (i.e. the lower levels of the hierarchy 
sdmbin::BaselinesSet::BaselinesSet  (  const BaselinesSet &  ) 
Copy constructor.
Destructor (use the default implementation)
sdmbin::BaselinesSet::BaselinesSet  (  vector< Tag >  v_antennaIdArray, 
vector< int >  v_feedIdArray,  
vector< int >  v_phasedArrayList,  
vector< bool >  v_antennaUsedArray,  
DataDescriptionsSet &  dataDescriptionsSet  
) 
Definition of the second level of the tree hierarchy.
v_antennaIdArray  Array of antenna identifiers 
v_feedIdArray  Array of feed identifiers 
v_phasedArrayList  Placeholder, not yet implemented 
v_antennaUsedArray  Array to tell in the antennaIdArray which antenna have been actually used for the data being stored. v_antennaUsedArray and v_antennaIdArray must have the same size. 
dataDescriptionsSet  a dataDescriptionsSet object (i.e. the lower levels of the hierarchy 
sdmbin::BaselinesSet::BaselinesSet  (  const BaselinesSet &  ) 
Copy constructor.
Destructor (use the default implementation)
unsigned int sdmbin::BaselinesSet::antenna1  (  unsigned int  baselineIndex  ) 
Antenna index of the first antenna of a pair defining a baseline number.
baselineIndex  A baseline number (zerobased) 
baselineIndex  not zerobased 
Error  if there is no such baselineIndex in the configuration. 
unsigned int sdmbin::BaselinesSet::antenna1  (  unsigned int  baselineIndex  ) 
Antenna index of the first antenna of a pair defining a baseline number.
baselineIndex  A baseline number (zerobased) 
baselineIndex  not zerobased 
Error  if there is no such baselineIndex in the configuration. 
unsigned int sdmbin::BaselinesSet::antenna2  (  unsigned int  baselineIndex  ) 
Antenna index of the second antenna of a pair defining a baseline number.
baselineIndex  A baseline number (onebased) 
baselineIndex  not onebased 
Error  if there is no such baselineIndex in the configuration. 
unsigned int sdmbin::BaselinesSet::antenna2  (  unsigned int  baselineIndex  ) 
Antenna index of the second antenna of a pair defining a baseline number.
baselineIndex  A baseline number (onebased) 
baselineIndex  not onebased 
Error  if there is no such baselineIndex in the configuration. 
unsigned int sdmbin::BaselinesSet::baselineIndex  (  Tag  antennaId  ) 
Baseline number for a given antenna identifier.
This number is equal to i+1 where i is the antenna index in the list of antennas effectively producing data. In this context this is the 'zerobaseline' number. This number never exceed the number of effectively used antennas (given by the method getNumEffAntennas()).
antennaId  Antenna identifier 
antennaId  does not correspond to any of the antenna effectively producing data. 
Error  if there is no antenna effectively producing data with this antennaId. 
Referenced by transferId().
unsigned int sdmbin::BaselinesSet::baselineIndex  (  Tag  antennaId  ) 
Baseline number for a given antenna identifier.
This number is equal to i+1 where i is the antenna index in the list of antennas effectively producing data. In this context this is the 'zerobaseline' number. This number never exceed the number of effectively used antennas (given by the method getNumEffAntennas()).
antennaId  Antenna identifier 
antennaId  does not correspond to any of the antenna effectively producing data. 
Error  if there is no antenna effectively producing data with this antennaId. 
unsigned int sdmbin::BaselinesSet::baselineIndex  (  Tag  antennaId1, 
Tag  antennaId2  
) 
Baseline number for a given pair of antenna identifiers.
antennaId1  Antenna identifier of one of the antenna in a pair of a nonzero baseline 
antennaId1  does not correspond to any of the antenna effectively producing data. 
antennaId2  Antenna identifier of the other antenna in a pair to define the nonzero baseline 
antennaId2  does not correspond to any of the antenna effectively producing data. 
Error  if antennaId1 or (and) antennaId2 is (are) not associated to an antenna producing effectively data. 
unsigned int sdmbin::BaselinesSet::baselineIndex  (  Tag  antennaId1, 
Tag  antennaId2  
) 
Baseline number for a given pair of antenna identifiers.
antennaId1  Antenna identifier of one of the antenna in a pair of a nonzero baseline 
antennaId1  does not correspond to any of the antenna effectively producing data. 
antennaId2  Antenna identifier of the other antenna in a pair to define the nonzero baseline 
antennaId2  does not correspond to any of the antenna effectively producing data. 
Error  if antennaId1 or (and) antennaId2 is (are) not associated to an antenna producing effectively data. 
unsigned int sdmbin::BaselinesSet::baselineIndex  (  unsigned int  na1, 
unsigned int  na2  
) 
Baseline number for a given pair of antenna indices in the list of antennas effectively producing data.
na1  index (zerobased) of antenna 1 
na1  exceeds the maximum limit imposed by the number of antennas effectively producing data 
na2  index (zerobased) of antenna 2 
na2  exceeds the maximum limit imposed by the number of antennas effectively producing data 
Error  this methods returns 0 in lax mode if na1 or na2 exceeds this maximum limit 
unsigned int sdmbin::BaselinesSet::baselineIndex  (  unsigned int  na1, 
unsigned int  na2  
)  [inline] 
Baseline number for a given pair of antenna indices in the list of antennas effectively producing data.
na1  index (zerobased) of antenna 1 
na1  exceeds the maximum limit imposed by the number of antennas effectively producing data 
na2  index (zerobased) of antenna 2 
na2  exceeds the maximum limit imposed by the number of antennas effectively producing data 
Error  this methods returns 0 in lax mode if na1 or na2 exceeds this maximum limit 
Definition at line 300 of file BaselinesSet.h.
References casa::max(), and casa::min().
unsigned int sdmbin::BaselinesSet::feedIndex  (  Tag  antennaId, 
int  feedId  
) 
Accessor to the feed index of a feed identifier given an antenna identifier.
antennaId  Antenna identifier of an antenna 
feedId  Feed identifier 
Error 

unsigned int sdmbin::BaselinesSet::feedIndex  (  Tag  antennaId, 
int  feedId  
) 
Accessor to the feed index of a feed identifier given an antenna identifier.
antennaId  Antenna identifier of an antenna 
feedId  Feed identifier 
Error 

Tag sdmbin::BaselinesSet::getEffAntennaId  (  unsigned int  na  ) 
Antenna identifier from its index in the sequence of antenna restricted to those effectively producing data.
na  The antenna index in the list of antennas effectively producing data 
na  exceeds 
Tag sdmbin::BaselinesSet::getEffAntennaId  (  unsigned int  na  ) 
Antenna identifier from its index in the sequence of antenna restricted to those effectively producing data.
na  The antenna index in the list of antennas effectively producing data 
na  exceeds 
int sdmbin::BaselinesSet::getFeedId  (  unsigned int  na, 
unsigned int  nfe  
) 
Accessor to the feed identifier given a feed index and an antenna index.
na  The antenna index in the list of antennas effectively producing data 
na  exceeds 
nfe  The feed index 
nfe  exceeds the upper limit considering the number of feeds used in the configuration. 
int sdmbin::BaselinesSet::getFeedId  (  unsigned int  na, 
unsigned int  nfe  
) 
Accessor to the feed identifier given a feed index and an antenna index.
na  The antenna index in the list of antennas effectively producing data 
na  exceeds 
nfe  The feed index 
nfe  exceeds the upper limit considering the number of feeds used in the configuration. 
unsigned int sdmbin::BaselinesSet::getNumAntennas  (  ) 
Number of antenna involved in the data if none would have been dropped.
unsigned int sdmbin::BaselinesSet::getNumAntennas  (  ) 
Number of antenna involved in the data if none would have been dropped.
unsigned int sdmbin::BaselinesSet::getNumBaselines  (  ) 
Get the number of antenna pairs if all the antennas in v_AntennaIdArray_ were used.
unsigned int sdmbin::BaselinesSet::getNumBaselines  (  ) 
Get the number of antenna pairs if all the antennas in v_AntennaIdArray_ were used.
unsigned int sdmbin::BaselinesSet::getNumEffAntennas  (  ) 
Number of antenna actualy involved in the data.
See the BaselineFlagsMetadata class for details to define or find when a given antenna produce or not data.
unsigned int sdmbin::BaselinesSet::getNumEffAntennas  (  ) 
Number of antenna actualy involved in the data.
See the BaselineFlagsMetadata class for details to define or find when a given antenna produce or not data.
unsigned int sdmbin::BaselinesSet::getNumEffBaselines  (  ) 
Get the effective number of antenna pairs producing data.
unsigned int sdmbin::BaselinesSet::getNumEffBaselines  (  ) 
Get the effective number of antenna pairs producing data.
unsigned int sdmbin::BaselinesSet::getNumPDTvalue  (  Enum< DataContent >  e_dc, 
EnumSet< AxisName >  es_an,  
bool  effective  
) 
Get the number of primitive data values (i.e.
when a complex number counts for two values) for a block of data.
e_dc  the nature of the data content 
es_an  the sequence of axes associated to the structure for this block of data 
effective  a boolean to tell if one consider only the antennas which actualy produce data or all those scheduled to do the observations. 
unsigned int sdmbin::BaselinesSet::getNumPDTvalue  (  Enum< DataContent >  e_dc, 
EnumSet< AxisName >  es_an,  
bool  effective  
) 
Get the number of primitive data values (i.e.
when a complex number counts for two values) for a block of data.
e_dc  the nature of the data content 
es_an  the sequence of axes associated to the structure for this block of data 
effective  a boolean to tell if one consider only the antennas which actualy produce data or all those scheduled to do the observations. 
unsigned int sdmbin::BaselinesSet::transferId  (  unsigned int  na, 
unsigned int  ndd,  
unsigned int  nbin  
) 
Transfer identifier for a given node in the tree hierarchy for autocorrelation data Transfer identifier for a given node in the tree hierarchy for autocorrelation data.
na  Index of the antenna 
ndd  Index of the dataDescription 
nbin  Index for the step in a switchCycle (nbin=0 if no switchCycle mode used) 
unsigned int sdmbin::BaselinesSet::transferId  (  unsigned int  na, 
unsigned int  ndd,  
unsigned int  nbin  
) 
Transfer identifier for a given node in the tree hierarchy for autocorrelation data Transfer identifier for a given node in the tree hierarchy for autocorrelation data.
na  Index of the antenna 
ndd  Index of the dataDescription 
nbin  Index for the step in a switchCycle (nbin=0 if no switchCycle mode used) 
unsigned int sdmbin::BaselinesSet::transferId  (  unsigned int  na, 
unsigned int  nfe,  
unsigned int  ndd,  
unsigned int  nbin  
) 
Transfer identifier for a given node in the tree hierarchy for autocorrelation data.
na  Index of the antenna 
nfe  Index of the feed (required when using FPAs) 
ndd  Index of the dataDescription 
nbin  Index for the step in a switchCycle (nbin=0 if no switchCycle mode used) 
unsigned int sdmbin::BaselinesSet::transferId  (  unsigned int  na, 
unsigned int  nfe,  
unsigned int  ndd,  
unsigned int  nbin  
) 
Transfer identifier for a given node in the tree hierarchy for autocorrelation data.
na  Index of the antenna 
nfe  Index of the feed (required when using FPAs) 
ndd  Index of the dataDescription 
nbin  Index for the step in a switchCycle (nbin=0 if no switchCycle mode used) 
unsigned int sdmbin::BaselinesSet::transferId  (  unsigned int  na1, 
unsigned int  na2,  
unsigned int  ndd,  
unsigned int  nbin,  
unsigned int  napc  
) 
Transfer identifier for a given node in the tree hierarchy for crosscorrelation data.
na1  Index of the antenna 1 
na2  Index of the antenna 2 
ndd  Index of the dataDescription 
nbin  index for the step in a switchCycle (nbin=0 if no switchCycle mode used) 
unsigned int sdmbin::BaselinesSet::transferId  (  unsigned int  na1, 
unsigned int  na2,  
unsigned int  ndd,  
unsigned int  nbin,  
unsigned int  napc  
) 
Transfer identifier for a given node in the tree hierarchy for crosscorrelation data.
na1  Index of the antenna 1 
na2  Index of the antenna 2 
ndd  Index of the dataDescription 
nbin  index for the step in a switchCycle (nbin=0 if no switchCycle mode used) 
unsigned int sdmbin::BaselinesSet::transferId  (  unsigned int  na1, 
unsigned int  na2,  
unsigned int  nfe,  
unsigned int  ndd,  
unsigned int  nbin,  
unsigned int  napc  
)  [inline] 
Transfer identifier for a given node in the tree hierarchy for crosscorrelation data.
na1  Index of the antenna 1 
na2  Index of the antenna 2 
nfe  Index of the feed (required when using FPAs) 
ndd  Index of the dataDescription 
nbin  Index for the step in a switchCycle (0nbin=0 if no switchCycle mode used) 
Definition at line 276 of file BaselinesSet.h.
References baselineIndex(), sdmbin::DataDescriptionsSet::numApc_, sdmbin::DataDescriptionsSet::numBin(), numFeeds_, sdmbin::DataDescriptionsSet::sumCrossSize_, sdmbin::DataDescriptionsSet::v_crossSize_, and sdmbin::DataDescriptionsSet::v_cumulCrossSize_.
unsigned int sdmbin::BaselinesSet::transferId  (  unsigned int  na1, 
unsigned int  na2,  
unsigned int  nfe,  
unsigned int  ndd,  
unsigned int  nbin,  
unsigned int  napc  
) 
Transfer identifier for a given node in the tree hierarchy for crosscorrelation data.
na1  Index of the antenna 1 
na2  Index of the antenna 2 
nfe  Index of the feed (required when using FPAs) 
ndd  Index of the dataDescription 
nbin  Index for the step in a switchCycle (0nbin=0 if no switchCycle mode used) 
unsigned int sdmbin::BaselinesSet::numAntennas_ [private] 
Input number of antennas.
Definition at line 267 of file BaselinesSet.h.
unsigned int sdmbin::BaselinesSet::numBaselines_ [private] 
number of antenna pairs
Definition at line 269 of file BaselinesSet.h.
unsigned int sdmbin::BaselinesSet::numEffAntennas_ [private] 
Effective number of antennas with data.
Definition at line 268 of file BaselinesSet.h.
unsigned int sdmbin::BaselinesSet::numEffBaselines_ [private] 
Effective number of antenna pairs.
Definition at line 270 of file BaselinesSet.h.
unsigned int sdmbin::BaselinesSet::numFeeds_ [private] 
vector< Tag > sdmbin::BaselinesSet::v_AntennaIdArray_ [private] 
Input array set of antenna identifiers (size numAntennas_)
Definition at line 263 of file BaselinesSet.h.
vector< Tag > sdmbin::BaselinesSet::v_effAntennaIdArray_ [private] 
Effective array of antenna identifiers.
Definition at line 271 of file BaselinesSet.h.
vector< int > sdmbin::BaselinesSet::v_FeedIdArray_ [private] 
Input array list of feed identifiers (size numFeed*numAntennas_)
Definition at line 264 of file BaselinesSet.h.
vector< int > sdmbin::BaselinesSet::v_PhasedArrayList_ [private] 
Input phasedArray list (not yet implemented)
Definition at line 265 of file BaselinesSet.h.