24 #ifndef SKA_CHEETAH_DATA_SPCANDIDATEDATA_H 25 #define SKA_CHEETAH_DATA_SPCANDIDATEDATA_H 27 #include "TimeFrequency.h" 28 #include "ExtendedTimeFrequency.h" 29 #include "SpCandidate.h" 30 #include <pss/astrotypes/types/ExtendedTimeFrequency.h> 42 template<
typename TimeFrequencyT>
44 ,
public panda::DataChunk<SpCandidateData<TimeFrequencyT>>
52 typedef DedispersionMeasureType<T> Dm;
53 typedef boost::units::quantity<MilliSeconds, double> MsecTimeType;
54 typedef MsecTimeType Width;
55 typedef MsecTimeType Duration;
56 typedef pss::astrotypes::units::ModifiedJulianClock::time_point TimePointType;
58 typedef boost::units::quantity<MegaHertz, double> FrequencyType;
87 Dm
const &
dm()
const;
96 Width
const &
width()
const;
110 Sigma
const&
sigma()
const;
114 TimePointType _start_time;
121 typedef std::vector<Candidate<float>> CandidateContainer;
124 typedef TimeFrequencyT TimeFrequencyType;
125 typedef typename CandidateContainer::value_type CandidateType;
126 typedef typename CandidateContainer::const_iterator ConstCandidateIterator;
152 CandidateType
const&
candidate(std::size_t candidate_number)
const;
160 CandidateContainer _cands;
167 #include "detail/SpCandidateData.cpp" 169 #endif // SKA_CHEETAH_DATA_SPCANDIDATEDATA_H Wrapper around a TimeFrequency type object (or shared_ptr to such) mainiting the TimeFrequency interf...
TimePointType const & start_time() const
Get the start time of the candidate.
Some limits and constants for FLDO.
std::size_t number_of_candidates() const
the number of candidates associated with this data
Duration const & duration() const
The duration in time of the candidate pulse.
ConstCandidateIterator begin_candidates() const
Iterator over the candidates.
SpCandidates associated with a single data chank.
Width const & width() const
access a reference to width.
Dm const & dm() const
access a reference to dm.
CandidateType const & candidate(std::size_t candidate_number) const
get the correspondin numbered candidate (<= number_of_candidates())
Sigma const & sigma() const
access a reference to standard deviation (sigma).
void add(CandidateType &&candidate)
add a Candidate to the candidates list
ConstCandidateIterator end_candidates() const
Iterator marking the end of any candidates.