Conversion to PFNanoAOD - jniedzie/SVJanalysis_wiki GitHub Wiki
Currently, only Delples files can be converted in PFNanoAOD format.
When the association between jet and jet candidates does not exist, a simple delta R matching is used.
In addition to creating the Events
trees, this code also creates a Metadata
tree with branch OriginalFormat
to keep track of the file origin.
Usage
usage: convertToSuperPFNano.py [-h] -i INPUT_FILE_NAME -o OUTPUT_FILE_NAME [-c CHUNK_SIZE] [-m MAX_CHUNKS] [-n N_WORKERS] [--skip_bad_files]
[-e {iterative,futures,dask/condor,dask/slurm}] [-voms VOMS] [-debug]
optional arguments:
-h, --help show this help message and exit
-i INPUT_FILE_NAME, --input_file_name INPUT_FILE_NAME
Input ROOT file name
-o OUTPUT_FILE_NAME, --output_file_name OUTPUT_FILE_NAME
Output ROOT file name
-c CHUNK_SIZE, --chunk_size CHUNK_SIZE
Size of the data chunks (default=100000)
-m MAX_CHUNKS, --max_chunks MAX_CHUNKS
Maximum number of chunks to process, no flag means no maximum
-n N_WORKERS, --n_workers N_WORKERS
Number of worker nodes (default=4)
--skip_bad_files Skip bad files
-e {iterative,futures,dask/condor,dask/slurm}, --executor_name {iterative,futures,dask/condor,dask/slurm}
The type of executor to use (default=futures)
-voms VOMS, --voms VOMS
Path to voms proxy, accessible to worker nodes
-debug, --debug Debug mode