interpolation.cxx File Reference

#include <math.h>
#include <cstring>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <sstream>
#include <TH1F.h>
#include <TH1D.h>
#include <TH2F.h>
#include <TFile.h>
#include <TTree.h>
#include <TChain.h>

Functions

Double_t w1D (Int_t n, Double_t dx, Double_t x[4], Double_t y[4])
 1D Lagrange interpolation, calculation of value of the Lagrange polynomial f(x) at given x
Double_t w2D (Double_t x, Double_t y, Double_t x0, Double_t y0, Double_t u0, Double_t x1, Double_t y1, Double_t u1, Double_t x2, Double_t y2, Double_t u2)
 2D Lagrange interpolation, calculation of value of Lagrange polynomial (first order)
Double_t lin (Double_t dx, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 Two nodes. Linear regression method. Calculation of f(x)=a+x*b.
Double_t inter1D (Double_t dx, TFile &f, char *histname)
 1D interpolation, determination of the node values from the given histogram.
Double_t inter2D (Double_t dx, Double_t dy, TFile &f, char *histname)
 2D interpolation, determination of the node values from the given histogram.
void d1 (TFile &f)
 1D interpolation
void d2 (TFile &f)
 2D interpolation
void start ()
 Start menu.
Double_t mean_weight (TString &inpfile)
 Determination of value of mean weight from the npa branch stored in GLISSANDO Root file.
Double_t integral1D (Double_t nbc, TFile &f, char *histname)
 Calculation the normalization integral from the given 1-dim histogram stored in the GLISSANDO Root file. Rectangle method.
Double_t integral2D (Double_t nbc, TFile &f, char *histname)
 Calculation of value of integral: f(rho_x,rho_y) drho_x drho_y from the given histogram stored in the GLISSANDO Root file. Rectangle method.
Int_t main (Int_t argc, char **argv)

Variables

char hname [100]
 name of the histogram from the GLISSANDO output ROOT file

Detailed Description

auxilliary file, part of GLISSANDO 2

Function Documentation

Int_t main ( Int_t  argc,
char **  argv 
)

The code computes the values of the one-dimensional or two-dimansional profiles at a specified point via Lagrange interpolation. Useful, if exporting of these data for other applications is needed.

Parameters:
argc  number of command line parameters
argv  name of the GLISSANDO output ROOT file


Generated on 10 May 2013 for GLISSANDO 2 by  doxygen 1.4.7