@@ -26,6 +26,7 @@ function main()
2626 " --algorithm" , " -A"
2727 help = """ Algorithm to use for jet reconstruction: $(join (JetReconstruction. AllJetRecoAlgorithms, " , " )) """
2828 arg_type = JetAlgorithm. Algorithm
29+ default = JetAlgorithm. AntiKt
2930
3031 " --power" , " -p"
3132 help = """ Power value for jet reconstruction"""
@@ -36,6 +37,23 @@ function main()
3637 arg_type = RecoStrategy. Strategy
3738 default = RecoStrategy. Best
3839
40+ " --ancestors" , " -a"
41+ help = """ Show ancestors of jets in the animation"""
42+ action = :store_true
43+
44+ " --title" , " -t"
45+ help = """ Title for animation"""
46+
47+ " --framerate"
48+ help = """ Framerate per second"""
49+ arg_type = Int
50+ default = 10
51+
52+ " --end-frames"
53+ help = """ Number of end frames to pad animation with"""
54+ arg_type = Int
55+ default = 0
56+
3957 " file"
4058 help = " HepMC3 event file in HepMC3 to read"
4159 required = true
@@ -52,17 +70,14 @@ function main()
5270 events:: Vector{Vector{PseudoJet}} = read_final_state_particles (args[:file ],
5371 maxevents = args[:event ],
5472 skipevents = args[:event ])
55- if isnothing (args[:algorithm ]) && isnothing (args[:power ])
56- @warn " Neither algorithm nor power specified, defaulting to AntiKt"
57- args[:algorithm ] = JetAlgorithm. AntiKt
58- end
5973 cs = jet_reconstruct (events[1 ], R = args[:distance ], p = args[:power ],
6074 algorithm = args[:algorithm ],
6175 strategy = args[:strategy ])
6276
6377 animatereco (cs, args[:output ]; azimuth = (1.8 , 3.0 ), elevation = 0.5 ,
64- perspective = 0.5 , framerate = 20 , ancestors = true ,
65- barsize_phi = 0.1 , barsize_y = 0.3 )
78+ perspective = 0.5 , ancestors = args[:ancestors ],
79+ barsize_phi = 0.1 , barsize_y = 0.3 , title = args[:title ],
80+ framerate = args[:framerate ], end_frames = args[:end_frames ])
6681
6782 @info " Saved jet reconstruction animation to $(args[:output ]) "
6883end
0 commit comments