ATLAS Offline Software
Loading...
Searching...
No Matches
mergeIDPVM Namespace Reference

Functions

 getArgs ()
 main ()

Function Documentation

◆ getArgs()

mergeIDPVM.getArgs ( )

Definition at line 8 of file mergeIDPVM.py.

8def getArgs():
9 args= argparse.ArgumentParser()
10 args.add_argument('--filesInput', required=True)
11 args.add_argument('--outputFile', required=True)
12 return args.parse_args()
13
14
Args getArgs(int nargs, char *argv[])

◆ main()

mergeIDPVM.main ( )

Definition at line 15 of file mergeIDPVM.py.

15def main():
16 args = getArgs()
17
18 inputs = []
19 for path in args.filesInput.split(','):
20 inputs += glob.glob(path)
21
22
23 cmd_1 = ['hadd', args.outputFile] + inputs
24 print(f"Running: {' '.join(cmd_1)}")
25 subprocess.run(cmd_1, check=True)
26
27 cmd_2 = ['postProcessIDPVMHistos', args.outputFile]
28 print(f"Running: {' '.join(cmd_2)}")
29 subprocess.run(cmd_2, check=True)
30
31
void print(char *figname, TCanvas *c1)
int main()
Definition hello.cxx:18