PeriastronOrder.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2003 by Aidan Hotan
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Extensions/Pulsar/PeriastronOrder.h
10 
11 #ifndef __PeriastronOrder_h
12 #define __PeriastronOrder_h
13 
14 #include "Pulsar/IntegrationOrder.h"
15 
16 namespace Pulsar {
17 
23  class PeriastronOrder : public Pulsar::IntegrationOrder {
24 
25  public:
26 
27  // These are the standard Archive::Extension methods:
28 
30  PeriastronOrder ();
31 
34 
36  PeriastronOrder (const PeriastronOrder& extension);
37 
39  const PeriastronOrder& operator= (const PeriastronOrder& extension);
40 
42  IntegrationOrder* clone () const;
43 
44  void organise (Archive*, unsigned);
45  void append (Archive*, const Archive*);
46  void combine (Archive*, unsigned);
47 
48  };
49 
50 }
51 
52 #endif
~PeriastronOrder()
Destructor.
Definition: PeriastronOrder.C:24
Definition: PeriastronOrder.h:28
virtual void resize(unsigned nsubint, unsigned npol=0, unsigned nchan=0, unsigned nbin=0)
Resize the Integration vector with new_Integration instances.
Definition: Archive_resize.C:26
void zero()
Zero all the profiles, keeping all else the same.
Definition: Integration.C:185
Expert * expert()
Provide access to the expert interface.
Definition: Integration.C:162
void append(Archive *, const Archive *)
Add two Archive instances that have the same IntegrationOrder.
Definition: PeriastronOrder.C:145
virtual MJD get_epoch() const =0
Get the epoch of the rising edge of bin zero.
std::vector< double > indices
Storage for the actual Integration indices.
Definition: IntegrationOrder.h:103
double get_centre_frequency(unsigned ichan) const
Get the Profile centre frequency attribute of the given channel.
Definition: Integration.C:359
virtual unsigned get_nsubint() const =0
Get the number of sub-integrations stored in the file.
The primary interface to pulsar observational data.
Definition: Archive.h:45
const Parameters * get_ephemeris() const
Return a pointer to the current archive ephemeris.
Definition: Archive.C:281
virtual Integration * new_Integration(const Integration *copy=0)=0
Construct new Integration instance.
void copy(const Integration *subint, bool management=true)
Copy the data from 'from' into 'this'.
Definition: IntegrationExpert.h:102
Integration * get_Integration(unsigned subint)
Return pointer to the specified Integration.
Definition: IntegrationManager.C:41
PeriastronOrder()
Default constructor.
Definition: PeriastronOrder.C:16
const PeriastronOrder & operator=(const PeriastronOrder &extension)
Operator =.
Definition: PeriastronOrder.C:39
virtual std::string get_telescope() const =0
Get the name of the telescope used.
void combine(const Integration *from)
Combine the data from 'from' into 'this'.
Definition: IntegrationExpert.h:106
std::string IndexState
An index state identifier string.
Definition: IntegrationOrder.h:97
IntegrationOrder * clone() const
Clone method.
Definition: PeriastronOrder.C:48
void combine(Archive *, unsigned)
Definition: PeriastronOrder.C:151
static unsigned verbose
A verbosity flag that can be set for debugging purposes.
Definition: IntegrationManager.h:38
virtual Archive * clone() const =0
Return a new copy constructed instance equal to this.
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void organise(Archive *, unsigned)
Re-order the Integrations into the desired state.
Definition: PeriastronOrder.C:55
std::string Unit
The units (if any) of this state.
Definition: IntegrationOrder.h:100
Alternative ways of ordering Integration instances.
Definition: IntegrationOrder.h:29

Generated using doxygen 1.8.17