ScatteredPowerCorrection.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2006 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/General/Pulsar/ScatteredPowerCorrection.h
10
11#ifndef __Pulsar_ScatteredPowerCorrection_h
12#define __Pulsar_ScatteredPowerCorrection_h
13
14#include "Pulsar/Transformation.h"
15#include "Pulsar/TwoBitStats.h"
16
17#include "JenetAnderson98A5.h"
18#include "TextInterface.h"
19
20namespace Pulsar {
21
22 class Archive;
23 class Integration;
24
26
28 class ScatteredPowerCorrection : public Transformation<Integration> {
29
30 public:
31
34
36 void correct (Archive*);
37
39 void transform (Integration*);
40
43
45 class Interface;
46
48 void set_check_smearing (bool flag) { check_smearing = flag; }
49
51 bool get_check_smearing () const { return check_smearing; }
52
53 protected:
54
57
60
62 std::vector<float> thresholds;
63
66
69 };
70
71}
72
73#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
Array of Profiles integrated over the same time interval.
Definition Integration.h:37
std::vector< float > thresholds
The estimated thresholds at record time.
Definition ScatteredPowerCorrection.h:62
void set_check_smearing(bool flag)
Fail if dedispersion has overly smeared the scattered power.
Definition ScatteredPowerCorrection.h:48
bool check_smearing
Fail if dedispersion has overly smeared the scattered power.
Definition ScatteredPowerCorrection.h:68
Reference::To< TwoBitStats > twobit_stats
Two-bit statistics.
Definition ScatteredPowerCorrection.h:65
virtual TextInterface::Parser * get_interface()
Return a text interface that can be used to configure this instance.
Definition ScatteredPowerCorrection.C:159
bool get_check_smearing() const
Fail if dedispersion has overly smeared the scattered power.
Definition ScatteredPowerCorrection.h:51
void transform(Integration *)
The scattered power correction operation.
Definition ScatteredPowerCorrection.C:48
void correct(Archive *)
The scattered power correction operation.
Definition ScatteredPowerCorrection.C:22
ScatteredPowerCorrection()
Default constructor.
Definition ScatteredPowerCorrection.C:17
JenetAnderson98::EquationA5 ja98_a5
Inverts equation A5 of Jenet & Anderson 98.
Definition ScatteredPowerCorrection.h:59
JenetAnderson98 ja98
Theoretical treatment of quantization effects.
Definition ScatteredPowerCorrection.h:56
Algorithms that modify data in the Container.
Definition Transformation.h:20
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0