Back to home page

EIC code displayed by LXR

 
 

    


Warning, /snippets/Calorimetery/MergeBHCalTiles/README.md is written in an unsupported language. File is not indexed.

0001 # Merge Tiles in Barrel HCal
0002 
0003 An EICrecon plugin and ruby script to merge adjacent tiles in the BHCal and process
0004 the merged tiles up to the `CalorimeterClusterShape` algorithm. These illustrate
0005 two points:
0006 
0007   - The plugin illustrates how to create a custom plugin which wires together
0008     a new sequence of algorithms that *aren't* run in the default plugins.
0009   - And the script illustrates how to call this plugin and update the tile-
0010     merging parameters and adjacency matrix for the BHCal self-consistently.
0011 
0012 Reads in either DD4hep output or EICrecon output which contain the `HcalBarrelRecHits`
0013 collection. User options are either set in `RunEICReconWithTileMerging.rb` or from
0014 the commandline (see below).
0015 
0016 ## Dependencies
0017 
0018 Requires all of the usual dependencies for EICrecon (PODIO, EDM4hep, EDM4eic,
0019 DD4hep, etc.)
0020 
0021 ## Usage
0022 
0023 First, the plugin will need to be compiled:
0024 
0025 ```
0026 # set installation path if you haven't already
0027 mkdir ~/EICrecon_MY
0028 export EICrecon_MY=~/EICrecon_MY
0029 
0030 # now build plugin
0031 cmake -S ClusterMergedHits -B ClusterMergedHits/build
0032 cmake --build ClusterMergedHits/build --target install -- -j8
0033 ```
0034 
0035 Things like input/output files are set in `RunEICReconWithTileMerging.rb`.
0036 And then we can run EICrecon and merge `N` adjacent tiles together with:
0037 
0038 
0039 ```
0040 ./RunEICReconWithTileMerging.rb <N>
0041 ```