Difference between revisions of "CH Code Repository"

From New IAC Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
='''Header File'''=
 
='''Header File'''=
  
This is a header file created to take care of formatting plots made with ROOT. This header file can be included in any ROOT script by adding ''#include "/home/daq/Harpconn/Root_Scripts/Header_Files/ROOT_Characteristics.h"'' to your script. You will also need to execute ''PlotStyle();'' in your script to take advantage of the header file.  
+
This is a header file created to take care of formatting plots made with ROOT.  
 +
This header file can be included in any ROOT script by adding  
 +
''#include "/home/daq/Harpconn/Root_Scripts/Header_Files/ROOT_Characteristics.h"''  
 +
to your script. You will also need to execute  
 +
''PlotStyle();''  
 +
in your script to take advantage of the header file.  
  
 
[https://wiki.iac.isu.edu/index.php?title=File:ROOT_Characteristics.h Code]
 
[https://wiki.iac.isu.edu/index.php?title=File:ROOT_Characteristics.h Code]

Revision as of 15:23, 26 October 2022

Preliminary Notes

  • The code on this page is intended to be run on DAQ2 locally or via secure shell.

Header File

This is a header file created to take care of formatting plots made with ROOT. This header file can be included in any ROOT script by adding

#include "/home/daq/Harpconn/Root_Scripts/Header_Files/ROOT_Characteristics.h" 

to your script. You will also need to execute

PlotStyle(); 

in your script to take advantage of the header file.

Code

Energy Calibration

This piece of code calibrates ADC data by using a polynomial regression and can be modified to take input from the user if not using 152Eu as a calibration source. Currently (Oct 2022), it is configured to automatically assume use of 152Eu. The Non-Uniform Binning is also included in this piece of code, but will also be listed separately.

CH DAQ2 Energy Calibration

Code

Previous Pages

CaGaS Phase II

PAS_Experiment