User Tools

Site Tools


itk:extracting_channels_from_root_files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
itk:extracting_channels_from_root_files [2016/09/15 19:11]
mbeydler
itk:extracting_channels_from_root_files [2016/09/15 19:50]
mbeydler
Line 4: Line 4:
  
 Instructions: Instructions:
-  * Download the package using the command ''wget https://atlaswww.hep.anl.gov/asc/wikidoc/lib/exe/fetch.php?media=itk:testanalysis.py -O TestAnalysis.py''+  * Download the package using the command  
 +<code bash> 
 +wget https://atlaswww.hep.anl.gov/asc/wikidoc/lib/exe/fetch.php?media=itk:testanalysis.py -O TestAnalysis.py 
 +</code>
   * Once you have the package, make sure that you have already installed ROOT or can open the ROOT file from your test.   * Once you have the package, make sure that you have already installed ROOT or can open the ROOT file from your test.
   * Open the script ''vim (or emacs/whatever text editor you use) TestAnalysis.py''.   * Open the script ''vim (or emacs/whatever text editor you use) TestAnalysis.py''.
Line 17: Line 20:
  
   #The user must input the root file, histogram, and the maximum number for bin content   #The user must input the root file, histogram, and the maximum number for bin content
-  fileName = "path/to/file.root" +  fileName = "~/calibData/TEST_NAME_0000RUN#/histos.root"  #For example: an analog test with run number 11 ~/calibData/ANALOG_TEST_000011/histos.root. 
-  histogramName = "name of histogram+  histogramName = "Mod_94220425_Occupancy_Point_000   #This is the corresponding histogram name for the analog test. 
-  maxValBin = 50+  maxValBin = 50     #This is the corresponding maximum hits for the analog test.
  
   #Do not modify the rest of the code, it should work given what the user has place above.   #Do not modify the rest of the code, it should work given what the user has place above.
itk/extracting_channels_from_root_files.txt · Last modified: 2016/09/15 20:04 by mbeydler