Skip to content
Snippets Groups Projects
Commit c3e9258a authored by Ryan Calladine's avatar Ryan Calladine
Browse files

Handles Profile histograms

parent 3c579710
No related branches found
No related tags found
1 merge request!66Handles Profile histograms
......@@ -46,6 +46,26 @@ def getHist(in_file, directory,out_file, phys_list):
labelHist(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/pdTy_MF{}'.format(i)), 'Angular Deviation [mRad]', 'Particle Momentum [GeV/c]',phys_list)
hist_MuSct.append(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/pdTy_MF{}'.format(i)))
if infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/dxdTx_MF1_prof') is True:
for i in range(1,5):
labelHist(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/dxdTx_MF{}_prof'.format(i)), 'Angular Deviation [mRad]', 'Displacement [mm]',phys_list)
hist_MuSct.append(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/dxdTx_MF{}_prof'.format(i)))
labelHist(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/dydTy_MF{}_prof'.format(i)), 'Angular Deviation [mRad]', 'Displacement [mm]',phys_list)
hist_MuSct.append(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/dydTy_MF{}_prof'.format(i)))
labelHist(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/pdx_MF{}_prof'.format(i)), 'Displacement [mm]', 'Particle Momentum [GeV/c]',phys_list)
hist_MuSct.append(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/pdx_MF{}_prof'.format(i)))
labelHist(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/pdy_MF{}_prof'.format(i)), 'Displacement [mm]', 'Particle Momentum [GeV/c]',phys_list)
hist_MuSct.append(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/pdy_MF{}_prof'.format(i)))
labelHist(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/pdTx_MF{}_prof'.format(i)), 'Angular Deviation [mRad]', 'Particle Momentum [GeV/c]',phys_list)
hist_MuSct.append(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/pdTx_MF{}_prof'.format(i)))
labelHist(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/pdTy_MF{}_prof'.format(i)), 'Angular Deviation [mRad]', 'Particle Momentum [GeV/c]',phys_list)
hist_MuSct.append(infile.Get('MuonMultipleScatteringChecker/MuonMultipleScatteringTest/pdTy_MF{}_prof'.format(i)))
for histogram in hist_MuSct:
old_name = histogram.GetName()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment