HPS-MC
 
Loading...
Searching...
No Matches
root_merge_job Namespace Reference

Variables

 description
 
 input_list = list(job.input_files.keys())
 
 output_file = None
 
 force_overwrite = job.params.get('force', True)
 
 compression_level = job.params.get('compression', None)
 
 validate_merge = job.params.get('validate', True)
 
 write_stats = job.params.get('write_stats', True)
 
 job_id = job.params.get('job_id', None)
 
 merge
 

Detailed Description

Merge ROOT files job script for hps-mc

This job merges multiple ROOT files into a single output file using hadd.

Example JSON parameters:
{
    "job_id": 1,
    "input_files": {
        "input1.root": "/path/to/input1.root",
        "input2.root": "/path/to/input2.root",
        "input3.root": "/path/to/input3.root"
    },
    "output_files": {
        "merged.root": "merged_output.root",
        "merged_stats.json": "merged_stats.json"
    },
    "output_dir": "output",
    "force": true,
    "compression": 6,
    "validate": true,
    "write_stats": true
}

Variable Documentation

◆ compression_level

compression_level = job.params.get('compression', None)

Definition at line 49 of file root_merge_job.py.

◆ description

description

Definition at line 32 of file root_merge_job.py.

◆ force_overwrite

force_overwrite = job.params.get('force', True)

Definition at line 48 of file root_merge_job.py.

◆ input_list

input_list = list(job.input_files.keys())

Definition at line 36 of file root_merge_job.py.

◆ job_id

job_id = job.params.get('job_id', None)

Definition at line 52 of file root_merge_job.py.

◆ merge

merge
Initial value:
1= MergeROOT(
2 name="merge_root",
3 inputs=input_list,
4 outputs=[output_file],
5 force=force_overwrite,
6 compression=compression_level,
7 validate=validate_merge,
8 write_stats=write_stats,
9 job_id=job_id
10)

Definition at line 55 of file root_merge_job.py.

◆ output_file

output_file = None

Definition at line 39 of file root_merge_job.py.

◆ validate_merge

validate_merge = job.params.get('validate', True)

Definition at line 50 of file root_merge_job.py.

◆ write_stats

write_stats = job.params.get('write_stats', True)

Definition at line 51 of file root_merge_job.py.