Run the Framework
Skimming
To make the size of the files more manageable, a skimming step was implemented relying on ROOT’s RDataFrame.
Several cuts are applied, and additionally many type conversions are run for uproot usage at later steps.
To run it:
python bye_splits/production/produce.py --nevents -1 --particles photons
where --nevents -1 represents all events, and the input file is defined in config.yaml.
The output files include, among many others, the following variables:
Variable name |
Meaning |
|---|---|
|
relative to TCs |
|
Cartesian coordinates \(x/y/z\) of the TC |
|
Coordinate \(U\) of the module where the TC belongs |
|
Coordinate \(V\) of the module where the TC belongs |
|
Coordinate \(u\) of the cell in a module where the TC belongs |
|
Coordinate \(v\) of the cell in a module where the TC belongs |
|
Energy of a TC in transverse MIP units |
This framework relies on photon-, electron- and pion-gun samples produced via CRAB. The most up to date versions are currently stored under:
Particle and pile-up |
Path |
|---|---|
Photons (PU0) |
|
Electrons (PU0) |
|
Pions (PU0) |
|
Photons (PU200) |
|
Electrons (PU200) |
|
Run the Reconstruction Chains
Once the skimmed data is available for a particular particle type and pile-up value, one can run a reconstruction chain. To run the full TPG Stage 2, using the default script:
python bye_splits/scripts/run_default_chain.py
where one can use the -h flag to visualize available options.
One can also create their own custom chain under scripts/, using the tasks under tasks/.