Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:30:55

0001 #!/usr/bin/env ruby
0002 # =============================================================================
0003 # @file   RunEICRecon.rb
0004 # @author Derek Anderson
0005 # @date   05.11.2023
0006 #
0007 # An easy script to interface with EICRecon
0008 # =============================================================================
0009 
0010 # i/o parameters
0011 in_ddsim   = "../forTestingJetPodioRelations.edm4hep.root"
0012 out_podio  = "forTestingUserConfigurability_change1V2_withMinJetPtAndMinCstPtChanged_recoJetAlgoSetToGarbage_reco2gen12.podio.root"
0013 out_plugin = "forTestingUserConfigurability_change1V2_withMinJetPtAndMinCstPtChanged_recoJetAlgoSetToGarbage_reco2gen12.plugin.root"
0014 
0015 # output collections from EICrecon
0016 out_collect = [
0017   "GeneratedParticles",
0018   "GeneratedJets",
0019   "GeneratedChargedJets",
0020   "ReconstructedJets",
0021   "ReconstructedChargedJets"
0022 ].compact.reject(&:empty?).join(',')
0023 
0024 # plugins to run in EICrecon
0025 plugins = [
0026   "dump_flags"
0027 ].compact.reject(&:empty?).join(',')
0028 
0029 # options
0030 options = [
0031   "-Peicrecon:LogLevel=debug"
0032 ].compact.reject(&:empty?).join(' ')
0033 
0034 # run EICrecon
0035 exec("eicrecon -Pplugins=#{plugins} -Ppodio:output_collections=#{out_collect} #{options} -Ppodio:output_file=#{out_podio} -Phistsfile=#{out_plugin} #{in_ddsim}")
0036 
0037 # end =========================================================================