Star Class

class Star

A class which represents a single line from one of the stellar data files There are up to 1.8bn of these objects held in memory at any one time, so optimising their memory usage is important.

Public Functions

Star(const std::vector<std::string> &data, int bin)

Constructor function

Parameters
  • data – A tokenized string representing the line of the input file, assuming the prescription detailed in the data file specification

  • bin – The magnitude bin for gBin

Public Members

unsigned short int nMeasure

The number of times that a star ended up in the Gaia Astrometric Pipeline (a ‘detection’). Referred to as k in our probability work.

unsigned short int nVisit

The predicted number of times that Gaia would have seen the star, had it been operating at 100% efficiency for the entire time period, and perfectly followed the commanded scanning law. Referred to as n in our probability work.

unsigned int gBin

The magnitude bin assigned to the star - a number between 0 and Nm -1.

std::vector<unsigned int> TimeSeries

A vector of detection times (in units of 10s timebins) that Gaia is predicted to have visited the star. A vector of length nVisit, with members between 0 and TotalScanningTime - 1. Annoyingly TotalScanningTime exceeds the size of a short int.