[G12] Next problem -- sample gsim script
Craig Bookwalter
craigb at jlab.org
Wed Jul 14 09:52:24 EDT 2010
Hi Carlos,
It doesn't work on the 64-bit machines because they don't have the
same library versions between CentOS 5.3 and Fedora 8. It's easy to fix
on a case-by-case basis but a general fix is more difficult. If you're
trying to adapt the sample script to run your personal MC, I just
softlink the missing libraries into $HOME/lib or somewhere similar, and
then add $HOME/lib to my LD_LIBRARY_PATH. For example, gsim_bat as built
in the STABLE 32-bit build needs libXm.so.2, but CentOS 5.3 has
libXm.so.4 -- so I would do:
ln -s /usr/lib/libXm.so.4 $HOME/lib/libXm.so.2
export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
Techinically this is a bad practice because the version numbers are
there to make sure you use the same shared libraries a program was
compiled against, but for standard stuff like Motif it shouldn't be a
problem.
hth
--cb
Il 07/14/2010 03:25 PM, salgado at jlab.org ha scritto:
> Craig,
>
> Thank you very much. Very helpful!
> (will it run in ifarml6 - 64bit?)
>
>> g12,
>> There now exists a sample script for GSIM monte-carlo. It does the
>> following:
>>
>> - Generates 1000 events of gamma p -> pi+ pi+ pi- n events in gamp format
>> - Converts them into BOS format for input to GSIM, with
>> appropriately-smeared vertex distributions
>> - Feeds the events through GSIM itself
>> - Smears the detector response with gpp
>> - reconstructs the events with a1c
>>
>> All of the tools used are in the 32bit STABLE build on under /group. The
>> script can be run by any user on any of the ifarml interactive nodes. I
>> have ran it myself and verified that it gives reasonable output. It is
>> located here and referenced on the Software page on the wiki:
>>
>> /home/clasg12/local/scripts/sample_gsim_desktop.sh
>>
>>
>> --cb
>>
>>
>> Il 07/13/2010 11:29 PM, Johann Goetz ha scritto:
>>> I have been using exactly what is on the wiki with much success,
>>> though I built my own genr8 (as well as all other clas6 software) from
>>> the current clas6 trunk.
>>>
>>> On Tue, Jul 13, 2010 at 2:09 PM,<salgado at jlab.org> wrote:
>>>> Johannn
>>>>
>>>> The answer is
>>>>
>>>> /group/clas/builds/64bit/STABLE/build/bin/
>>>>
>>>> but genr8, that is not that directory.
>>>> The genr8 version w/o -o switch is at
>>>> /group/clasdev/clas/src/bin/LinuxRH7/
>>>>
>>>> (I have used a version from Diane that have the -o switch)
>>>> We should have all these exec in the nightly built. We also need a
>>>> current
>>>> example with the "right" switches on the wiki (i.e. a1c used in
>>>> cooking).
>>>>
>>>> Johann, it seems that you worte what is now in the wiki, is that still
>>>> OK? As Dennis said, a1c produces lots of photons from pKK events that I
>>>> had generated (using the switches from the wiki). See you Carlos
>>>>
>>>>> what is the output of these commands, i.e. which executables are you
>>>>> using?
>>>>>
>>>>> which genr8
>>>>> which gsim_batch
>>>>> which gpp
>>>>> which a1c
>>>>>
>>>>> On Tue, Jul 13, 2010 at 1:07 PM, Dennis Weygand<weygand at jlab.org>
>>>>> wrote:
>>>>>> Next problem:
>>>>>> Apparently there is a 'special' version of genr8 somewhere...
>>>>>> I run that, then gsim, then gpp, then a1c
>>>>>> Again I use the command on the wiki:
>>>>>>
>>>>>> a1c -T4 -sa -ct1930 -cm0 -cp0 -X0 -d1 -F -P0x1bff -z0,0,-90
>>>>>> -Aprlink_tg-90pm30.bos -oxikk.a1c xikk.gpp
>>>>>>
>>>>>> Every particle in the PART bank is a photon.
>>>>>> Are these switches right?
>>>>>> Is there a 'special' a1c with 'special' switches?
>>>>>> Is everyone else having this problem?
>>>>>>
>>>>>> --
>>>>>> Dennis Weygand
>>>>>> weygand at jlab.org
>>>>>> (757) 269-5926
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> G12 mailing list
>>>>>> G12 at jlab.org
>>>>>> https://mailman.jlab.org/mailman/listinfo/g12
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Johann Goetz
>>>>> jgoetz at ucla.edu
>>>>> UCLA Dept. Physics& Astronomy
>>>>> Nefkens Group
>>>>> _______________________________________________
>>>>> G12 mailing list
>>>>> G12 at jlab.org
>>>>> https://mailman.jlab.org/mailman/listinfo/g12
>>>>>
>>>>
>>>
>> _______________________________________________
>> G12 mailing list
>> G12 at jlab.org
>> https://mailman.jlab.org/mailman/listinfo/g12
>>
More information about the G12
mailing list