PAASS
Software suite to Acquire and Analyze Data from Pixie16
scope.cpp File Reference
#include <iostream>
#include <algorithm>
#include "ChannelEvent.hpp"
#include "HelperFunctions.hpp"
#include "XiaData.hpp"
#include "scope.hpp"
#include "TSystem.h"
#include "TStyle.h"
#include "TMath.h"
#include "TGraph.h"
#include "TH2F.h"
#include "TAxis.h"
#include "TFile.h"
#include "TF1.h"
#include "TLine.h"
#include "TProfile.h"
#include "TPaveStats.h"
Include dependency graph for scope.cpp:

Go to the source code of this file.

Macros

#define PROG_NAME   "Scope"
 
#define ADC_TIME_STEP   4
 
#define SLEEP_WAIT   1E4
 

Functions

double PaulauskasFitFunc (double *x, double *p)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

§ ADC_TIME_STEP

#define ADC_TIME_STEP   4

Definition at line 36 of file scope.cpp.

§ PROG_NAME

#define PROG_NAME   "Scope"

Definition at line 33 of file scope.cpp.

§ SLEEP_WAIT

#define SLEEP_WAIT   1E4

Definition at line 37 of file scope.cpp.

Function Documentation

§ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 652 of file scope.cpp.

Here is the call graph for this function:

§ PaulauskasFitFunc()

double PaulauskasFitFunc ( double *  x,
double *  p 
)

The Paulauskas function is described in NIM A 737 (22), with a slight adaptation. We use a step function such that f(x < phase) = baseline. In addition, we also we formulate gamma such that the gamma in the paper is gamma_prime = 1 / pow(gamma, 0.25).

The parameters are: p[0] = baseline p[1] = amplitude p[2] = phase p[3] = beta p[4] = gamma

Parameters
[in]xX value.
[in]pParamater values.
Returns
the value of the function for the specified x value and parameters.

Definition at line 56 of file scope.cpp.

Here is the caller graph for this function: