|
ATLAS Offline Software
|
|
def | getLayerGroup (helper, alg, layer) |
|
def | define2DProfHist (helper, alg, name, title, path, type='TProfile2D', doWeight=False, lifecycle='run', zmin=None, zmax=None, opt='', histname=None, onlylayers=baselayers) |
|
def | define2DProfPerFEHist (helper, alg, name, title, path, type='TProfile2D', doWeight=False, lifecycle='run', zmin=None, zmax=None, opt='', histname=None, onlylayers=baselayers) |
|
def | definePP0Histos (helper, alg, name, title, path, opt='') |
|
def | define1DProfLumiLayers (helper, alg, name, title, path, yaxistext, type='TProfile', opt='', histname=None, onlylayers=layers) |
|
def | defineMapVsLumiLayers (helper, alg, name, title, path, xaxistext, yaxistext, ybins, ymins, binsizes=[1.0], ylabels=None, opt='', type='TH2F', histname=None, onlylayers=layers) |
|
def | define1DLayers (helper, alg, name, title, path, xaxistext, yaxistext, xbins, xmins, binsizes=[1.0], type='TH1F', histname=None, onlylayers=layers) |
|
def | addOnTrackTxt (name, ontrack, wSpace=False) |
|
def | addOnTrackToPath (name, ontrack) |
|
def | fullDressTitle (name, ontrack, xaxistext, yaxistext) |
|
◆ addOnTrackToPath()
def PixelAthMonitoringBase.addOnTrackToPath |
( |
|
name, |
|
|
|
ontrack |
|
) |
| |
◆ addOnTrackTxt()
def PixelAthMonitoringBase.addOnTrackTxt |
( |
|
name, |
|
|
|
ontrack, |
|
|
|
wSpace = False |
|
) |
| |
◆ define1DLayers()
def PixelAthMonitoringBase.define1DLayers |
( |
|
helper, |
|
|
|
alg, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
xaxistext, |
|
|
|
yaxistext, |
|
|
|
xbins, |
|
|
|
xmins, |
|
|
|
binsizes = [1.0] , |
|
|
|
type = 'TH1F' , |
|
|
|
histname = None , |
|
|
|
onlylayers = layers |
|
) |
| |
This function configures 1D (Profile) histograms for Pixel layers.
Arguments:
helper -- AthMonitorCfgHelper(Old) instance
alg -- algorithm Configurable object returned from addAlgorithm
name -- Root name of variables and histogram (Name = name+'_'+layer)
title -- Title of histogram (Title = title +' '+layer)
path -- Path in ouput file for histogram
xaxistext -- X-axis title
yaxistext -- Y-axis title
type -- Type of histogram
histname -- alternative root name of the histogram (to be filled with the same variables defined by 'name' above)
onlylayers -- sublist of layers
Definition at line 481 of file PixelAthMonitoringBase.py.
481 def define1DLayers(helper, alg, name, title, path, xaxistext, yaxistext, xbins, xmins, binsizes=[1.0], type='TH1F', histname=None, onlylayers=layers):
483 This function configures 1D (Profile) histograms for Pixel layers.
486 helper -- AthMonitorCfgHelper(Old) instance
487 alg -- algorithm Configurable object returned from addAlgorithm
488 name -- Root name of variables and histogram (Name = name+'_'+layer)
489 title -- Title of histogram (Title = title +' '+layer)
490 path -- Path in ouput file for histogram
491 xaxistext -- X-axis title
492 yaxistext -- Y-axis title
493 type -- Type of histogram
494 histname -- alternative root name of the histogram (to be filled with the same variables defined by 'name' above)
495 onlylayers -- sublist of layers
497 assert(
set(onlylayers).issubset(layers))
500 for idx,layer
in enumerate(layers):
501 if layer
not in onlylayers:
503 fulltitle = title +
', {0}'.
format(layer) + runtext + xaxistext + yaxistext
505 fullvarstring =
'{0}_{1}'.
format(name,
'val')
506 fullvarstring +=
';' + histname +
'_{0}'.
format(layer)
507 if ( len(xbins)==1
and len(xmins)==1
and len(binsizes)==1):
508 layerGroup.defineHistogram(fullvarstring,
509 type=type, path=path, title=fulltitle,
510 xbins=xbins[0], xmin=xmins[0], xmax=xmins[0]+binsizes[0]*xbins[0])
511 elif (len(xbins)==len(layers)
and len(xmins)==len(layers)
and len(binsizes)==len(layers)):
512 layerGroup.defineHistogram(fullvarstring,
513 type=type, path=path, title=fulltitle,
514 xbins=xbins[idx], xmin=xmins[idx], xmax=xmins[idx]+binsizes[idx]*xbins[idx])
◆ define1DProfLumiLayers()
def PixelAthMonitoringBase.define1DProfLumiLayers |
( |
|
helper, |
|
|
|
alg, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
yaxistext, |
|
|
|
type = 'TProfile' , |
|
|
|
opt = '' , |
|
|
|
histname = None , |
|
|
|
onlylayers = layers |
|
) |
| |
This function configures 1D (Profile) vs lumi histograms for Pixel layers.
Arguments:
helper -- AthMonitorCfgHelper(Old) instance
alg -- algorithm Configurable object returned from addAlgorithm
name -- Name of histogram (Name = name_layer)
title -- Title of histogram (Title = title +' '+layer)
path -- Path in ouput file for histogram
yaxistext -- Text on the y-axis
type -- Type of histogram (TH1D, TProfile)
opt -- history depth of a histogram e.g. 'kLBNHistoryDepth=10' or 'kLive=100'
histname -- another way of naming the histogram(s), useful when multiple histograms are filled from exactly the same variables, but in a different way
onlylayers -- sublist of layers
Definition at line 396 of file PixelAthMonitoringBase.py.
396 def define1DProfLumiLayers(helper, alg, name, title, path, yaxistext, type='TProfile', opt='', histname=None, onlylayers=layers):
398 This function configures 1D (Profile) vs lumi histograms for Pixel layers.
401 helper -- AthMonitorCfgHelper(Old) instance
402 alg -- algorithm Configurable object returned from addAlgorithm
403 name -- Name of histogram (Name = name_layer)
404 title -- Title of histogram (Title = title +' '+layer)
405 path -- Path in ouput file for histogram
406 yaxistext -- Text on the y-axis
407 type -- Type of histogram (TH1D, TProfile)
408 opt -- history depth of a histogram e.g. 'kLBNHistoryDepth=10' or 'kLive=100'
409 histname -- another way of naming the histogram(s), useful when multiple histograms are filled from exactly the same variables, but in a different way
410 onlylayers -- sublist of layers
412 assert(
set(onlylayers).issubset(layers))
416 xbins =
int(opt.split(
'=')[1])
420 if layer
not in onlylayers:
422 fulltitle = title +
', {0}'.
format(layer) + runtext + lumitext + yaxistext
423 fullvarstring =
'{0}_{1}'.
format(name,
'lb')
424 if 'Profile' in type: fullvarstring +=
',{0}_{1}'.
format(name,
'val')
425 fullvarstring +=
';' + histname +
'_{0}'.
format(layer)
427 layerGroup.defineHistogram(fullvarstring,
428 type=type, path=path, title=fulltitle,
429 xbins=xbins, xmin=-0.5, xmax=-0.5+xbins, opt=opt)
◆ define2DProfHist()
def PixelAthMonitoringBase.define2DProfHist |
( |
|
helper, |
|
|
|
alg, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
type = 'TProfile2D' , |
|
|
|
doWeight = False , |
|
|
|
lifecycle = 'run' , |
|
|
|
zmin = None , |
|
|
|
zmax = None , |
|
|
|
opt = '' , |
|
|
|
histname = None , |
|
|
|
onlylayers = baselayers |
|
) |
| |
This function configures 2D (Profile) histograms (or maps) for Pixel base (i.e. w/o split in 2D/3D in IBL) layers.
Arguments:
helper -- AthMonitorCfgHelper(Old) instance
alg -- algorithm - Configurable object returned from addAlgorithm
name -- Name of histogram (Name = name_layer)
title -- Title of histogram (Title = title +' '+layer)
path -- Path in output file for histogram
type -- Type of histogram (TH2D, TProfile2D)
lifecycle -- global life duration of histograms (run, lowStat [i.e. 20 LB], lumiblock) - APPLIES to MonGroup only
zmin(zmax) -- fix the displayed range - simply chopping the range!!!
opt -- history depth of a histogram e.g. 'kLBNHistoryDepth=10'
histname -- another way of naming the histogram(s), useful when multiple histograms are filled from exactly the same variables, but in a different way
onlylayers -- sublist of Pixel layers
Definition at line 276 of file PixelAthMonitoringBase.py.
276 def define2DProfHist(helper, alg, name, title, path, type='TProfile2D', doWeight=False, lifecycle='run', zmin=None, zmax=None, opt='', histname=None, onlylayers=baselayers):
278 This function configures 2D (Profile) histograms (or maps) for Pixel base (i.e. w/o split in 2D/3D in IBL) layers.
281 helper -- AthMonitorCfgHelper(Old) instance
282 alg -- algorithm - Configurable object returned from addAlgorithm
283 name -- Name of histogram (Name = name_layer)
284 title -- Title of histogram (Title = title +' '+layer)
285 path -- Path in output file for histogram
286 type -- Type of histogram (TH2D, TProfile2D)
287 lifecycle -- global life duration of histograms (run, lowStat [i.e. 20 LB], lumiblock) - APPLIES to MonGroup only
288 zmin(zmax) -- fix the displayed range - simply chopping the range!!!
289 opt -- history depth of a histogram e.g. 'kLBNHistoryDepth=10'
290 histname -- another way of naming the histogram(s), useful when multiple histograms are filled from exactly the same variables, but in a different way
291 onlylayers -- sublist of Pixel layers
293 assert(
set(onlylayers).issubset(baselayers))
296 for i, layer
in enumerate(baselayers):
297 if layer
not in onlylayers:
299 fulltitle = title +
', {0}'.
format(layer) + runtext + etatxt[i] + phitext
302 fullvarstring =
'{0}_{1},{0}_{2}'.
format(name,
'em',
'pm')
304 if 'Profile' in type:
305 fullvarstring +=
',{0}_{1}'.
format(name,
'val')
307 weightvar =
'{0}_{1}'.
format(name,
'val')
309 fullvarstring +=
';' + histname +
'_{0}'.
format(layer)
310 layerGroup.defineHistogram(fullvarstring,
311 type=type, path=path, title=fulltitle, weight=weightvar,
312 xbins=xbinsl[i], xmin=xminsl[i], xmax=xminsl[i]+xbinsl[i],
313 ybins=ybinsl[i], ymin=-0.5, ymax=-0.5+ybinsl[i],
314 zmin=zmin, zmax=zmax,
316 opt=opt, xlabels=LabelX[i], ylabels=LabelY[i])
◆ define2DProfPerFEHist()
def PixelAthMonitoringBase.define2DProfPerFEHist |
( |
|
helper, |
|
|
|
alg, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
type = 'TProfile2D' , |
|
|
|
doWeight = False , |
|
|
|
lifecycle = 'run' , |
|
|
|
zmin = None , |
|
|
|
zmax = None , |
|
|
|
opt = '' , |
|
|
|
histname = None , |
|
|
|
onlylayers = baselayers |
|
) |
| |
This function configures 2D (Profile) histograms (or maps) for Pixel base (i.e. w/o split in 2D/3D in IBL) layers per FE.
Arguments:
helper -- AthMonitorCfgHelper(Old) instance
alg -- algorithm - Configurable object returned from addAlgorithm
name -- Name of histogram (Name = name_layer)
title -- Title of histogram (Title = title +' '+layer)
path -- Path in output file for histogram
type -- Type of histogram (TH2D, TProfile2D)
lifecycle -- global life duration of histograms (run, lowStat [i.e. 20 LB], lumiblock) - APPLIES to MonGroup only
zmin(zmax) -- fix the displayed range - simply chopping the range!!!
opt -- history depth of a histogram e.g. 'kLBNHistoryDepth=10'
histname -- another way of naming the histogram(s), useful when multiple histograms are filled from exactly the same variables, but in a different way
onlylayers -- sublist of Pixel layers
Definition at line 318 of file PixelAthMonitoringBase.py.
318 def define2DProfPerFEHist(helper, alg, name, title, path, type='TProfile2D', doWeight=False, lifecycle='run', zmin=None, zmax=None, opt='', histname=None, onlylayers=baselayers):
320 This function configures 2D (Profile) histograms (or maps) for Pixel base (i.e. w/o split in 2D/3D in IBL) layers per FE.
323 helper -- AthMonitorCfgHelper(Old) instance
324 alg -- algorithm - Configurable object returned from addAlgorithm
325 name -- Name of histogram (Name = name_layer)
326 title -- Title of histogram (Title = title +' '+layer)
327 path -- Path in output file for histogram
328 type -- Type of histogram (TH2D, TProfile2D)
329 lifecycle -- global life duration of histograms (run, lowStat [i.e. 20 LB], lumiblock) - APPLIES to MonGroup only
330 zmin(zmax) -- fix the displayed range - simply chopping the range!!!
331 opt -- history depth of a histogram e.g. 'kLBNHistoryDepth=10'
332 histname -- another way of naming the histogram(s), useful when multiple histograms are filled from exactly the same variables, but in a different way
333 onlylayers -- sublist of Pixel layers
335 assert(
set(onlylayers).issubset(baselayers))
338 for i, layer
in enumerate(baselayers):
339 if layer
not in onlylayers:
341 fulltitle = title +
', {0}'.
format(layer) + runtext + etatxt[i] + phitext
344 fullvarstring =
'{0}_{1},{0}_{2}'.
format(name,
'em',
'pm')
346 if 'Profile' in type:
347 fullvarstring +=
',{0}_{1}'.
format(name,
'val')
349 weightvar =
'{0}_{1}'.
format(name,
'val')
351 fullvarstring +=
';' + histname +
'_{0}'.
format(layer)
352 layerGroup.defineHistogram(fullvarstring,
353 type=type, path=path, title=fulltitle, weight=weightvar,
354 xbins=xbinsfel[i], xmin=xminsfel[i], xmax=xminsfel[i]+xbinsfel[i],
355 ybins=ybinsfel[i], ymin=-0.5, ymax=-0.5+ybinsfel[i],
356 zmin=zmin, zmax=zmax,
358 opt=opt, xlabels=LabelFEX[i], ylabels=LabelFEY[i])
◆ defineMapVsLumiLayers()
def PixelAthMonitoringBase.defineMapVsLumiLayers |
( |
|
helper, |
|
|
|
alg, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
xaxistext, |
|
|
|
yaxistext, |
|
|
|
ybins, |
|
|
|
ymins, |
|
|
|
binsizes = [1.0] , |
|
|
|
ylabels = None , |
|
|
|
opt = '' , |
|
|
|
type = 'TH2F' , |
|
|
|
histname = None , |
|
|
|
onlylayers = layers |
|
) |
| |
This function configures 2D histograms vs lumi for Pixel base (i.e. w/o split in 2D/3D in IBL) layers.
Arguments:
helper -- AthMonitorCfgHelper(Old) instance
alg -- algorithm Configurable object returned from addAlgorithm
name -- Name of histogram (Name = name_layer)
title -- Title of histogram (Title = title +' '+layer)
path -- Path in ouput file for histogram
ybins, ymin, ymax, yaxistext
-- Configure Y-axis
opt -- history depth of a histogram e.g. 'kLBNHistoryDepth=10' or 'kLive=100'
type -- Type of histogram (TH2I, TH2F, TProfile2D)
histname-- alternative root name of the histogram (to be filled with the same variables defined by 'name' above)
onlylayers -- sublist of Pixel layers
Definition at line 431 of file PixelAthMonitoringBase.py.
431 def defineMapVsLumiLayers(helper, alg, name, title, path, xaxistext, yaxistext, ybins, ymins, binsizes=[1.0], ylabels=None, opt='', type='TH2F', histname=None, onlylayers=layers):
433 This function configures 2D histograms vs lumi for Pixel base (i.e. w/o split in 2D/3D in IBL) layers.
436 helper -- AthMonitorCfgHelper(Old) instance
437 alg -- algorithm Configurable object returned from addAlgorithm
438 name -- Name of histogram (Name = name_layer)
439 title -- Title of histogram (Title = title +' '+layer)
440 path -- Path in ouput file for histogram
441 ybins, ymin, ymax, yaxistext
443 opt -- history depth of a histogram e.g. 'kLBNHistoryDepth=10' or 'kLive=100'
444 type -- Type of histogram (TH2I, TH2F, TProfile2D)
445 histname-- alternative root name of the histogram (to be filled with the same variables defined by 'name' above)
446 onlylayers -- sublist of Pixel layers
448 assert(
set(onlylayers).issubset(layers))
452 xbins =
int(opt.split(
'=')[1])
455 for idx,layer
in enumerate(layers):
456 if layer
not in onlylayers:
458 fulltitle = title +
', {0}'.
format(layer) + runtext + lumitext + yaxistext
460 fullvarstring =
'{0}_{1}'.
format(name,
'lb')
461 if 'Profile' in type: fullvarstring +=
',{0}_{1}'.
format(name,
'cat')
462 fullvarstring +=
',{0}_{1}'.
format(name,
'val')
463 fullvarstring +=
';' + histname +
'_{0}'.
format(layer)
464 if ( len(ybins)==1
and len(ymins)==1
and len(binsizes)==1):
465 layerGroup.defineHistogram(fullvarstring,
466 type=type, path=path, title=fulltitle,
467 xbins=xbins, xmin=-0.5, xmax=-0.5+xbins,
468 ybins=ybins[0], ymin=ymins[0], ymax=ymins[0]+binsizes[0]*ybins[0], opt=opt)
469 elif (len(ybins)==len(layers)
and len(ymins)==len(layers)
and len(binsizes)==len(layers)
and len(ylabels)==len(layers)):
470 layerGroup.defineHistogram(fullvarstring,
471 type=type, path=path, title=fulltitle,
472 xbins=xbins, xmin=-0.5, xmax=-0.5+xbins,
473 ybins=ybins[idx], ymin=ymins[idx], ymax=ymins[idx]+binsizes[idx]*ybins[idx], ylabels=ylabels[idx], opt=opt)
474 elif (len(ybins)==len(layers)
and len(ymins)==len(layers)
and len(binsizes)==1
and ylabels
is None):
475 layerGroup.defineHistogram(fullvarstring,
476 type=type, path=path, title=fulltitle,
477 xbins=xbins, xmin=-0.5, xmax=-0.5+xbins,
478 ybins=ybins[idx], ymin=ymins[idx], ymax=ymins[idx]+ybins[idx], opt=opt)
◆ definePP0Histos()
def PixelAthMonitoringBase.definePP0Histos |
( |
|
helper, |
|
|
|
alg, |
|
|
|
name, |
|
|
|
title, |
|
|
|
path, |
|
|
|
opt = '' |
|
) |
| |
This function configures TProfile histograms for Pixel layers per pp0 or ROD.
Arguments:
helper -- AthMonitorCfgHelper(Old) instance
alg -- algorithm Configurable object returned from addAlgorithm
name -- Name of histogram (Name = name_layer)
title -- Title of histogram (Title = title +' '+layer)
path -- Path in ouput file for histogram
opt -- history depth of a histogram e.g. 'kLBNHistoryDepth=10'
Definition at line 361 of file PixelAthMonitoringBase.py.
363 This function configures TProfile histograms for Pixel layers per pp0 or ROD.
366 helper -- AthMonitorCfgHelper(Old) instance
367 alg -- algorithm Configurable object returned from addAlgorithm
368 name -- Name of histogram (Name = name_layer)
369 title -- Title of histogram (Title = title +' '+layer)
370 path -- Path in ouput file for histogram
371 opt -- history depth of a histogram e.g. 'kLBNHistoryDepth=10'
374 for i, layer
in enumerate(pp0layers):
379 yatxt =
';average # clusters per event per '
384 fulltitle = title +
', {0}'.
format(layer) + runtext + xatxt + yatxt
385 groupname = name +
'_{0}'.
format(layer)
387 fullvarstring =
'{0}_{1},{0}_{2}'.
format(name,
'pospp0x',
'val')
388 fullvarstring +=
';' + groupname
389 layerGroup.defineHistogram(fullvarstring,
390 type=
'TProfile', path=path, title=fulltitle,
391 xbins=pp0xbins[i], xmin=-0.5, xmax=-0.5+pp0xbins[i],
392 opt=opt, xlabels=PP0LabelX[i])
◆ fullDressTitle()
def PixelAthMonitoringBase.fullDressTitle |
( |
|
name, |
|
|
|
ontrack, |
|
|
|
xaxistext, |
|
|
|
yaxistext |
|
) |
| |
◆ getLayerGroup()
def PixelAthMonitoringBase.getLayerGroup |
( |
|
helper, |
|
|
|
alg, |
|
|
|
layer |
|
) |
| |
Definition at line 268 of file PixelAthMonitoringBase.py.
269 if alg
not in layergroups:
270 layergroups[alg] = {}
271 if layer
not in layergroups[alg]:
272 layergroups[alg][layer] = helper.addGroup(alg, layer)
273 return layergroups[alg][layer]
def definePP0Histos(helper, alg, name, title, path, opt='')
def addOnTrackToPath(name, ontrack)
def define1DProfLumiLayers(helper, alg, name, title, path, yaxistext, type='TProfile', opt='', histname=None, onlylayers=layers)
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
def getLayerGroup(helper, alg, layer)
def define1DLayers(helper, alg, name, title, path, xaxistext, yaxistext, xbins, xmins, binsizes=[1.0], type='TH1F', histname=None, onlylayers=layers)
def defineMapVsLumiLayers(helper, alg, name, title, path, xaxistext, yaxistext, ybins, ymins, binsizes=[1.0], ylabels=None, opt='', type='TH2F', histname=None, onlylayers=layers)
def define2DProfHist(helper, alg, name, title, path, type='TProfile2D', doWeight=False, lifecycle='run', zmin=None, zmax=None, opt='', histname=None, onlylayers=baselayers)
def addOnTrackTxt(name, ontrack, wSpace=False)
def define2DProfPerFEHist(helper, alg, name, title, path, type='TProfile2D', doWeight=False, lifecycle='run', zmin=None, zmax=None, opt='', histname=None, onlylayers=baselayers)
def fullDressTitle(name, ontrack, xaxistext, yaxistext)