MCWrapper jana1 configuration option for hd_root?

13 views
Skip to first unread message

Elton Smith

unread,
May 9, 2025, 10:19:56 AMMay 9
to gluex-s...@googlegroups.com, Elton Smith


Dear Software experts


I have just recently tried to revive my NPP event generator/analysis and found that MCWrapper was not (correctly) processing the output of mcsmear. When I run gluex_MC.py directly from the software repository, the command to hd_root contains the outdated configuration for jana1 of —config=filename.cfg. If I use the jana2 configuration option of —loadconfigs filename.cfg, it produces output as expected. Either there is something in my environment (file attached) that is causing the issue or else MCWrapper needs to be updated with the correct configuration parameter. 


I have highlighted in red the relevant sections. When the wrong configuration option is used, the hd_root file is empty (487 bytes), but with the correct option the file contains the expected histograms. The hd_root terminal outputs are attached separately so they do not obscure the main point.


It would be nice is someone else could confirm this MCWrapper issue with a working environment.


Thanks, Elton


p.s. To Alex and Simon that have helped along the way, the ccdb access was a red herring that I thought made a difference, but I now see that it has to do with the options to hd_root.




——————Outputs


ifarm2402:gen_2pi0_primakoff>

ifarm2402:gen_2pi0_primakoff>which gluex_MC.py

/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/gluex_MCwrapper/gluex_MCwrapper-v2.10.0/gluex_MC.py

ifarm2402:gen_2pi0_primakoff>gluex_MC.py MC.config 101000 1000 cleangenerate=0 cleangeant=0 cleanmcsmear=0 base_file_number=10 batch=0 >& mcw_dump_10.list

ifarm2402:gen_2pi0_primakoff>grep -i hd_root mcw_dump_10.list 

/work/halld2/home/elton/git/halld_recon/Linux_Alma9-x86_64-gcc11.5.0/bin/hd_root

hd_root gen_2pi0_primakoff_mar2025_101000_010_geant4_smeared.hddm --config=jana_config.cfg -PNTHREADS=1 -PTHREAD_TIMEOUT=500

09:21:34.699  [info] OUTPUT_FILENAME: hd_root.root

Opened ROOT file "hd_root.root" ...

hd_root.root


Move to directory with mcsmear output files:


ifarm2401:monitoring_hists>ls -ltr

-rw-r--r--. 1 elton halld     487 May  9 09:21 hd_root_gen_2pi0_primakoff_mar2025_101000_010.root


ifarm2401:hddm>pwd

/w/halld-scshelf2101/home/elton/gen_2pi0_primakoff_signal_sigma/hddm


-rw-r--r--. 1 elton halld  7066887 May  9 09:21  gen_2pi0_primakoff_mar2025_101000_010_geant4_smeared.hddm


ifarm2401:hddm>hd_root gen_2pi0_primakoff_mar2025_101000_010_geant4_smeared.hddm --config=jana_Z2pi_trees.config -PNTHREADS=1 -PTHREAD_TIMEOUT=500 >& jana_dump1.list

ifarm2401:hddm>ls -ltr hd_root.root

-rw-r--r--. 1 elton halld 487 May  9 09:31 hd_root.root

ifarm2401:hddm>hd_root gen_2pi0_primakoff_mar2025_101000_010_geant4_smeared.hddm --loadconfigs jana_Z2pi_trees.config -PNTHREADS=1 -PTHREAD_TIMEOUT=500 > & jana_dump23.list

ifarm2401:hddm>ls -ltr hd_root.root

-rw-r--r--. 1 elton halld 3890681 May  9 09:33 hd_root.root

ifarm2401:hddm>







Elton Smith




environment.list
mcw_dump_10.list
jana_dump2.list
jana_dump23.list

Peter Hurck

unread,
May 11, 2025, 5:35:25 PMMay 11
to Elton Smith, gluex-s...@googlegroups.com
Hi Elton,

This is indeed an issue with MCWrapper.

It was an oversight on my part that jana2 now needs other flags compared to jana1. We will need to implement some switches so that MCWrapper knows how to handle the passing of config files.

Thanks for pointing this out.

Cheers,
Peter



--
You received this message because you are subscribed to the Google Groups "GlueX Software Help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gluex-softwar...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gluex-software/73B8C570-8D20-4E1F-896A-335550856729%40jlab.org.
<environment.list><mcw_dump_10.list><jana_dump2.list><jana_dump23.list>

Elton Smith

unread,
May 12, 2025, 11:03:20 AMMay 12
to Peter Hurck, gluex-s...@googlegroups.com
Thanks, Elton. 
Elton Smith
206 Pageland Dr
Yorktown, Va 23693

On May 11, 2025, at 5:35 PM, Peter Hurck <ppau...@googlemail.com> wrote:

 Hi Elton,
Reply all
Reply to author
Forward
0 new messages