Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
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:

Go to the source code of this file.

Macros

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

Functions

void calc_thresh ()
 

Variables

TDirectorychan_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]
 
TF1gfit [NUMSLOTS][NADCCHAN]
 
TH1Ih_pped [NUMSLOTS][NADCCHAN]
 
Double_t init_fr_high [NUMSLOTS][NADCCHAN]
 
Double_t init_fr_low [NUMSLOTS][NADCCHAN]
 
TF1init_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]
 
TDirectorymode_dir
 
UInt_t nentries [NUMSLOTS][NADCCHAN]
 
TFilerif
 
TFilerof
 
TDirectoryslot_dir [NUMSLOTS]
 
UInt_t threshold [NUMSLOTS][NADCCHAN]
 

Macro Definition Documentation

◆ NADCCHAN

#define NADCCHAN   16

Definition at line 15 of file calc_thresh.cxx.

◆ NPOINTS

#define NPOINTS   100

Definition at line 16 of file calc_thresh.cxx.

◆ NSIGMAFIT

#define NSIGMAFIT   5

Definition at line 17 of file calc_thresh.cxx.

◆ NSIGMATHRESH

#define NSIGMATHRESH   5

Definition at line 18 of file calc_thresh.cxx.

◆ NUMSLOTS

#define NUMSLOTS   22

Definition at line 14 of file calc_thresh.cxx.

◆ SLOTMIN

#define SLOTMIN   1

Definition at line 13 of file calc_thresh.cxx.

Function Documentation

◆ calc_thresh()

void calc_thresh ( )

Definition at line 34 of file calc_thresh.cxx.

Variable Documentation

◆ chan_dir

TDirectory * chan_dir[NADCCHAN]

Definition at line 32 of file calc_thresh.cxx.

◆ finl_max

Definition at line 28 of file calc_thresh.cxx.

◆ finl_max_err

Double_t finl_max_err[NUMSLOTS][NADCCHAN]

Definition at line 29 of file calc_thresh.cxx.

◆ finl_mean

Double_t finl_mean[NUMSLOTS][NADCCHAN]

Definition at line 28 of file calc_thresh.cxx.

◆ finl_mean_err

Double_t finl_mean_err[NUMSLOTS][NADCCHAN]

Definition at line 29 of file calc_thresh.cxx.

◆ finl_stddev

Double_t finl_stddev[NUMSLOTS][NADCCHAN]

Definition at line 28 of file calc_thresh.cxx.

◆ finl_stddev_err

Double_t finl_stddev_err[NUMSLOTS][NADCCHAN]

Definition at line 29 of file calc_thresh.cxx.

◆ fr_high

Definition at line 31 of file calc_thresh.cxx.

◆ fr_low

Definition at line 31 of file calc_thresh.cxx.

◆ gfit

TF1 * gfit[NUMSLOTS][NADCCHAN]

Definition at line 24 of file calc_thresh.cxx.

◆ h_pped

TH1I* h_pped[NUMSLOTS][NADCCHAN]

Definition at line 23 of file calc_thresh.cxx.

◆ init_fr_high

Double_t init_fr_high[NUMSLOTS][NADCCHAN]

Definition at line 30 of file calc_thresh.cxx.

◆ init_fr_low

Double_t init_fr_low[NUMSLOTS][NADCCHAN]

Definition at line 30 of file calc_thresh.cxx.

◆ init_gfit

TF1* init_gfit[NUMSLOTS][NADCCHAN]

Definition at line 24 of file calc_thresh.cxx.

◆ init_max

Definition at line 26 of file calc_thresh.cxx.

◆ init_mean

Double_t init_mean[NUMSLOTS][NADCCHAN]

Definition at line 26 of file calc_thresh.cxx.

◆ init_stddev

Double_t init_stddev[NUMSLOTS][NADCCHAN]

Definition at line 26 of file calc_thresh.cxx.

◆ iter_max

Definition at line 27 of file calc_thresh.cxx.

◆ iter_mean

Double_t iter_mean[NUMSLOTS][NADCCHAN]

Definition at line 27 of file calc_thresh.cxx.

◆ iter_stddev

Double_t iter_stddev[NUMSLOTS][NADCCHAN]

Definition at line 27 of file calc_thresh.cxx.

◆ mode_dir

TDirectory* mode_dir

Definition at line 32 of file calc_thresh.cxx.

◆ nentries

UInt_t nentries[NUMSLOTS][NADCCHAN]

Definition at line 25 of file calc_thresh.cxx.

◆ rif

TFile* rif

Definition at line 22 of file calc_thresh.cxx.

◆ rof

TFile * rof

Definition at line 22 of file calc_thresh.cxx.

◆ slot_dir

TDirectory * slot_dir[NUMSLOTS]

Definition at line 32 of file calc_thresh.cxx.

◆ threshold

UInt_t threshold[NUMSLOTS][NADCCHAN]

Definition at line 25 of file calc_thresh.cxx.