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 
16 namespace Pulsar {
17 
18  class ProfileShiftFit;
19 
21  class StandardSNRWeight : public IntegrationWeight {
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 
void set_Profile(const Profile *p)
Set the data profile to use.
Definition: ProfileShiftFit.C:164
The primary interface to pulsar observational data.
Definition: Archive.h:45
void operator()(Archive *)
Set the weights of all Profiles in the Archive.
Definition: StandardSNRWeight.C:18
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:48
Defines the PSRCHIVE library.
Definition: CalSource.h:17
double get_snr()
Get the resulting SNR.
Definition: ProfileShiftFit.C:579
Profile * get_Profile(unsigned ipol, unsigned ichan)
Returns a pointer to the Profile given by the specified indeces.
Definition: Integration.C:306
StandardSNRWeight(const std::string &filename)
Construct from standard profile filename.
Definition: StandardSNRWeight.C:25
double get_weight(const Integration *integration, unsigned ichan)
Get the weight of the specified channel.
Definition: StandardSNRWeight.C:52

Generated using doxygen 1.8.17