StandardSNRWeight.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2011 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/General/Pulsar/StandardSNRWeight.h
10
11#ifndef _Pulsar_StandardSNRWeight_H
12#define _Pulsar_StandardSNRWeight_H
13
14#include "Pulsar/IntegrationWeight.h"
15
16namespace Pulsar {
17
18 class ProfileShiftFit;
19
22
23 public:
24
26 StandardSNRWeight (const std::string& filename);
27
29 void operator () (Archive*);
30
32 double get_weight (const Integration* integration, unsigned ichan);
33
34 protected:
35
37 std::vector< Reference::To<ProfileShiftFit> > chan;
38
39 private:
40 bool use_chan;
41
42 };
43
44}
45
46#endif
47
The primary interface to pulsar observational data.
Definition Archive.h:46
IntegrationWeight()
Default constructor.
Definition IntegrationWeight.C:12
Array of Profiles integrated over the same time interval.
Definition Integration.h:37
Calculates profile shifts by fitting to a template/standard.
Definition ProfileShiftFit.h:44
double get_weight(const Integration *integration, unsigned ichan)
Get the weight of the specified channel.
Definition StandardSNRWeight.C:52
void operator()(Archive *)
Set the weights of all Profiles in the Archive.
Definition StandardSNRWeight.C:18
StandardSNRWeight(const std::string &filename)
Construct from standard profile filename.
Definition StandardSNRWeight.C:25
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0