Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
|
def | getCellName (partition, channel) |
|
def | getChannelsForCell (partition, cellName) |
|
def | getPartitionName (ros) |
|
def | getGainName (gain) |
|
def | getSampleName (sample) |
|
def | getTileHistogramName (name, separator='_', **kwargs) |
|
def | getTileHistogramTitle (title, **kwargs) |
|
def | getTileHistogramPath (path, **kwargs) |
|
def | getModuleLabels (partition) |
|
def | getCellChannelLabels (partition) |
|
def | getLabels (labels, partition='') |
|
def | getCellNameTMDB (partition, channel) |
|
def | getCellChannelTMDB_Labels (partition) |
|
def | getLegacyChannelForDemonstrator (useDemoCabling, partition, drawer, channel) |
|
def | addValueVsModuleAndChannelMaps (group, name, title, path, subDirectory=False, type='TH2D', value='', trigger='', run='') |
|
def | _getDimensions (triggers=[], perPartition=False, perSample=False, perGain=False, allPartitions=False) |
|
def | _parsePostfix (postfix, triggers=[], perPartition=False, perSample=False, perGain=False) |
|
def | addTile2DHistogramsArray (helper, algorithm, name='', xvalue='', yvalue='', value='', title='', path='', weight='', xbins=0, xmin=0., xmax=0., ybins=0, ymin=0., ymax=0., type='TH2D', run='', triggers=[], xlabels=(), ylabels=(), opt='', subDirectory=False, perPartition=False, perSample=False, perGain=False, allPartitions=False, separator='_', merge=None) |
|
def | addTileModuleChannelMapsArray (helper, algorithm, name, title, path, weight='', subDirectory=False, type='TH2D', value='', run='', triggers=[], perGain=False, separator='_') |
|
def | addTileModuleCorrelionMapsArray (helper, algorithm, name, title, path, weight='', subDirectory=False, type='TH2D', value='', run='', triggers=[], perGain=False, allPartitions=False, separator='_') |
|
def | addTileModulePartitionMapsArray (helper, algorithm, name, title, path, weight='', type='TH2D', value='', run='', triggers=[], perGain=False, separator='_') |
|
def | addTileModuleDigitizerMapsArray (helper, algorithm, name, title, path, weight='', subDirectory=False, type='TH2D', value='', run='', triggers=[], perGain=False, separator='_') |
|
def | addTileEtaPhiMapsArray (helper, algorithm, name, title, path, weight='', type='TH2D', value='', run='', triggers=[], perSample=True, perGain=False, separator='_', etaTitle='#eta', etabins=21, etamin=-2.025, etamax=2.025, phiTitle='#phi', phibins=Tile.MAX_DRAWER, phimin=-3.15, phimax=3.15) |
|
def | addTile1DHistogramsArray (helper, algorithm, name='', xvalue='', value='', title='', path='', weight='', xbins=0, xmin=0., xmax=0., type='TH1D', run='', triggers=[], subDirectory=False, perPartition=True, perSample=False, opt='', perGain=False, xlabels=(), allPartitions=False, separator='_', merge=None) |
|
def | addTileModuleArray (helper, algorithm, name, title, path, type='TH1D', value='', subDirectory=False, triggers=[], run='', separator='_') |
|
def | addTileTMDB2DScatterHistogramsArray (helper, algorithm, name='', xvalue='', yvalue='', xbins=0, xmin=0, xmax=0, title='', path='', type='TH2D', run='') |
|
def | addTileTMDB_2DHistogramsArray (helper, algorithm, name='', value='', title='', path='', type='TH2D', run='') |
|
def | addTileTMDB_1DHistogramsArray (helper, algorithm, name='', xvalue='', value='', title='', path='', xbins=0, xmin=0., xmax=0., type='TH1D', run='', perModule=False, isCorr=False) |
|
def | addTileChannelHistogramsArray (helper, algorithm, name, title, path, xvalue, xbins, xmin, xmax, type='TH1D', yvalue=None, ybins=None, ymin=None, ymax=None, run='', value='', aliasSuffix='') |
|
◆ _getDimensions()
def TileMonitoringCfgHelper._getDimensions |
( |
|
triggers = [] , |
|
|
|
perPartition = False , |
|
|
|
perSample = False , |
|
|
|
perGain = False , |
|
|
|
allPartitions = False |
|
) |
| |
|
private |
Definition at line 280 of file TileMonitoringCfgHelper.py.
280 def _getDimensions(triggers = [], perPartition = False, perSample = False, perGain = False, allPartitions = False):
284 dimensions += [
int(Tile.MAX_ROS)]
if allPartitions
else [
int(Tile.MAX_ROS - 1)]
286 dimensions += [len(_sampleName)]
288 dimensions += [
int(Tile.MAX_GAIN)]
290 dimensions += [len(triggers)]
◆ _parsePostfix()
def TileMonitoringCfgHelper._parsePostfix |
( |
|
postfix, |
|
|
|
triggers = [] , |
|
|
|
perPartition = False , |
|
|
|
perSample = False , |
|
|
|
perGain = False |
|
) |
| |
|
private |
Definition at line 295 of file TileMonitoringCfgHelper.py.
295 def _parsePostfix(postfix, triggers = [], perPartition = False, perSample = False, perGain = False):
298 elements = postfix.split(
'_')
301 kwargs[
'trigger'] = triggers[
int(elements.pop())]
307 kwargs[
'ros'] =
int(elements.pop()) + 1
◆ addTile1DHistogramsArray()
def TileMonitoringCfgHelper.addTile1DHistogramsArray |
( |
|
helper, |
|
|
|
algorithm, |
|
|
|
name = '' , |
|
|
|
xvalue = '' , |
|
|
|
value = '' , |
|
|
|
title = '' , |
|
|
|
path = '' , |
|
|
|
weight = '' , |
|
|
|
xbins = 0 , |
|
|
|
xmin = 0. , |
|
|
|
xmax = 0. , |
|
|
|
type = 'TH1D' , |
|
|
|
run = '' , |
|
|
|
triggers = [] , |
|
|
|
subDirectory = False , |
|
|
|
perPartition = True , |
|
|
|
perSample = False , |
|
|
|
opt = '' , |
|
|
|
perGain = False , |
|
|
|
xlabels = () , |
|
|
|
allPartitions = False , |
|
|
|
separator = '_' , |
|
|
|
merge = None |
|
) |
| |
This function configures 1D histograms with Tile monitored value per L1 trigger, partition, sample, gain.
Arguments:
helper -- Helper
algorithm -- Monitoring algorithm
name -- Name of histogram, actual name is constructed dynamicaly like:
name + partition + sample + trigger
xvalue -- Name of monitored value for x axis
value -- Name of monitored value (needed for TProfile)
title -- Title of histogram, actual title is constructed dynamicaly like:
run + trigger + partion + sample + title
path -- Path in file for histogram (relative to the path of given group)
subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
type -- Type of histogram (TH1D, TProfile)
run -- Run number (given it will be put into the title)
triggers -- Name of triggers (given it will be put into title and name of histogram)
perPartition -- Configure histograms per partition (if True partition name will be put into the title)
perSample -- Configure histograms per sample (if True sample name will be put into the title)
perGain -- Configure histograms per gain (if True gain name will be put into the title)
xlabels -- List of bin labels
allPartitions -- Configure additional histogram with information from all partitions
separator -- Given it will be used as separtor between name and trigger
merge -- Whether to use a different histogram merging algorithm (must be "merge" for opt=kAddBinsDynamically)
Definition at line 548 of file TileMonitoringCfgHelper.py.
549 weight = '', xbins = 0, xmin = 0., xmax = 0., type = 'TH1D', run = '', triggers = [],
550 subDirectory = False, perPartition = True, perSample = False, opt = '',
551 perGain = False, xlabels = (), allPartitions =
False, separator =
'_', merge =
None ):
553 This function configures 1D histograms with Tile monitored value per L1 trigger, partition, sample, gain.
557 algorithm -- Monitoring algorithm
558 name -- Name of histogram, actual name is constructed dynamicaly like:
559 name + partition + sample + trigger
560 xvalue -- Name of monitored value for x axis
561 value -- Name of monitored value (needed for TProfile)
562 title -- Title of histogram, actual title is constructed dynamicaly like:
563 run + trigger + partion + sample + title
564 path -- Path in file for histogram (relative to the path of given group)
565 subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
566 type -- Type of histogram (TH1D, TProfile)
567 run -- Run number (given it will be put into the title)
568 triggers -- Name of triggers (given it will be put into title and name of histogram)
569 perPartition -- Configure histograms per partition (if True partition name will be put into the title)
570 perSample -- Configure histograms per sample (if True sample name will be put into the title)
571 perGain -- Configure histograms per gain (if True gain name will be put into the title)
572 xlabels -- List of bin labels
573 allPartitions -- Configure additional histogram with information from all partitions
574 separator -- Given it will be used as separtor between name and trigger
575 merge -- Whether to use a different histogram merging algorithm (must be "merge" for opt=kAddBinsDynamically)
578 dimensions =
_getDimensions(triggers = triggers, perPartition = perPartition, perSample = perSample,
579 perGain = perGain, allPartitions = allPartitions)
581 array = helper.addArray(dimensions, algorithm, name, topPath = path)
582 for postfix, tool
in array.Tools.items():
584 kwargs =
_parsePostfix(postfix, triggers = triggers, perPartition = perPartition,
585 perSample = perSample, perGain = perGain)
587 partition = kwargs[
'partition']
if 'partition' in kwargs
else ''
590 fullName = xvalue + (
',' + value
if 'Profile' in type
else '') +
';'
596 tool.defineHistogram( fullName, path = subPath, weight = weight, type = type, title = fullTitle,
597 xlabels = nxlabels, xbins = xbins, xmin = xmin, xmax = xmax, opt = opt, merge = merge)
◆ addTile2DHistogramsArray()
def TileMonitoringCfgHelper.addTile2DHistogramsArray |
( |
|
helper, |
|
|
|
algorithm, |
|
|
|
name = '' , |
|
|
|
xvalue = '' , |
|
|
|
yvalue = '' , |
|
|
|
value = '' , |
|
|
|
title = '' , |
|
|
|
path = '' , |
|
|
|
weight = '' , |
|
|
|
xbins = 0 , |
|
|
|
xmin = 0. , |
|
|
|
xmax = 0. , |
|
|
|
ybins = 0 , |
|
|
|
ymin = 0. , |
|
|
|
ymax = 0. , |
|
|
|
type = 'TH2D' , |
|
|
|
run = '' , |
|
|
|
triggers = [] , |
|
|
|
xlabels = () , |
|
|
|
ylabels = () , |
|
|
|
opt = '' , |
|
|
|
subDirectory = False , |
|
|
|
perPartition = False , |
|
|
|
perSample = False , |
|
|
|
perGain = False , |
|
|
|
allPartitions = False , |
|
|
|
separator = '_' , |
|
|
|
merge = None |
|
) |
| |
This function configures 2D histograms with Tile monitored value per L1 trigger, partition, sample, gain.
Arguments:
helper -- Helper
algorithm -- Monitoring algorithm
name -- Name of histogram, actual name is constructed dynamicaly like:
name + partition + sample + gain + trigger
xvalue -- Name of monitored value for x axis
yvalue -- Name of monitored value for y axis
value -- Name of monitored value for profile (needed for TProfile2D)
title -- Title of histogram, actual title is constructed dynamicaly like:
run + trigger + partion + sample + title
path -- Path in file for histogram (relative to the path of given group)
subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
type -- Type of histogram (TH2D, TProfile2D)
run -- Run number (given it will be put into the title)
triggers -- Name of triggers (given it will be put into title and name of histogram)
xlabels -- List of bin labels for x axis, "modules" and "channels" have special meaning,
in this case corresponding labels will be generated dynamicaly
ylabels -- List of bin labels for y axis, "modules" and "channels" have special meaning,
in this case corresponding labels will be generated dynamicaly
perPartition -- Configure histograms per partition (if True partition name will be put into the title)
perSample -- Configure histograms per sample (if True sample name will be put into the title)
perGain -- Configure histograms per gain (if True gain name will be put into the title)
allPartitions -- Configure additional histogram with information from all partitions
separator -- Given it will be used as separtor between name and trigger
merge -- Whether to use a different histogram merging algorithm (must be "merge" for opt=kAddBinsDynamically)
Definition at line 312 of file TileMonitoringCfgHelper.py.
313 title = '', path = '', weight = '', xbins = 0, xmin = 0., xmax = 0.,
314 ybins = 0, ymin = 0., ymax = 0., type = 'TH2D', run = '', triggers = [],
315 xlabels = (), ylabels = (), opt =
'', subDirectory =
False, perPartition =
False,
316 perSample =
False, perGain =
False, allPartitions =
False, separator =
'_', merge =
None ):
318 This function configures 2D histograms with Tile monitored value per L1 trigger, partition, sample, gain.
322 algorithm -- Monitoring algorithm
323 name -- Name of histogram, actual name is constructed dynamicaly like:
324 name + partition + sample + gain + trigger
325 xvalue -- Name of monitored value for x axis
326 yvalue -- Name of monitored value for y axis
327 value -- Name of monitored value for profile (needed for TProfile2D)
328 title -- Title of histogram, actual title is constructed dynamicaly like:
329 run + trigger + partion + sample + title
330 path -- Path in file for histogram (relative to the path of given group)
331 subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
332 type -- Type of histogram (TH2D, TProfile2D)
333 run -- Run number (given it will be put into the title)
334 triggers -- Name of triggers (given it will be put into title and name of histogram)
335 xlabels -- List of bin labels for x axis, "modules" and "channels" have special meaning,
336 in this case corresponding labels will be generated dynamicaly
337 ylabels -- List of bin labels for y axis, "modules" and "channels" have special meaning,
338 in this case corresponding labels will be generated dynamicaly
339 perPartition -- Configure histograms per partition (if True partition name will be put into the title)
340 perSample -- Configure histograms per sample (if True sample name will be put into the title)
341 perGain -- Configure histograms per gain (if True gain name will be put into the title)
342 allPartitions -- Configure additional histogram with information from all partitions
343 separator -- Given it will be used as separtor between name and trigger
344 merge -- Whether to use a different histogram merging algorithm (must be "merge" for opt=kAddBinsDynamically)
349 dimensions =
_getDimensions(triggers = triggers, perPartition = perPartition, perSample = perSample,
350 perGain = perGain, allPartitions = allPartitions)
352 array = helper.addArray(dimensions, algorithm, name, topPath = path)
353 for postfix, tool
in array.Tools.items():
355 kwargs =
_parsePostfix(postfix, triggers = triggers, perPartition = perPartition,
356 perSample = perSample, perGain = perGain)
358 partition = kwargs[
'partition']
if 'partition' in kwargs
else ''
363 fullName = xvalue +
',' + yvalue + (
',' + value
if 'Profile' in type
else '') +
';'
368 gain = kwargs.get(
'gain',
None)
369 gainTitle = title.get(gain, title)
if gain
and builtins.type(title)
is dict
else title
370 partitionTitle = gainTitle[partition]
if builtins.type(gainTitle)
is dict
else gainTitle
373 tool.defineHistogram( fullName, path = subPath, type = type, title = fullTitle,
374 xlabels = nxlabels, ylabels = nylabels,
375 xbins = xbins, xmin = xmin, xmax = xmax,
376 ybins = ybins, ymin = ymin, ymax = ymax,
377 weight = weight, opt = opt, merge = merge)
◆ addTileChannelHistogramsArray()
def TileMonitoringCfgHelper.addTileChannelHistogramsArray |
( |
|
helper, |
|
|
|
algorithm, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
xvalue, |
|
|
|
xbins, |
|
|
|
xmin, |
|
|
|
xmax, |
|
|
|
type = 'TH1D' , |
|
|
|
yvalue = None , |
|
|
|
ybins = None , |
|
|
|
ymin = None , |
|
|
|
ymax = None , |
|
|
|
run = '' , |
|
|
|
value = '' , |
|
|
|
aliasSuffix = '' |
|
) |
| |
This function configures 1D histograms with Tile monitored value per module, channel, gain.
Arguments:
helper -- Helper
algorithm -- Monitoring algorithm
name -- Name of histogram, actual name is constructed dynamicaly like:
name + mudule + channel + gain
title -- Title of histogram, actual title is constructed dynamicaly like:
run + module + channel + gain + title
path -- Path in file for histogram (relative to the path of given group)
xvalue -- Name of monitored value for x axis
yvalue -- Name of monitored value for y axis
type -- Type of histogram (TH1D, TProfile, TH2D)
value -- Name of monitored value (needed for TProfile)
run -- Run number (given it will be put into the title)
xlabels -- List of bin labels
Definition at line 729 of file TileMonitoringCfgHelper.py.
730 xvalue, xbins, xmin, xmax, type='TH1D',
731 yvalue=None, ybins=None, ymin=None, ymax=None,
732 run='', value='', aliasSuffix=''):
734 This function configures 1D histograms with Tile monitored value per module, channel, gain.
738 algorithm -- Monitoring algorithm
739 name -- Name of histogram, actual name is constructed dynamicaly like:
740 name + mudule + channel + gain
741 title -- Title of histogram, actual title is constructed dynamicaly like:
742 run + module + channel + gain + title
743 path -- Path in file for histogram (relative to the path of given group)
744 xvalue -- Name of monitored value for x axis
745 yvalue -- Name of monitored value for y axis
746 type -- Type of histogram (TH1D, TProfile, TH2D)
747 value -- Name of monitored value (needed for TProfile)
748 run -- Run number (given it will be put into the title)
749 xlabels -- List of bin labels
753 dimensions = [
int(Tile.MAX_ROS) - 1,
int(Tile.MAX_DRAWER)]
754 array = helper.addArray(dimensions, algorithm, name, topPath = path)
756 for postfix, tool
in array.Tools.items():
757 ros, module = [
int(x)
for x
in postfix.split(
'_')[1:]]
758 moduleName = Tile.getDrawerString(ros + 1, module)
759 fullPath = moduleName
761 for channel
in range(0,
int(Tile.MAX_CHAN)):
762 channelName = f
'0{channel}' if channel < 10
else str(channel)
763 for gain
in range(0, Tile.MAX_GAIN):
764 gainName = {0 :
'low', 1 :
'high'}[gain]
765 nameSuffix = aliasSuffix
if aliasSuffix
else xvalue
766 fullName = f
'{xvalue}_{channel}_{gain}'
767 fullName += f
',{yvalue}_{channel}_{gain}' if yvalue
else ""
768 fullName += f
',{value}_{channel}_{gain};' if 'Profile' in type
else ';'
769 fullName += f
'{moduleName}_ch_{channelName}_{gainName[:2]}_{nameSuffix}'
770 fullTitle = f
'Run {run} {moduleName} Channel {channelName} {gainName} gain: {title}'
772 xbinsInGain = xbins[gain]
if builtins.type(xbins)
is list
else xbins
773 xminInGain = xmin[gain]
if builtins.type(xmin)
is list
else xmin
774 xmaxInGain = xmax[gain]
if builtins.type(xmax)
is list
else xmax
776 ybinsInGain = ybins[gain]
if builtins.type(ybins)
is list
else ybins
777 yminInGain = ymin[gain]
if builtins.type(ymin)
is list
else ymin
778 ymaxInGain = ymax[gain]
if builtins.type(ymax)
is list
else ymax
780 tool.defineHistogram(fullName, title = fullTitle, path = fullPath, type = type,
781 xbins = xbinsInGain, xmin = xminInGain, xmax = xmaxInGain,
782 ybins = ybinsInGain, ymin = yminInGain, ymax = ymaxInGain)
◆ addTileEtaPhiMapsArray()
def TileMonitoringCfgHelper.addTileEtaPhiMapsArray |
( |
|
helper, |
|
|
|
algorithm, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
weight = '' , |
|
|
|
type = 'TH2D' , |
|
|
|
value = '' , |
|
|
|
run = '' , |
|
|
|
triggers = [] , |
|
|
|
perSample = True , |
|
|
|
perGain = False , |
|
|
|
separator = '_' , |
|
|
|
etaTitle = '#eta' , |
|
|
|
etabins = 21 , |
|
|
|
etamin = -2.025 , |
|
|
|
etamax = 2.025 , |
|
|
|
phiTitle = '#phi' , |
|
|
|
phibins = Tile.MAX_DRAWER , |
|
|
|
phimin = -3.15 , |
|
|
|
phimax = 3.15 |
|
) |
| |
This function configures 2D histograms (maps) with Tile monitored value vs eta and phi.
Arguments:
helper -- Helper
algorithm -- Monitoring algorithm
name -- Name of histogram, actual name is constructed dynamicaly like:
name + sample + gain + trigger
title -- Title of histogram, actual title is constructed dynamicaly like:
run + trigger + sample + gain + title
path -- Path in file for histogram (relative to the path of given group)
type -- Type of histogram (TH2D, TProfile2D)
value -- Name of monitored value (needed for TProfile2D)
run -- Run number (given it will be put into the title)
triggers -- Name of trigger (given it will be put into title and name of histogram)
perSample -- Configure histograms per sample (if True sample name will be put into the title)
perGain -- Configure histograms per gain (if True gain name will be put into the title)
separator -- Given it will be used as separtor between name, gain, and trigger
Definition at line 513 of file TileMonitoringCfgHelper.py.
514 run = '', triggers = [], perSample = True, perGain = False, separator = '_',
515 etaTitle= '#eta', etabins = 21, etamin = -2.025, etamax = 2.025,
516 phiTitle = '#phi', phibins = Tile.MAX_DRAWER, phimin = -3.15, phimax = 3.15):
518 This function configures 2D histograms (maps) with Tile monitored value vs eta and phi.
522 algorithm -- Monitoring algorithm
523 name -- Name of histogram, actual name is constructed dynamicaly like:
524 name + sample + gain + trigger
525 title -- Title of histogram, actual title is constructed dynamicaly like:
526 run + trigger + sample + gain + title
527 path -- Path in file for histogram (relative to the path of given group)
528 type -- Type of histogram (TH2D, TProfile2D)
529 value -- Name of monitored value (needed for TProfile2D)
530 run -- Run number (given it will be put into the title)
531 triggers -- Name of trigger (given it will be put into title and name of histogram)
532 perSample -- Configure histograms per sample (if True sample name will be put into the title)
533 perGain -- Configure histograms per gain (if True gain name will be put into the title)
534 separator -- Given it will be used as separtor between name, gain, and trigger
538 title = title +
';' + etaTitle +
';' + phiTitle,
539 path = path, weight = weight, type = type,
540 xvalue =
'eta', yvalue =
'phi', value = value,
541 xbins = etabins, xmin = etamin, xmax = etamax,
542 ybins = phibins, ymin = phimin, ymax = phimax,
543 run = run, triggers = triggers, perGain = perGain,
544 perSample = perSample, separator = separator)
◆ addTileModuleArray()
def TileMonitoringCfgHelper.addTileModuleArray |
( |
|
helper, |
|
|
|
algorithm, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
type = 'TH1D' , |
|
|
|
value = '' , |
|
|
|
subDirectory = False , |
|
|
|
triggers = [] , |
|
|
|
run = '' , |
|
|
|
separator = '_' |
|
) |
| |
This function configures 1D histograms with Tile monitored value vs module per partition.
Arguments:
helper -- Helper
algorithm -- Monitoring algorithm
name -- Name of histogram, actual name is constructed dynamicaly like:
name + partition + trigger
title -- Title of histogram, actual title is constructed dynamicaly like:
run + trigger + partion + title
path -- Path in file for histogram (relative to the path of given group)
type -- Type of histogram (TH1D, TProfile)
value -- Name of monitored value (needed for TProfile)
subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
run -- Run number (given it will be put into the title)
separator -- Given it will be used as separtor between name and trigger
Definition at line 604 of file TileMonitoringCfgHelper.py.
605 type = 'TH1D', value = '', subDirectory = False,
606 triggers = [], run = '', separator = '_'):
608 This function configures 1D histograms with Tile monitored value vs module per partition.
612 algorithm -- Monitoring algorithm
613 name -- Name of histogram, actual name is constructed dynamicaly like:
614 name + partition + trigger
615 title -- Title of histogram, actual title is constructed dynamicaly like:
616 run + trigger + partion + title
617 path -- Path in file for histogram (relative to the path of given group)
618 type -- Type of histogram (TH1D, TProfile)
619 value -- Name of monitored value (needed for TProfile)
620 subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
621 run -- Run number (given it will be put into the title)
622 separator -- Given it will be used as separtor between name and trigger
626 xvalue =
'module', value = value, title = title, path = path,
627 xbins = Tile.MAX_DRAWER, xmin = -0.5, xmax = Tile.MAX_DRAWER - 0.5,
628 run = run, triggers = triggers, subDirectory = subDirectory,
629 xlabels = (
'modules'), perPartition =
True, separator = separator )
◆ addTileModuleChannelMapsArray()
def TileMonitoringCfgHelper.addTileModuleChannelMapsArray |
( |
|
helper, |
|
|
|
algorithm, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
weight = '' , |
|
|
|
subDirectory = False , |
|
|
|
type = 'TH2D' , |
|
|
|
value = '' , |
|
|
|
run = '' , |
|
|
|
triggers = [] , |
|
|
|
perGain = False , |
|
|
|
separator = '_' |
|
) |
| |
This function configures 2D histograms (maps) with Tile monitored value vs module and channel per partition.
Arguments:
helper -- Helper
algorithm -- Monitoring algorithm
name -- Name of histogram, actual name is constructed dynamicaly like:
name + partition + gain + trigger
title -- Title of histogram, actual title is constructed dynamicaly like:
run + trigger + partion + gain + title
path -- Path in file for histogram (relative to the path of given group)
subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
type -- Type of histogram (TH2D, TProfile2D)
value -- Name of monitored value (needed for TProfile2D)
run -- Run number (given it will be put into the title)
triggers -- Name of triggers (given it will be put into title and name of histogram)
perGain -- Configure histograms per gain (if True gain name will be put into the title)
separator -- Given it will be used as separtor between name, gain, and trigger
Definition at line 382 of file TileMonitoringCfgHelper.py.
383 subDirectory = False, type = 'TH2D', value = '',
384 run = '', triggers = [], perGain = False, separator = '_'):
386 This function configures 2D histograms (maps) with Tile monitored value vs module and channel per partition.
390 algorithm -- Monitoring algorithm
391 name -- Name of histogram, actual name is constructed dynamicaly like:
392 name + partition + gain + trigger
393 title -- Title of histogram, actual title is constructed dynamicaly like:
394 run + trigger + partion + gain + title
395 path -- Path in file for histogram (relative to the path of given group)
396 subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
397 type -- Type of histogram (TH2D, TProfile2D)
398 value -- Name of monitored value (needed for TProfile2D)
399 run -- Run number (given it will be put into the title)
400 triggers -- Name of triggers (given it will be put into title and name of histogram)
401 perGain -- Configure histograms per gain (if True gain name will be put into the title)
402 separator -- Given it will be used as separtor between name, gain, and trigger
406 xvalue =
'module', yvalue =
'channel', value = value, type = type,
407 xbins = Tile.MAX_DRAWER, xmin = -0.5, xmax = Tile.MAX_DRAWER - 0.5,
408 ybins = Tile.MAX_CHAN, ymin = -0.5, ymax = Tile.MAX_CHAN - 0.5,
409 run = run, xlabels = (
'modules'), ylabels = (
'channels'),
410 triggers = triggers, subDirectory = subDirectory, perGain = perGain,
411 perPartition =
True, separator = separator)
◆ addTileModuleCorrelionMapsArray()
def TileMonitoringCfgHelper.addTileModuleCorrelionMapsArray |
( |
|
helper, |
|
|
|
algorithm, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
weight = '' , |
|
|
|
subDirectory = False , |
|
|
|
type = 'TH2D' , |
|
|
|
value = '' , |
|
|
|
run = '' , |
|
|
|
triggers = [] , |
|
|
|
perGain = False , |
|
|
|
allPartitions = False , |
|
|
|
separator = '_' |
|
) |
| |
This function configures 2D histograms (maps) with Tile monitored value vs module and channel per partition.
Arguments:
helper -- Helper
algorithm -- Monitoring algorithm
name -- Name of histogram, actual name is constructed dynamicaly like:
name + partition + gain + trigger
title -- Title of histogram, actual title is constructed dynamicaly like:
run + trigger + partion + gain + title
path -- Path in file for histogram (relative to the path of given group)
subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
type -- Type of histogram (TH2D, TProfile2D)
value -- Name of monitored value (needed for TProfile2D)
run -- Run number (given it will be put into the title)
triggers -- Name of triggers (given it will be put into title and name of histogram)
perGain -- Configure histograms per gain (if True gain name will be put into the title)
allPartitions -- Configure additional histogram with information from all partitions
separator -- Given it will be used as separtor between name, gain, and trigger
Definition at line 414 of file TileMonitoringCfgHelper.py.
415 subDirectory = False, type = 'TH2D', value = '', run = '',
416 triggers = [], perGain = False, allPartitions = False, separator = '_'):
418 This function configures 2D histograms (maps) with Tile monitored value vs module and channel per partition.
422 algorithm -- Monitoring algorithm
423 name -- Name of histogram, actual name is constructed dynamicaly like:
424 name + partition + gain + trigger
425 title -- Title of histogram, actual title is constructed dynamicaly like:
426 run + trigger + partion + gain + title
427 path -- Path in file for histogram (relative to the path of given group)
428 subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
429 type -- Type of histogram (TH2D, TProfile2D)
430 value -- Name of monitored value (needed for TProfile2D)
431 run -- Run number (given it will be put into the title)
432 triggers -- Name of triggers (given it will be put into title and name of histogram)
433 perGain -- Configure histograms per gain (if True gain name will be put into the title)
434 allPartitions -- Configure additional histogram with information from all partitions
435 separator -- Given it will be used as separtor between name, gain, and trigger
439 xvalue =
'firstModule', yvalue =
'secondModule', value = value,
440 xbins = Tile.MAX_DRAWER, xmin = -0.5, xmax = Tile.MAX_DRAWER - 0.5,
441 ybins = Tile.MAX_DRAWER, ymin = -0.5, ymax = Tile.MAX_DRAWER - 0.5,
442 run = run, xlabels = (
'modules'), ylabels = (
'modules'), type = type,
443 triggers = triggers, subDirectory = subDirectory, perGain = perGain,
444 perPartition =
True, allPartitions = allPartitions, separator = separator)
◆ addTileModuleDigitizerMapsArray()
def TileMonitoringCfgHelper.addTileModuleDigitizerMapsArray |
( |
|
helper, |
|
|
|
algorithm, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
weight = '' , |
|
|
|
subDirectory = False , |
|
|
|
type = 'TH2D' , |
|
|
|
value = '' , |
|
|
|
run = '' , |
|
|
|
triggers = [] , |
|
|
|
perGain = False , |
|
|
|
separator = '_' |
|
) |
| |
This function configures 2D histograms (maps) with Tile monitored value vs module and digitizer per partition.
Arguments:
helper -- Helper
algorithm -- Monitoring algorithm
name -- Name of histogram, actual name is constructed dynamicaly like:
name + partition + gain + trigger
title -- Title of histogram, actual title is constructed dynamicaly like:
run + trigger + partion + gain + title
path -- Path in file for histogram (relative to the path of given group)
subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
type -- Type of histogram (TH2D, TProfile2D)
value -- Name of monitored value (needed for TProfile2D)
run -- Run number (given it will be put into the title)
triggers -- Name of triggers (given it will be put into title and name of histogram)
perGain -- Configure histograms per gain (if True gain name will be put into the title)
separator -- Given it will be used as separtor between name, gain, and trigger
Definition at line 481 of file TileMonitoringCfgHelper.py.
482 subDirectory = False, type = 'TH2D', value = '',
483 run = '', triggers = [], perGain = False, separator = '_'):
485 This function configures 2D histograms (maps) with Tile monitored value vs module and digitizer per partition.
489 algorithm -- Monitoring algorithm
490 name -- Name of histogram, actual name is constructed dynamicaly like:
491 name + partition + gain + trigger
492 title -- Title of histogram, actual title is constructed dynamicaly like:
493 run + trigger + partion + gain + title
494 path -- Path in file for histogram (relative to the path of given group)
495 subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
496 type -- Type of histogram (TH2D, TProfile2D)
497 value -- Name of monitored value (needed for TProfile2D)
498 run -- Run number (given it will be put into the title)
499 triggers -- Name of triggers (given it will be put into title and name of histogram)
500 perGain -- Configure histograms per gain (if True gain name will be put into the title)
501 separator -- Given it will be used as separtor between name, gain, and trigger
505 weight = weight, xvalue =
'module', yvalue =
'digitizer', value = value,
506 xbins = Tile.MAX_DRAWER, xmin = -0.5, xmax = Tile.MAX_DRAWER - 0.5,
507 ybins = 8, ymin = 0.5, ymax = 8.5, run = run, xlabels = (
'modules'),
508 ylabels = (), triggers = triggers, type = type,subDirectory = subDirectory,
509 perGain = perGain, perPartition =
True, separator = separator)
◆ addTileModulePartitionMapsArray()
def TileMonitoringCfgHelper.addTileModulePartitionMapsArray |
( |
|
helper, |
|
|
|
algorithm, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
weight = '' , |
|
|
|
type = 'TH2D' , |
|
|
|
value = '' , |
|
|
|
run = '' , |
|
|
|
triggers = [] , |
|
|
|
perGain = False , |
|
|
|
separator = '_' |
|
) |
| |
This function configures 2D histograms (maps) with Tile monitored value vs module and partition.
Arguments:
helper -- Helper
algorithm -- Monitoring algorithm
name -- Name of histogram, actual name is constructed dynamicaly like:
name + partition + gain + trigger
title -- Title of histogram, actual title is constructed dynamicaly like:
run + trigger + partion + gain + title
path -- Path in file for histogram (relative to the path of given group)
type -- Type of histogram (TH2D, TProfile2D)
value -- Name of monitored value (needed for TProfile2D)
run -- Run number (given it will be put into the title)
triggers -- Name of triggers (given it will be put into title and name of histogram)
perGain -- Configure histograms per gain (if True gain name will be put into the title)
separator -- Given it will be used as separtor between name, gain, and trigger
Definition at line 448 of file TileMonitoringCfgHelper.py.
449 type = 'TH2D', value = '', run = '', triggers = [],
450 perGain = False, separator = '_'):
452 This function configures 2D histograms (maps) with Tile monitored value vs module and partition.
456 algorithm -- Monitoring algorithm
457 name -- Name of histogram, actual name is constructed dynamicaly like:
458 name + partition + gain + trigger
459 title -- Title of histogram, actual title is constructed dynamicaly like:
460 run + trigger + partion + gain + title
461 path -- Path in file for histogram (relative to the path of given group)
462 type -- Type of histogram (TH2D, TProfile2D)
463 value -- Name of monitored value (needed for TProfile2D)
464 run -- Run number (given it will be put into the title)
465 triggers -- Name of triggers (given it will be put into title and name of histogram)
466 perGain -- Configure histograms per gain (if True gain name will be put into the title)
467 separator -- Given it will be used as separtor between name, gain, and trigger
471 path = path, weight = weight, run = run, type = type,
472 xvalue =
'module', yvalue =
'partition', value = value,
473 xbins = Tile.MAX_DRAWER, xmin = -0.5, xmax = Tile.MAX_DRAWER - 0.5,
474 ybins = Tile.MAX_ROS - 1, ymin = -0.5, ymax = Tile.MAX_ROS - 1.5,
475 xlabels = [
str(module)
for module
in range(1, Tile.MAX_DRAWER + 1)],
477 triggers = triggers, perGain = perGain, separator = separator)
◆ addTileTMDB2DScatterHistogramsArray()
def TileMonitoringCfgHelper.addTileTMDB2DScatterHistogramsArray |
( |
|
helper, |
|
|
|
algorithm, |
|
|
|
name = '' , |
|
|
|
xvalue = '' , |
|
|
|
yvalue = '' , |
|
|
|
xbins = 0 , |
|
|
|
xmin = 0 , |
|
|
|
xmax = 0 , |
|
|
|
title = '' , |
|
|
|
path = '' , |
|
|
|
type = 'TH2D' , |
|
|
|
run = '' |
|
) |
| |
Definition at line 632 of file TileMonitoringCfgHelper.py.
633 xbins = 0, xmin = 0, xmax = 0,
634 title = '', path = '', type = 'TH2D', run = ''):
635 for ros
in range(1, Tile.MAX_ROS):
637 baseName =
"{}_{}".
format(name, partition)
638 nChannels = len(_cellNameTMDB_LB)
if partition.startswith(
'L')
else len(_cellNameTMDB_EB)
640 dimensions = [
int(Tile.MAX_DRAWER), nChannels, nChannels]
641 array = helper.addArray(dimensions, algorithm, baseName, topPath = path)
642 for postfix, tool
in array.Tools.items():
643 elements = postfix.split(
'_')
645 channel1 =
int(elements.pop())
646 channel2 =
int(elements.pop())
650 module =
'{}'.
format(
int(elements.pop()) + 1).rjust(2,
'0')
652 fullName =
'{},{};{}{}_{}_{}'.
format(xvalue, yvalue,
653 baseName, module, cell1, cell2)
654 hist_path = partition + module
656 moduleOrPartition =
'Module ' + partition + module + partition
657 fullTitle =
'Run {} {} TMDB {}x{}: {};{};{}'.
format(run, moduleOrPartition, cell1, cell2, title, cell1, cell2)
659 tool.defineHistogram(fullName, path = hist_path, type = type, title = fullTitle,
660 xbins = xbins, xmin = xmin, xmax = xmax,
661 ybins = xbins, ymin = xmin, ymax = xmax)
◆ addTileTMDB_1DHistogramsArray()
def TileMonitoringCfgHelper.addTileTMDB_1DHistogramsArray |
( |
|
helper, |
|
|
|
algorithm, |
|
|
|
name = '' , |
|
|
|
xvalue = '' , |
|
|
|
value = '' , |
|
|
|
title = '' , |
|
|
|
path = '' , |
|
|
|
xbins = 0 , |
|
|
|
xmin = 0. , |
|
|
|
xmax = 0. , |
|
|
|
type = 'TH1D' , |
|
|
|
run = '' , |
|
|
|
perModule = False , |
|
|
|
isCorr = False |
|
) |
| |
Definition at line 685 of file TileMonitoringCfgHelper.py.
686 path = '', xbins = 0, xmin = 0., xmax = 0., type = 'TH1D', run = '',
687 perModule = False, isCorr=False):
689 for ros
in range(1, Tile.MAX_ROS):
691 baseName =
"{}_{}".
format(name, partition)
692 nChannels = len(_cellNameTMDB_LB)
if partition.startswith(
'L')
else len(_cellNameTMDB_EB)
694 dimensions = [
int(Tile.MAX_DRAWER), nChannels]
if perModule
else [nChannels]
696 dimensions = [
int(Tile.MAX_DRAWER), nChannels, nChannels]
698 array = helper.addArray(dimensions, algorithm, baseName, topPath = path)
699 for postfix, tool
in array.Tools.items():
700 elements = postfix.split(
'_')
702 channel =
int(elements.pop())
704 module =
'{}'.
format(
int(elements.pop()) + 1).rjust(2,
'0')
if perModule
else ''
706 fullName =
'{}{};{}{}_{}'.
format(xvalue, (
',' + value
if 'Profile' in type
else ''),
707 baseName, (module
if perModule
else ''), cell)
709 moduleOrPartition =
'Module ' + partition + module
if perModule
else 'Partition ' + partition
710 fullTitle =
'Run {} {} TMDB {}: {}'.
format(run, moduleOrPartition, cell, title)
712 channel1 =
int(elements.pop())
713 channel2 =
int(elements.pop())
717 module =
'{}'.
format(
int(elements.pop()) + 1).rjust(2,
'0')
if perModule
else ''
719 fullName =
'{}{};{}{}_{}_{}'.
format(xvalue, (
',' + value
if 'Profile' in type
else ''),
720 baseName, (module
if perModule
else ''), cell1, cell2)
722 moduleOrPartition =
'Module ' + partition + module
if perModule
else 'Partition ' + partition
723 fullTitle =
'Run {} {} TMDB {}x{}: {}'.
format(run, moduleOrPartition, cell1, cell2, title)
725 tool.defineHistogram(fullName, path =
'', type = type, title = fullTitle,
726 xbins = xbins, xmin = xmin, xmax = xmax)
◆ addTileTMDB_2DHistogramsArray()
def TileMonitoringCfgHelper.addTileTMDB_2DHistogramsArray |
( |
|
helper, |
|
|
|
algorithm, |
|
|
|
name = '' , |
|
|
|
value = '' , |
|
|
|
title = '' , |
|
|
|
path = '' , |
|
|
|
type = 'TH2D' , |
|
|
|
run = '' |
|
) |
| |
Definition at line 664 of file TileMonitoringCfgHelper.py.
665 title = '', path = '', type = 'TH2D', run = ''):
666 array = helper.addArray([
int(Tile.MAX_ROS - 1)], algorithm, name, topPath = path)
667 for postfix, tool
in array.Tools.items():
668 ros =
int(postfix.split(
'_').pop()) + 1
673 ybins = len(nylabels)
675 fullName =
'module,channel' + (
',' + value
if 'Profile' in type
else '') +
';'
680 tool.defineHistogram( fullName, path =
'', type = type, title = fullTitle,
681 xlabels = nxlabels, ylabels = nylabels,
682 xbins = Tile.MAX_DRAWER, xmin = -0.5, xmax = Tile.MAX_DRAWER - 0.5,
683 ybins = ybins, ymin = -0.5, ymax = ybins - 0.5)
◆ addValueVsModuleAndChannelMaps()
def TileMonitoringCfgHelper.addValueVsModuleAndChannelMaps |
( |
|
group, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
subDirectory = False , |
|
|
|
type = 'TH2D' , |
|
|
|
value = '' , |
|
|
|
trigger = '' , |
|
|
|
run = '' |
|
) |
| |
This function configures 2D histograms (maps) with Tile monitored value vs module and channel per partion.
Arguments:
group -- Group (technically, a GenericMonitoringTool instance)
name -- Name of histogram (actual name is constructed dynamicaly like: name + partition + trigger)
title -- Title of histogram (actual title is constructed dynamicaly like: run + trigger + partion + title)
path -- Path in file for histogram (relative to the path of given group)
subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
type -- Type of histogram (TH2D, TProfile2D)
value -- Name of monitored value (needed for TProfile2D)
trigger -- Name of trigger (given it will be put into title and name of histogram)
run -- Run number (given it will be put into the title)
Definition at line 233 of file TileMonitoringCfgHelper.py.
235 This function configures 2D histograms (maps) with Tile monitored value vs module and channel per partion.
238 group -- Group (technically, a GenericMonitoringTool instance)
239 name -- Name of histogram (actual name is constructed dynamicaly like: name + partition + trigger)
240 title -- Title of histogram (actual title is constructed dynamicaly like: run + trigger + partion + title)
241 path -- Path in file for histogram (relative to the path of given group)
242 subDirectory -- Put the configured histograms into sub directory named like partion (True, False)
243 type -- Type of histogram (TH2D, TProfile2D)
244 value -- Name of monitored value (needed for TProfile2D)
245 trigger -- Name of trigger (given it will be put into title and name of histogram)
246 run -- Run number (given it will be put into the title)
249 for ros
in range(1, Tile.MAX_ROS):
253 for module
in range(1, Tile.MAX_DRAWER + 1):
254 label = partition +
'0' +
str(module)
if module < 10
else partition +
str(module)
255 xlabels.append(label)
257 for channel
in range(0, Tile.MAX_CHAN):
259 label = cellName +
'_' +
'ch' +
str(channel)
if cellName
else 'ch' +
str(channel)
260 ylabels.append(label)
262 fullName =
'module' + partition +
',channel' + partition
263 if 'Profile' in type:
264 fullName += (
',' + value + partition)
265 fullName +=
';' + name + partition + trigger
267 fullPath = path +
'/' + partition
if subDirectory
else path
269 fullTitle =
'Partition ' + partition +
': ' + title
271 fullTitle =
'Trigger ' + trigger +
' ' + fullTitle
273 fullTitle =
'Run ' + run +
' ' + fullTitle
275 group.defineHistogram( fullName, path = fullPath, type = type, title = fullTitle,
276 xbins = 64, xmin = 0.5, xmax = 64.5, ybins = 48, ymin = -0.5, ymax = 47.5,
277 xlabels = xlabels, ylabels = ylabels )
◆ getCellChannelLabels()
def TileMonitoringCfgHelper.getCellChannelLabels |
( |
|
partition | ) |
|
This function returns list of Tile cell names with channes for given partition.
Arguments:
partition -- Tile partition name (LBA, LBC, EBA, EBC)
Definition at line 169 of file TileMonitoringCfgHelper.py.
171 This function returns list of Tile cell names with channes for given partition.
174 partition -- Tile partition name (LBA, LBC, EBA, EBC)
178 for channel
in range(0, Tile.MAX_CHAN):
180 label = cellName +
'_' +
'ch' +
str(channel)
if cellName
else 'ch' +
str(channel)
◆ getCellChannelTMDB_Labels()
def TileMonitoringCfgHelper.getCellChannelTMDB_Labels |
( |
|
partition | ) |
|
◆ getCellName()
def TileMonitoringCfgHelper.getCellName |
( |
|
partition, |
|
|
|
channel |
|
) |
| |
This function returns name of Tile cell for given partition and channel.
Arguments:
partition -- Tile partition name (LBA, LBC, EBA, EBC)
channel -- Tile channel number ([0..47])
Definition at line 29 of file TileMonitoringCfgHelper.py.
31 This function returns name of Tile cell for given partition and channel.
34 partition -- Tile partition name (LBA, LBC, EBA, EBC)
35 channel -- Tile channel number ([0..47])
37 return _cellNameLB[channel]
if partition.startswith(
'L')
else _cellNameEB[channel]
◆ getCellNameTMDB()
def TileMonitoringCfgHelper.getCellNameTMDB |
( |
|
partition, |
|
|
|
channel |
|
) |
| |
Definition at line 206 of file TileMonitoringCfgHelper.py.
207 return _cellNameTMDB_LB[channel]
if partition.startswith(
'L')
else _cellNameTMDB_EB[channel]
◆ getChannelsForCell()
def TileMonitoringCfgHelper.getChannelsForCell |
( |
|
partition, |
|
|
|
cellName |
|
) |
| |
This function returns channel numbers of Tile cell for given partition and cell.
Arguments:
partition -- Tile partition name (LBA, LBC, EBA, EBC)
cellName -- Tile cell name (A1, B1, ...)
Definition at line 40 of file TileMonitoringCfgHelper.py.
42 This function returns channel numbers of Tile cell for given partition and cell.
45 partition -- Tile partition name (LBA, LBC, EBA, EBC)
46 cellName -- Tile cell name (A1, B1, ...)
48 cellNames = _cellNameLB
if partition.startswith(
'L')
else _cellNameEB
49 return [channel
for channel, cell
in enumerate(cellNames)
if cell == cellName]
◆ getGainName()
def TileMonitoringCfgHelper.getGainName |
( |
|
gain | ) |
|
This function returns name of Tile gain name
Arguments:
gain -- Tile gain ([0,1])
Definition at line 62 of file TileMonitoringCfgHelper.py.
64 This function returns name of Tile gain name
67 gain -- Tile gain ([0,1])
69 return _gainName[
int(gain)]
◆ getLabels()
def TileMonitoringCfgHelper.getLabels |
( |
|
labels, |
|
|
|
partition = '' |
|
) |
| |
This function returns list of labels for Tile histograms.
This function returns list of Tile module or channel names for given partition
in the case of input labels is modules or channels. Otherwise it returns given labels.
Arguments:
labels -- List of labels, "modules" and "channels" have special meaning,
in this case corresponding labels will be generated dynamicaly
partition -- Tile partition name (LBA, LBC, EBA, EBC)
Definition at line 185 of file TileMonitoringCfgHelper.py.
187 This function returns list of labels for Tile histograms.
189 This function returns list of Tile module or channel names for given partition
190 in the case of input labels is modules or channels. Otherwise it returns given labels.
193 labels -- List of labels, "modules" and "channels" have special meaning,
194 in this case corresponding labels will be generated dynamicaly
195 partition -- Tile partition name (LBA, LBC, EBA, EBC)
198 if 'modules' in labels:
200 elif 'channels' in labels:
◆ getLegacyChannelForDemonstrator()
def TileMonitoringCfgHelper.getLegacyChannelForDemonstrator |
( |
|
useDemoCabling, |
|
|
|
partition, |
|
|
|
drawer, |
|
|
|
channel |
|
) |
| |
Function to get legacy channel number from Tile Demonatrator
Definition at line 213 of file TileMonitoringCfgHelper.py.
214 ''' Function to get legacy channel number from Tile Demonatrator '''
216 legacyChannel = channel
217 if (useDemoCabling == 2015
and partition ==
'EBC' and drawer == 1):
218 demo2legacy = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
219 26, 25, 24, 29, 31, 32, 27, 28, 30, 35, 34, 33, 38, 37, 43, 44, 41, 40, 39, 36, 42, 47, 46, 45]
220 legacyChannel = demo2legacy[channel]
221 elif useDemoCabling >= 2016
and useDemoCabling <= 2019
and partition ==
'LBC' and (drawer == 1
or drawer > 2):
222 demo2legacy = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
223 26, 25, 24, 29, 28, 27, 32, 31, 30, 35, 34, 33, 38, 37, 36, 41, 40, 39, 44, 43, 42, 47, 46, 45]
224 legacyChannel = demo2legacy[channel]
225 elif useDemoCabling >= 2018
and partition ==
'EBC' and drawer >= 2:
226 demo2legacyEB = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
227 31, 32, 30, 35, 33, 34, 38, 37, 41, 40, 39, 36, 26, 25, 24, 29, 28, 27, 44, 43, 42, 47, 46, 45]
228 legacyChannel = demo2legacyEB[channel]
◆ getModuleLabels()
def TileMonitoringCfgHelper.getModuleLabels |
( |
|
partition | ) |
|
This function returns list of Tile module names for given partition.
Arguments:
partition -- Tile partition name (LBA, LBC, EBA, EBC)
Definition at line 152 of file TileMonitoringCfgHelper.py.
154 This function returns list of Tile module names for given partition.
157 partition -- Tile partition name (LBA, LBC, EBA, EBC)
160 if partition ==
'AllPart':
161 labels = [
str(module)
for module
in range(1, Tile.MAX_DRAWER + 1)]
163 ros = {
'LBA' : 1,
'LBC' : 2,
'EBA' : 3,
'EBC' : 4}
164 labels = [Tile.getDrawerString(ros[partition], module)
for module
in range(0, Tile.MAX_DRAWER)]
◆ getPartitionName()
def TileMonitoringCfgHelper.getPartitionName |
( |
|
ros | ) |
|
This function returns name of Tile partition for given ROS.
Arguments:
ros -- Tile ROS ([0..5])
Definition at line 52 of file TileMonitoringCfgHelper.py.
54 This function returns name of Tile partition for given ROS.
57 ros -- Tile ROS ([0..5])
59 return _partitionName[ros]
◆ getSampleName()
def TileMonitoringCfgHelper.getSampleName |
( |
|
sample | ) |
|
This function returns name of Tile sample name
Arguments:
sample -- Tile sample ([0..4])
Definition at line 72 of file TileMonitoringCfgHelper.py.
74 This function returns name of Tile sample name
77 sample -- Tile sample ([0..4])
79 return _sampleName[
int(sample)]
◆ getTileHistogramName()
def TileMonitoringCfgHelper.getTileHistogramName |
( |
|
name, |
|
|
|
separator = '_' , |
|
|
** |
kwargs |
|
) |
| |
This function returns name of Tile histogram.
Arguments:
name -- Name of histogram, actual name is constructed dynamicaly like:
name [+ partition] [+ sample] [+gain] [+ trigger]
separator -- Separtor between name, partition, sample, gain, and trigger
Definition at line 82 of file TileMonitoringCfgHelper.py.
84 This function returns name of Tile histogram.
87 name -- Name of histogram, actual name is constructed dynamicaly like:
88 name [+ partition] [+ sample] [+gain] [+ trigger]
89 separator -- Separtor between name, partition, sample, gain, and trigger
92 partition = kwargs.get(
'partition',
'')
93 trigger = kwargs.get(
'trigger',
'')
94 sample = kwargs.get(
'sample',
'')
95 gain = kwargs.get(
'gain',
'')
98 fullName += separator + partition
if partition
else ''
99 fullName += separator + sample
if sample
else ''
100 fullName += separator + gain
if gain
else ''
101 fullName += separator + trigger
if trigger
else ''
◆ getTileHistogramPath()
def TileMonitoringCfgHelper.getTileHistogramPath |
( |
|
path, |
|
|
** |
kwargs |
|
) |
| |
This function returns path of Tile histogram.
Arguments:
path -- Path of histogram, actual path is constructed dynamicaly like:
path [+ trigger] [+ partition]
Definition at line 132 of file TileMonitoringCfgHelper.py.
134 This function returns path of Tile histogram.
137 path -- Path of histogram, actual path is constructed dynamicaly like:
138 path [+ trigger] [+ partition]
141 partition = kwargs.get(
'partition',
'')
142 trigger = kwargs.get(
'trigger',
'')
143 subDirectory = kwargs.get(
'subDirectory',
False)
145 fullPath = path +
'/' + trigger
if trigger
else path
146 fullPath +=
'/' + partition
if partition
and subDirectory
else ''
◆ getTileHistogramTitle()
def TileMonitoringCfgHelper.getTileHistogramTitle |
( |
|
title, |
|
|
** |
kwargs |
|
) |
| |
This function returns title of Tile histogram.
Arguments:
title -- Title of histogram, actual title is constructed dynamicaly like:
[run +] [trigger +] [partion +] [sample +] [gain +] title
Definition at line 106 of file TileMonitoringCfgHelper.py.
108 This function returns title of Tile histogram.
111 title -- Title of histogram, actual title is constructed dynamicaly like:
112 [run +] [trigger +] [partion +] [sample +] [gain +] title
115 partition = kwargs.get(
'partition',
'')
116 trigger = kwargs.get(
'trigger',
'')
117 sample = kwargs.get(
'sample',
'')
118 gain = kwargs.get(
'gain',
'')
119 run = kwargs.get(
'run',
'')
121 fullTitle =
'Partition ' + partition
if partition
else ''
122 fullTitle +=
' Tile Cell ' + sample +
' ' if sample
else ''
123 fullTitle +=
' ' + gain
if gain
else ''
124 fullTitle +=
': ' + title
126 fullTitle =
'Trigger ' + trigger +
' ' + fullTitle
if trigger
else fullTitle
127 fullTitle =
'Run ' + run +
' ' + fullTitle
if run
else fullTitle
◆ _cellNameEB
TileMonitoringCfgHelper._cellNameEB |
|
private |
◆ _cellNameLB
TileMonitoringCfgHelper._cellNameLB |
|
private |
◆ _cellNameTMDB_EB
TileMonitoringCfgHelper._cellNameTMDB_EB |
|
private |
◆ _cellNameTMDB_LB
TileMonitoringCfgHelper._cellNameTMDB_LB |
|
private |
◆ _gainName
TileMonitoringCfgHelper._gainName |
|
private |
◆ _partitionName
TileMonitoringCfgHelper._partitionName |
|
private |
◆ _sampleName
TileMonitoringCfgHelper._sampleName |
|
private |
def addValueVsModuleAndChannelMaps(group, name, title, path, subDirectory=False, type='TH2D', value='', trigger='', run='')
def addTileModuleChannelMapsArray(helper, algorithm, name, title, path, weight='', subDirectory=False, type='TH2D', value='', run='', triggers=[], perGain=False, separator='_')
def getCellChannelLabels(partition)
def addTileModuleDigitizerMapsArray(helper, algorithm, name, title, path, weight='', subDirectory=False, type='TH2D', value='', run='', triggers=[], perGain=False, separator='_')
def addTile2DHistogramsArray(helper, algorithm, name='', xvalue='', yvalue='', value='', title='', path='', weight='', xbins=0, xmin=0., xmax=0., ybins=0, ymin=0., ymax=0., type='TH2D', run='', triggers=[], xlabels=(), ylabels=(), opt='', subDirectory=False, perPartition=False, perSample=False, perGain=False, allPartitions=False, separator='_', merge=None)
def getSampleName(sample)
def _getDimensions(triggers=[], perPartition=False, perSample=False, perGain=False, allPartitions=False)
def getLegacyChannelForDemonstrator(useDemoCabling, partition, drawer, channel)
def getTileHistogramPath(path, **kwargs)
def _parsePostfix(postfix, triggers=[], perPartition=False, perSample=False, perGain=False)
def getTileHistogramName(name, separator='_', **kwargs)
def addTile1DHistogramsArray(helper, algorithm, name='', xvalue='', value='', title='', path='', weight='', xbins=0, xmin=0., xmax=0., type='TH1D', run='', triggers=[], subDirectory=False, perPartition=True, perSample=False, opt='', perGain=False, xlabels=(), allPartitions=False, separator='_', merge=None)
def addTileEtaPhiMapsArray(helper, algorithm, name, title, path, weight='', type='TH2D', value='', run='', triggers=[], perSample=True, perGain=False, separator='_', etaTitle='#eta', etabins=21, etamin=-2.025, etamax=2.025, phiTitle='#phi', phibins=Tile.MAX_DRAWER, phimin=-3.15, phimax=3.15)
def addTileModuleCorrelionMapsArray(helper, algorithm, name, title, path, weight='', subDirectory=False, type='TH2D', value='', run='', triggers=[], perGain=False, allPartitions=False, separator='_')
def getPartitionName(ros)
def getTileHistogramTitle(title, **kwargs)
def getModuleLabels(partition)
def addTileTMDB_1DHistogramsArray(helper, algorithm, name='', xvalue='', value='', title='', path='', xbins=0, xmin=0., xmax=0., type='TH1D', run='', perModule=False, isCorr=False)
def getChannelsForCell(partition, cellName)
def addTileTMDB2DScatterHistogramsArray(helper, algorithm, name='', xvalue='', yvalue='', xbins=0, xmin=0, xmax=0, title='', path='', type='TH2D', run='')
def getCellChannelTMDB_Labels(partition)
def addTileChannelHistogramsArray(helper, algorithm, name, title, path, xvalue, xbins, xmin, xmax, type='TH1D', yvalue=None, ybins=None, ymin=None, ymax=None, run='', value='', aliasSuffix='')
def getCellName(partition, channel)
def addTileModulePartitionMapsArray(helper, algorithm, name, title, path, weight='', type='TH2D', value='', run='', triggers=[], perGain=False, separator='_')
def addTileTMDB_2DHistogramsArray(helper, algorithm, name='', value='', title='', path='', type='TH2D', run='')
def getCellNameTMDB(partition, channel)
def getLabels(labels, partition='')
def addTileModuleArray(helper, algorithm, name, title, path, type='TH1D', value='', subDirectory=False, triggers=[], run='', separator='_')