ROBAST logo
// Author: Akira Okumura <mailto:oxon@mac.com>
/******************************************************************************
 * Copyright (C) 2006-, Akira Okumura                                         *
 * All rights reserved.                                                       *
 *****************************************************************************/

#ifndef A_SELLMEIER_FORMULA_H
#define A_SELLMEIER_FORMULA_H

#include "TF1.h"
#include "TGraph.h"

#include "ARefractiveIndex.h"

///////////////////////////////////////////////////////////////////////////////
//
// ASellmeierFormula
//
// Sellmeier formula for calculation of refractive index
// See http://en.wikipedia.org/wiki/Sellmeier_equation
//
///////////////////////////////////////////////////////////////////////////////

class ASellmeierFormula : public ARefractiveIndex {
 private:
  Double_t fPar[6];  // Parameters

 public:
  ASellmeierFormula();
  ASellmeierFormula(Double_t B1, Double_t B2, Double_t B3, Double_t C1,
                    Double_t C2, Double_t C3);
  ASellmeierFormula(const Double_t* p);

  virtual Double_t GetRefractiveIndex(Double_t lambda) const;
  virtual TF1* FitData(TGraph* graph, const char* tf1name,
                       Option_t* option = "");
  virtual TF1* MakeGraph(const char* tf1name, Double_t xmin, Double_t xmax);

  ClassDef(ASellmeierFormula, 1)
};

#endif  // A_SELLMEIER_FORMULA_H
 ASellmeierFormula.h:1
 ASellmeierFormula.h:2
 ASellmeierFormula.h:3
 ASellmeierFormula.h:4
 ASellmeierFormula.h:5
 ASellmeierFormula.h:6
 ASellmeierFormula.h:7
 ASellmeierFormula.h:8
 ASellmeierFormula.h:9
 ASellmeierFormula.h:10
 ASellmeierFormula.h:11
 ASellmeierFormula.h:12
 ASellmeierFormula.h:13
 ASellmeierFormula.h:14
 ASellmeierFormula.h:15
 ASellmeierFormula.h:16
 ASellmeierFormula.h:17
 ASellmeierFormula.h:18
 ASellmeierFormula.h:19
 ASellmeierFormula.h:20
 ASellmeierFormula.h:21
 ASellmeierFormula.h:22
 ASellmeierFormula.h:23
 ASellmeierFormula.h:24
 ASellmeierFormula.h:25
 ASellmeierFormula.h:26
 ASellmeierFormula.h:27
 ASellmeierFormula.h:28
 ASellmeierFormula.h:29
 ASellmeierFormula.h:30
 ASellmeierFormula.h:31
 ASellmeierFormula.h:32
 ASellmeierFormula.h:33
 ASellmeierFormula.h:34
 ASellmeierFormula.h:35
 ASellmeierFormula.h:36
 ASellmeierFormula.h:37
 ASellmeierFormula.h:38
 ASellmeierFormula.h:39
 ASellmeierFormula.h:40
 ASellmeierFormula.h:41
 ASellmeierFormula.h:42