Flux.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2010 by Paul Demorest
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __Pulsar_Flux_h
10 #define __Pulsar_Flux_h
11 
12 #include "Pulsar/Algorithm.h"
13 #include "Estimate.h"
14 
15 namespace Pulsar
16 {
17  class Profile;
18 
20 
25  class Flux : public Algorithm
26  {
27  public:
28 
30  Flux() {};
31 
33  ~Flux() {};
34 
36  Estimate<double> operator() (const Profile *p) { return get_flux(p); }
37 
39  //virtual Estimate<double> get_flux(const Profile *p) { return Estimate<double>(0,0); }
40  virtual Estimate<double> get_flux(const Profile *p)=0;
41 
43  virtual std::string get_method() const { return ""; }
44 
45  protected:
46 
47  };
48 
49 }
50 
51 
52 #endif
53 
54 
55 
virtual std::string get_method() const
Return name of flux algorithm.
Definition: Flux.h:48
virtual Estimate< double > get_flux(const Profile *p)=0
Return flux w/ uncertainty.
~Flux()
Destructor.
Definition: Flux.h:38
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Estimate< double > operator()(const Profile *p)
Return flux.
Definition: Flux.h:41
Flux()
Default constructor.
Definition: Flux.h:35

Generated using doxygen 1.8.17