CH ROOT Nonuniform Binning

From New IAC Wiki
Revision as of 00:24, 16 September 2021 by Harpconn (talk | contribs)
Jump to navigation Jump to search

Rebinning via Energy Calibration

Regarding use of 4096 channel peak sensing ADC=


double bins[4097];
  • Creates an array 4097 entries long to be used for bin edges
for(int i=0; i<=4096; i++){
  • Opens a for loop for bin creation
bins[i] =  i*i*(-0.000000861277) + i*(0.449519)-36.2928;
  • Fills arrays with values for bin edges using the energy calibration fit for HPGe detector
cout << bins[i] << endl;
  • Cout statement to print bin edges to the terminal window as for loop is processing
} 
  • Closes the for loop and begins evaluation





PAS Feasibility Study Runs