ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisCommon
PMGTools
util
generator-weights.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
4
from
argparse
import
ArgumentParser
5
from
PMGTools.WeightHelpers
import
weightNameCleanup, weightNameWithPrefix
6
parser = ArgumentParser(prog=
'generator-weights'
)
7
parser.add_argument(
'weights'
, metavar=
'weights'
, type=str, nargs=
"+"
,
8
help=
"specify the list of weights"
)
9
parser.add_argument(
'-p'
,
'--prefixed'
, default=
False
, action=
"store_true"
,
10
help=
"add prefix to cleaned weights"
)
11
args = parser.parse_args()
12
13
for
weight
in
args.weights:
14
if
args.prefixed:
15
print
(weightNameWithPrefix(weight))
16
else
:
17
print
(weightNameCleanup(weight))
print
void print(char *figname, TCanvas *c1)
Definition
TRTCalib_StrawStatusPlots.cxx:26
Generated on
for ATLAS Offline Software by
1.17.0