Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
SpCclSigProc.h
1 /*
2  * The MIT License (MIT)
3  *
4  * Copyright (c) 2016 The SKA organisation
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all
14  * copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22  * SOFTWARE.
23  */
24 #ifndef SKA_CHEETAH_EXPORTERS_SPCCLSIGPROC_H
25 #define SKA_CHEETAH_EXPORTERS_SPCCLSIGPROC_H
26 
27 #include "cheetah/exporters/SpCclSigProcConfig.h"
28 #include "cheetah/sigproc/SigProcWriter.h"
29 #include "cheetah/data/SpCcl.h"
30 #include "cheetah/data/Units.h"
31 #include "cheetah/utils/chrono.h"
32 
33 namespace ska {
34 namespace cheetah {
35 namespace exporters {
36 
42 template<typename NumericalRep>
44 {
45  typedef pss::astrotypes::sigproc::Header HeaderType;
46  typedef cheetah::utils::ModifiedJulianClock::time_point TimePointType;
47  public:
48  SpCclSigProc(SpCclSigProcConfig const& config);
50 
51  ~SpCclSigProc();
52 
53  std::vector<TimePointType> start_times();
54 
58  bool operator << (data::SpCcl<NumericalRep> const& cand_list);
59 
60  private:
61  SpCclSigProcConfig const& _config;
63  std::vector<TimePointType> _start_times;
64 };
65 
66 
67 } // namespace exporters
68 } // namespace cheetah
69 } // namespace ska
70 #include "cheetah/exporters/detail/SpCclSigProc.cpp"
71 #endif // SKA_CHEETAH_EXPORTERS_SPCCLSIGPROC_H
A configuration class for the dynamic spectrum of single pulse candidates.
Some limits and constants for FLDO.
Definition: Brdz.h:35
Writes data types to a sigproc format file.
Definition: SigProcWriter.h:45