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 ×t) |
| Convert a TimeStamp to GMST. More... | |
| unsigned int | TimeStamp2HHMMSS (const utl::TimeStamp ×t) |
| Convert a TimeStamp into an integer representing the time as HHMMSS. More... | |
| double | TimeStamp2MoonCycle (const utl::TimeStamp ×t) |
| Convert a TimeStamp into a fractional mooncycle since 2004/01/07. More... | |
| unsigned int | TimeStamp2YYMMDD (const utl::TimeStamp ×t) |
| 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) |
| 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 | ) |
Calculates the celestial coordinates from core (UTM) core time, axis and fills it into the RecShower. Works for Fd and Sd. (FIXME: Should probably live elsewhere)
Definition at line 181 of file ConversionUtil.cc.
References utl::CorrelationMatrix::Get(), utl::NumericalErrorPropagation::GetFunctionResult(), utl::NumericalErrorPropagation::GetPropagatedCorrelations(), utl::NumericalErrorPropagation::GetPropagatedErrors(), utl::ModifiedJulianDate(), utl::CorrelationMatrix::Set(), and TimeStamp2GMST().
Referenced by otoa::FD2ADST::FillFdCoreAxis(), otoa::SD2ADST::FillSEvent(), and otoa::SD2ADST::FillUniversality().
| void otoa::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.
Definition at line 143 of file ConversionUtil.cc.
Referenced by otoa::FD2ADST::FillRecPixel(), otoa::fd::LinearProfileFitChiSquare(), FdProfileConstrainedGeometryFit::ChiZeroRegression::operator()(), FdProfileConstrainedGeometryFitPG::ChiZeroRegression::operator()(), SdPlaneFitOG::SdPlaneFit::Run(), RdPlaneFit::RdPlaneFit::Run(), RdScintPlaneFit::RdScintPlaneFit::Run(), FdProfileConstrainedGeometryFit::PCGFitter::ScanChi0(), and FdProfileConstrainedGeometryFitPG::PCGFitter::ScanChi0().
| void otoa::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.
Definition at line 143 of file ConversionUtil.cc.
Referenced by otoa::FD2ADST::FillRecPixel(), otoa::fd::LinearProfileFitChiSquare(), FdProfileConstrainedGeometryFit::ChiZeroRegression::operator()(), FdProfileConstrainedGeometryFitPG::ChiZeroRegression::operator()(), SdPlaneFitOG::SdPlaneFit::Run(), RdPlaneFit::RdPlaneFit::Run(), RdScintPlaneFit::RdScintPlaneFit::Run(), FdProfileConstrainedGeometryFit::PCGFitter::ScanChi0(), and FdProfileConstrainedGeometryFitPG::PCGFitter::ScanChi0().
| double otoa::TimeStamp2GMST | ( | const utl::TimeStamp & | ts | ) |
Convert a TimeStamp to GMST.
Definition at line 63 of file ConversionUtil.cc.
References utl::UTCDate::GetDay(), utl::UTCDateTime::GetHour(), utl::UTCDateTime::GetMinute(), utl::UTCDate::GetMonth(), utl::UTCDateTime::GetSecond(), utl::UTCDate::GetYear(), utl::ModifiedJulianDate(), and G4StationSimulatorOG::p.
Referenced by FillCelestialCoordinates(), and otoa::Offline2ADST::FillSim().
| 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().
|
inline |
Definition at line 51 of file ConversionUtil.h.
References UnivRecNS::unit.
Referenced by otoa::SD2ADST::AddStations(), otoa::Detector2ADST::FillDetector(), otoa::Offline2ADST::FillDetectorGeometryIncremental(), otoa::FD2ADST::FillFdCoreAxis(), otoa::RdFiller::FillRadioShower(), otoa::MD2ADST::FillRecShower(), otoa::SD2ADST::FillSEvent(), otoa::Offline2ADST::FillSim(), otoa::SD2ADST::FillUniversality(), otoa::Offline2ADST::FinishDetectorAndFileInfo(), otoa::MD2ADST::MakeCounter(), and otoa::MD2ADST::MakeModule().