24 #ifndef SKA_CHEETAH_DATA_CANDIDATE_H 25 #define SKA_CHEETAH_DATA_CANDIDATE_H 28 #include "panda/DataChunk.h" 29 #include "cheetah/data/Units.h" 30 #include "cheetah/data/DedispersionMeasure.h" 31 #include "cheetah/utils/Architectures.h" 32 #pragma GCC diagnostic push 33 #pragma GCC diagnostic ignored "-Wall" 34 #pragma GCC diagnostic ignored "-Wpragmas" 35 #pragma GCC diagnostic ignored "-Wunused-parameter" 36 #pragma GCC diagnostic ignored "-Wunused-variable" 37 #include <boost/units/quantity.hpp> 38 #include <boost/units/systems/si/time.hpp> 39 #include <boost/units/make_scaled_unit.hpp> 40 #pragma GCC diagnostic pop 59 template <
typename Arch,
typename T>
60 class Candidate :
public ska::panda::DataChunk<Candidate<Arch, T>>
63 typedef DedispersionMeasureType<T> Dm;
64 typedef boost::units::quantity<MilliSeconds, double> MsecTimeType;
65 typedef MsecTimeType TimeType;
66 typedef boost::units::quantity<boost::units::si::dimensionless, T> SecPerSecType;
82 Candidate(MsecTimeType pulse_period, SecPerSecType pulse_pdot, Dm
dm, std::size_t
ident = 0 );
93 Candidate(MsecTimeType pulse_period, SecPerSecType pulse_pdot, Dm dm, MsecTimeType pulse_width, T
sigma, std::size_t
ident = 0);
105 MsecTimeType
const &
period()
const;
112 void period(MsecTimeType c_period);
124 SecPerSecType
const &
pdot()
const;
136 void pdot(SecPerSecType c_pulse_pdot);
149 Dm
const &
dm()
const;
173 MsecTimeType
const &
width()
const;
184 void width(MsecTimeType c_width) ;
198 T
const &
sigma()
const;
212 void sigma(T c_sigma) ;
223 std::size_t
const &
ident()
const;
234 void ident(std::size_t c_ident) ;
237 MsecTimeType _pulse_period ;
238 SecPerSecType _pulse_pdot = 0. ;
240 MsecTimeType _pulse_width ;
250 #include "cheetah/data/detail/Candidate.cpp" 252 #endif // SKA_CHEETAH_DATA_CANDIDATE_H SecPerSecType const & pdot() const
access a reference to pulse_pdot.
Candidate()
Create a zero-sized Candidate.
T const & sigma() const
access a reference to _sigma.
Some limits and constants for FLDO.
MsecTimeType const & width() const
access a reference to width.
~Candidate()
destroy a Candidate
std::size_t const & ident() const
access a reference to ident.
A simple record to hold 'candidate' proprerties.
Dm const & dm() const
access a reference to dm.
MsecTimeType const & period() const
access a reference to pulsar period.