ScintPowerEstimator.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2005 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Formats/Timer/ScintPowerEstimator.h
10 
11 #ifndef __ScintPowerEstimator_h
12 #define __ScintPowerEstimator_h
13 
14 #include "Pulsar/PowerEstimator.h"
15 
16 namespace Pulsar {
17 
18  class ScintArchive;
19 
21  class ScintPowerEstimator : public PowerEstimator {
22 
23  public:
24 
27 
30 
33 
36 
38  ScintPowerEstimator* clone () const
39  { return new ScintPowerEstimator (*this); }
40 
42  void set_archive (const ScintArchive* archive);
43 
45  void get_power (unsigned isub, unsigned ipol,
46  std::vector<float>& on,
47  std::vector<float>& off) const;
48 
49  protected:
50 
53 
54  };
55 
56 
57 }
58 
59 #endif
const ScintPowerEstimator & operator=(const ScintPowerEstimator &)
Operator =.
Definition: ScintPowerEstimator.C:26
ScintPowerEstimator(const ScintArchive *archive=0)
Default constructor.
Definition: ScintPowerEstimator.C:11
void set_archive(const ScintArchive *archive)
Implement PowerEstimator::set_archive.
Definition: ScintPowerEstimator.C:38
Produces on-pulse and off-pulse power spectra.
Definition: PowerEstimator.h:25
void get_power(unsigned isub, unsigned ipol, std::vector< float > &on, std::vector< float > &off) const
Implement PowerEstimator::get_power.
Definition: ScintPowerEstimator.C:43
ScintPowerEstimator * clone() const
Clone method.
Definition: ScintPowerEstimator.h:43
Returns power estimates from a ScintArchive.
Definition: ScintPowerEstimator.h:26
Defines the PSRCHIVE library.
Definition: CalSource.h:17
A TimerArchive with transposed phase and frequency axis.
Definition: ScintArchive.h:29
~ScintPowerEstimator()
Destructor.
Definition: ScintPowerEstimator.C:33
Reference::To< const ScintArchive > archive
The ScintArchive from which to derive power estimates.
Definition: ScintPowerEstimator.h:57

Generated using doxygen 1.8.17