Hall A ROOT/C++ Analyzer (podd)
calc_thresh.cxx File Reference
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <cmath>
#include <numeric>
#include "TH1.h"
#include "TFile.h"
#include "TF1.h"
Include dependency graph for calc_thresh.cxx:

Macros

#define SLOTMIN   1
 
#define NUMSLOTS   22
 
#define NADCCHAN   16
 
#define NPOINTS   100
 
#define NSIGMAFIT   5
 
#define NSIGMATHRESH   5
 

Functions

void calc_thresh ()
 

Variables

TFile * rif
 
TFile * rof
 
TH1I * h_pped [NUMSLOTS][NADCCHAN]
 
TF1 * init_gfit [NUMSLOTS][NADCCHAN]
 
TF1 * gfit [NUMSLOTS][NADCCHAN]
 
UInt_t nentries [NUMSLOTS][NADCCHAN]
 
UInt_t threshold [NUMSLOTS][NADCCHAN]
 
Double_t init_max [NUMSLOTS][NADCCHAN]
 
Double_t init_mean [NUMSLOTS][NADCCHAN]
 
Double_t init_stddev [NUMSLOTS][NADCCHAN]
 
Double_t iter_max [NUMSLOTS][NADCCHAN]
 
Double_t iter_mean [NUMSLOTS][NADCCHAN]
 
Double_t iter_stddev [NUMSLOTS][NADCCHAN]
 
Double_t finl_max [NUMSLOTS][NADCCHAN]
 
Double_t finl_mean [NUMSLOTS][NADCCHAN]
 
Double_t finl_stddev [NUMSLOTS][NADCCHAN]
 
Double_t finl_max_err [NUMSLOTS][NADCCHAN]
 
Double_t finl_mean_err [NUMSLOTS][NADCCHAN]
 
Double_t finl_stddev_err [NUMSLOTS][NADCCHAN]
 
Double_t init_fr_low [NUMSLOTS][NADCCHAN]
 
Double_t init_fr_high [NUMSLOTS][NADCCHAN]
 
Double_t fr_low [NUMSLOTS][NADCCHAN]
 
Double_t fr_high [NUMSLOTS][NADCCHAN]
 
TDirectory * mode_dir
 
TDirectory * slot_dir [NUMSLOTS]
 
TDirectory * chan_dir [NADCCHAN]
 

Macro Definition Documentation

#define NADCCHAN   16
#define NPOINTS   100
#define NSIGMAFIT   5
#define NSIGMATHRESH   5
#define NUMSLOTS   22
#define SLOTMIN   1

Function Documentation

void calc_thresh ( )

Variable Documentation

TDirectory * chan_dir[NADCCHAN]
Double_t finl_max[NUMSLOTS][NADCCHAN]
Double_t finl_max_err[NUMSLOTS][NADCCHAN]
Double_t finl_mean[NUMSLOTS][NADCCHAN]
Double_t finl_mean_err[NUMSLOTS][NADCCHAN]
Double_t finl_stddev[NUMSLOTS][NADCCHAN]
Double_t finl_stddev_err[NUMSLOTS][NADCCHAN]
Double_t fr_high[NUMSLOTS][NADCCHAN]
Double_t fr_low[NUMSLOTS][NADCCHAN]
TF1 * gfit[NUMSLOTS][NADCCHAN]
TH1I* h_pped[NUMSLOTS][NADCCHAN]
Double_t init_fr_high[NUMSLOTS][NADCCHAN]
Double_t init_fr_low[NUMSLOTS][NADCCHAN]
TF1* init_gfit[NUMSLOTS][NADCCHAN]
Double_t init_max[NUMSLOTS][NADCCHAN]
Double_t init_mean[NUMSLOTS][NADCCHAN]
Double_t init_stddev[NUMSLOTS][NADCCHAN]
Double_t iter_max[NUMSLOTS][NADCCHAN]
Double_t iter_mean[NUMSLOTS][NADCCHAN]
Double_t iter_stddev[NUMSLOTS][NADCCHAN]
TDirectory* mode_dir
UInt_t nentries[NUMSLOTS][NADCCHAN]
TFile* rif
TFile * rof
TDirectory * slot_dir[NUMSLOTS]
UInt_t threshold[NUMSLOTS][NADCCHAN]