Namespaces | Classes | Functions
otoa Namespace Reference

Namespaces

 err
 
 fd
 

Classes

class  Config
 Converts an Offline event to ADST. More...
 
class  Detector2ADST
 
class  FD2ADST
 Converts an Offline event to ADST FDEvent. More...
 
class  FOVCalculator
 read in ADST, let user do stuff, and write out a modfied one More...
 
class  LongitudinalScan
 
class  LongitudinalXmaxScanner
 
class  MD2ADST
 
class  Offline2ADST
 Converts an Offline event to ADST. More...
 
class  RdFiller
 
class  SD2ADST
 Converts an Offline event to ADST SDEvent. More...
 
class  Status
 Represents the status of a single event conversion. More...
 

Functions

double CalculateNutationCorrection (const double julianDay)
 Used by the calculation of the equatorial coordinates. TODO: Move such calculations to utl or use libnova. More...
 
void FillCelestialCoordinates (RecShower &recShower)
 
void LinearFit (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &ey, double &a0, double &a1, double &chi2)
 Do a linear fit and return coefficients and chi2. More...
 
void LinearFit (const vector< double > &x, const vector< double > &y, const vector< double > &ey, double &a0, double &a1, double &chi2)
 Do a linear fit and return coefficients and chi2. More...
 
double TimeStamp2GMST (const utl::TimeStamp &timest)
 Convert a TimeStamp to GMST. More...
 
unsigned int TimeStamp2HHMMSS (const utl::TimeStamp &timest)
 Convert a TimeStamp into an integer representing the time as HHMMSS. More...
 
double TimeStamp2MoonCycle (const utl::TimeStamp &timest)
 Convert a TimeStamp into a fractional mooncycle since 2004/01/07. More...
 
unsigned int TimeStamp2YYMMDD (const utl::TimeStamp &timest)
 Convert a TimeStamp into an integer representing the date as YYMMDD. More...
 
template<class T >
TVector3 ToTVector3 (const T &v, const utl::CoordinateSystemPtr &cs, const double unit=1)
 

Function Documentation

double otoa::CalculateNutationCorrection ( const double  julianDay)

Used by the calculation of the equatorial coordinates. TODO: Move such calculations to utl or use libnova.

Definition at line 77 of file ConversionUtil.cc.

References utl::deg, and utl::mm.

Referenced by otoa::err::CalculateEquatorialCoordinates::operator()().

void otoa::FillCelestialCoordinates ( RecShower &  recShower)
void otoa::LinearFit ( const std::vector< double > &  x,
const std::vector< double > &  y,
const std::vector< double > &  ey,
double &  a0,
double &  a1,
double &  chi2 
)
void otoa::LinearFit ( const vector< double > &  x,
const vector< double > &  y,
const vector< double > &  ey,
double &  a0,
double &  a1,
double &  chi2 
)
double otoa::TimeStamp2GMST ( const utl::TimeStamp ts)
unsigned int otoa::TimeStamp2HHMMSS ( const utl::TimeStamp timest)

Convert a TimeStamp into an integer representing the time as HHMMSS.

Definition at line 46 of file ConversionUtil.cc.

References utl::UTCDateTime::GetHour(), utl::UTCDateTime::GetMinute(), and utl::UTCDateTime::GetSecond().

Referenced by otoa::FD2ADST::FillEyeHeader(), otoa::Offline2ADST::FillGlobalInfo(), and otoa::SD2ADST::FillSEvent().

double otoa::TimeStamp2MoonCycle ( const utl::TimeStamp timest)

Convert a TimeStamp into a fractional mooncycle since 2004/01/07.

Definition at line 54 of file ConversionUtil.cc.

References utl::ModifiedJulianDate().

Referenced by otoa::FD2ADST::FillEyeHeader().

unsigned int otoa::TimeStamp2YYMMDD ( const utl::TimeStamp timest)

Convert a TimeStamp into an integer representing the date as YYMMDD.

Misc. conversion functions

Definition at line 38 of file ConversionUtil.cc.

References utl::UTCDate::GetDay(), utl::UTCDate::GetMonth(), and utl::UTCDate::GetYear().

Referenced by otoa::FD2ADST::FillEyeHeader(), otoa::Offline2ADST::FillGlobalInfo(), and otoa::SD2ADST::FillSEvent().

template<class T >
TVector3 otoa::ToTVector3 ( const T &  v,
const utl::CoordinateSystemPtr cs,
const double  unit = 1 
)
inline

, generated on Tue Sep 26 2023.