PatchTime.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2009 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/PatchTime.h
10 
11 #ifndef _Pulsar_PatchTime_H
12 #define _Pulsar_PatchTime_H
13 
14 #include "Pulsar/Contemporaneity.h"
15 
16 namespace Pulsar {
17 
18  class Archive;
19 
21  class PatchTime : public Algorithm
22  {
23 
24  public:
25 
27  PatchTime ();
28 
30  void operate (Archive* A, Archive* B);
31 
33  void set_contemporaneity_policy (Contemporaneity*);
34 
36  void set_minimum_contemporaneity (double min);
37 
38  protected:
39 
40  Reference::To<Contemporaneity> contemporaneity_policy;
41 
42  double minimum_contemporaneity;
43  };
44 
45 }
46 
47 #endif
virtual MJD get_epoch() const =0
Get the epoch of the rising edge of bin zero.
virtual unsigned get_nsubint() const =0
Get the number of sub-integrations stored in the file.
void set_contemporaneity_policy(Contemporaneity *)
Set the policy used to judge contemporaneity.
Definition: PatchTime.C:26
The primary interface to pulsar observational data.
Definition: Archive.h:45
void insert(unsigned isub)
Insert a new zeroed subint at the given location.
Definition: DigitiserCounts.C:180
void sort(StrictWeakOrdering comp)
Sort the Integrations according to the specified order.
Definition: IntegrationManagerExpert.h:66
Type * get() const
PatchTime()
Default constructor.
Definition: PatchTime.C:20
void operate(Archive *A, Archive *B)
Add to A whatever is missing with respect to B, and vice versa.
Definition: PatchTime.C:65
Integration * get_Integration(unsigned subint)
Return pointer to the specified Integration.
Definition: IntegrationManager.C:41
Evaluates the contemporaneity of Integrations from two Archives.
Definition: Contemporaneity.h:28
Array of Profiles integrated over the same time interval.
Definition: Integration.h:37
Stores digitizer histograms.
Definition: DigitiserCounts.h:25
Expert * expert()
Provide access to the expert interface.
Definition: Archive.C:40
static unsigned verbose
A verbosity flag that can be set for debugging purposes.
Definition: IntegrationManager.h:38
void set_minimum_contemporaneity(double min)
Set the minimum contemporaneity required for each sub-integration.
Definition: PatchTime.C:32
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17