Dear Software Help,
I am probably doing something dumb, but I am trying to compile an amplitude and it cannot find a JANA/JEvent.h include file. It seems like my environment should allow this, but it fails. Any suggestions are welcome.
Thanks!
The error highlighted in red
scons: Entering directory `/w/halld-scshelf2101/halld2/home/elton/git/halld_sim/src'
scons: Reading SConscript files ...
sbms : Making setenv.csh in /w/halld-scshelf2101/halld2/home/elton/git/halld_sim/Linux_Alma9-x86_64-gcc11.5.0
sbms : Making setenv.sh in /w/halld-scshelf2101/halld2/home/elton/git/halld_sim/Linux_Alma9-x86_64-gcc11.5.0
scons: done reading SConscript files.
scons: Building targets ...
[ 23%] Compiling [libraries/AMPTOOLS_AMPS/TwoPiAngles_primakoff.cc]
In file included from libraries/AMPTOOLS_AMPS/TwoPiAngles_primakoff.cc:12:
/work/halld2/home/elton/git/halld_recon/Linux_Alma9-x86_64-gcc11.5.0/include/ANALYSIS/DAnalysisUtilities.h:14:10: fatal error: JANA/JEvent.h: No such file or directory
14 | #include <JANA/JEvent.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
scons: *** [.Linux_Alma9-x86_64-gcc11.5.0/libraries/AMPTOOLS_AMPS/TwoPiAngles_primakoff.o] Error 1
scons: building terminated because of errors.
JANA environment:
-rw-r--r--. 1 gluex halld 22149 Apr 16 10:07 '/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/jana/jana_2.4.1^ccdb2006/Linux_Alma9-x86_64-gcc11.5.0/include/JANA/JEvent.h'
Environment setup:
PATH=/apps/bin:/work/halld2/home/elton/git/gluex_root_analysis/Linux_Alma9-x86_64-gcc11.5.0/bin/:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/gluex_MCwrapper/gluex_MCwrapper-v2.10.0:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/hdgeant4/hdgeant4-3.1.0/bin/Linux-g++:/home/elton/halld_my/Linux_Alma9-x86_64-gcc11.5.0/bin:/work/halld2/home/elton/git/halld_sim/Linux_Alma9-x86_64-gcc11.5.0/bin:/work/halld2/home/elton/git/halld_recon/Linux_Alma9-x86_64-gcc11.5.0/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/hddm/hddm-5.0.0/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/jana/jana_2.4.1^ccdb2006/Linux_Alma9-x86_64-gcc11.5.0/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/rcdb/rcdb_0.09.01:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/rcdb/rcdb_0.09.01/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/rcdb/rcdb_0.09.01/cpp/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/ccdb/ccdb_2.00.06/bin:/home/elton/geant4_workdir/bin/Linux-g++:/u/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/geant4/geant4.10.07.p04/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/cernlib/2005/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/root/root-6.24.04/bin:/apps/perl/bin:.:/usr/share/Modules/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin:/home/elton/bin:/home/elton/usr/bin:/usr/local/bin:/work/halld2/home/elton/git/gluex_root_analysis/Linux_Alma9-x86_64-gcc11.5.0/bin:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/gluex_MCwrapper/gluex_MCwrapper-v2.10.0
JANA_VERSION=2.4.1
JANA_HOME=/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/jana/jana_2.4.1^ccdb2006/Linux_Alma9-x86_64-gcc11.5.0
JANA_DIRTAG=ccdb2006
JANA_GEOMETRY_URL=ccdb:///GEOMETRY/cpp_HDDS.xml
JANA_PLUGIN_PATH=/home/elton/halld_my/Linux_Alma9-x86_64-gcc11.5.0/plugins:/work/halld2/home/elton/git/halld_sim/Linux_Alma9-x86_64-gcc11.5.0/plugins:/work/halld2/home/elton/git/halld_recon/Linux_Alma9-x86_64-gcc11.5.0/plugins:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/jana/jana_2.4.1^ccdb2006/Linux_Alma9-x86_64-gcc11.5.0/plugins:/group/halld/Software/builds/Linux_Alma9-x86_64-gcc11.5.0/jana/jana_2.4.1^ccdb2006/Linux_Alma9-x86_64-gcc11.5.0/lib
JANA_RESOURCE_DIR=/group/halld/www/halldweb/html/resources
JANA_CALIB_CONTEXT=variation=default
Aside: I am trying to access the polarization information for a given run number, which accesses dAnalysisUtilities as follows. There might be an easier way to do this.
UInt_t locRunNumber = 101580;
dIsPolarizedFlag = dAnalysisUtilities.Get_IsPolarizedBeam(locRunNumber, dIsPARAFlag);