ATLAS Offline Software
Loading...
Searching...
No Matches
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
4from argparse import ArgumentParser
5from PMGTools.WeightHelpers import weightNameCleanup, weightNameWithPrefix
6parser = ArgumentParser(prog='generator-weights')
7parser.add_argument('weights', metavar='weights', type=str, nargs="+",
8 help="specify the list of weights")
9parser.add_argument('-p', '--prefixed', default=False, action="store_true",
10 help="add prefix to cleaned weights")
11args = parser.parse_args()
12
13for weight in args.weights:
14 if args.prefixed:
15 print(weightNameWithPrefix(weight))
16 else:
17 print(weightNameCleanup(weight))
void print(char *figname, TCanvas *c1)