Skip to content

Commit

Permalink
Modified recon launch tag recon-2017_01-ver03 using same procedure as
Browse files Browse the repository at this point in the history
with split of sim-recon.
  • Loading branch information
markito3 committed Aug 21, 2018
1 parent cd248aa commit b1f39b0
Show file tree
Hide file tree
Showing 814 changed files with 120 additions and 262,313 deletions.
14 changes: 7 additions & 7 deletions src/SBMS/SConstruct.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This SConstruct file can be copied into a directory containing
# the source for a plugin and used to compile it. It will use and
# install into the directory specified by the HALLD_MY environment
# variable if defined. Otherwise, it will install in the HALLD_HOME
# variable if defined. Otherwise, it will install in the HALLD_RECON_HOME
# directory.
#
# This file should not need modification. It will be copied in by
Expand All @@ -29,13 +29,13 @@ import sys
import subprocess
import glob

# Get HALLD_HOME environment variable, verifying it is set
halld_home = os.getenv('HALLD_HOME')
# Get HALLD_RECON_HOME environment variable, verifying it is set
halld_home = os.getenv('HALLD_RECON_HOME')
if(halld_home == None):
print 'HALLD_HOME environment variable not set!'
print 'HALLD_RECON_HOME environment variable not set!'
exit(-1)

# Get HALLD_MY if it exists. Otherwise use HALLD_HOME
# Get HALLD_MY if it exists. Otherwise use HALLD_RECON_HOME
halld_my = os.getenv('HALLD_MY', halld_home)

# Add SBMS directory to PYTHONPATH
Expand All @@ -61,7 +61,7 @@ lib = "%s/lib" % (installdir)
plugins = "%s/plugins" % (installdir)
env = Environment( ENV = os.environ, # Bring in full environment, including PATH
CPPPATH = [include],
LIBPATH = ["%s/%s/lib" %(halld_home, osname)], # n.b. add HALLD_HOME here and prepend HALLD_MY below
LIBPATH = ["%s/%s/lib" %(halld_home, osname)], # n.b. add HALLD_RECON_HOME here and prepend HALLD_MY below
variant_dir = ".%s" % (osname))

# Only add HALLD_MY library search path if it already exists
Expand Down Expand Up @@ -99,7 +99,7 @@ env.Replace( CXX = os.getenv('CXX', 'g++'),
CC = os.getenv('CC' , 'gcc'),
FC = os.getenv('FC' , 'gfortran') )

# Add local directory, directories from HALLD_MY and HALLD_HOME to include search path
# Add local directory, directories from HALLD_MY and HALLD_RECON_HOME to include search path
#env.PrependUnique(CPPPATH = ['#'])
env.PrependUnique(CPPPATH = ['%s/src' % halld_my, '%s/src/libraries' % halld_my, '%s/src/libraries/include' % halld_my])
env.PrependUnique(CPPPATH = ['%s/src' % halld_home, '%s/src/libraries' % halld_home, '%s/src/libraries/include' % halld_home])
Expand Down
4 changes: 2 additions & 2 deletions src/SBMS/sbms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ def AddAmpTools(env):
print 'is not set. Expect to see an error message below....'
print ''
else:
env.AppendUnique(CUDAFLAGS=['-I%s -I%s/src/libraries' % (AMPTOOLS, os.getenv('HALLD_HOME',os.getcwd()))])
env.AppendUnique(CUDAFLAGS=['-I%s -I%s/src/libraries' % (AMPTOOLS, os.getenv('HALLD_RECON_HOME',os.getcwd()))])
AddCUDA(env)
AMPTOOLS_CPPPATH = "%s" % (AMPTOOLS)
AMPTOOLS_LIBPATH = "%s/lib" % (AMPTOOLS)
Expand Down Expand Up @@ -1070,7 +1070,7 @@ def AddAmpPlotter(env):
##################################
def AddCobrems(env):
pyincludes = subprocess.Popen(["python-config", "--includes" ], stdout=subprocess.PIPE).communicate()[0]
cobrems_home = os.getenv('HALLD_HOME', 'sim-recon')
cobrems_home = os.getenv('HALLD_RECON_HOME', 'halld_recon')
env.AppendUnique(CPPPATH = ["%s/src/libraries/AMPTOOLS_MCGEN" % (cobrems_home)])
env.AppendUnique(LIBPATH = ["%s/%s/lib" % (cobrems_home, env['OSNAME'])])
env.AppendUnique(LIBS = 'AMPTOOLS_MCGEN')
Expand Down
20 changes: 10 additions & 10 deletions src/SBMS/sbms_setenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ def mk_setenv_csh(env):

# HALLD
str += '# HALLD\n'
str += 'setenv HALLD_HOME %s\n' % halld_home
str += 'setenv HALLD_RECON_HOME %s\n' % halld_home
str += 'setenv BMS_OSNAME %s\n' % env['OSNAME']
str += 'setenv PATH ${HALLD_HOME}/${BMS_OSNAME}/bin:${PATH}\n'
str += 'setenv JANA_PLUGIN_PATH ${HALLD_HOME}/${BMS_OSNAME}/plugins:${JANA_PLUGIN_PATH}\n'
str += 'setenv PATH ${HALLD_RECON_HOME}/${BMS_OSNAME}/bin:${PATH}\n'
str += 'setenv JANA_PLUGIN_PATH ${HALLD_RECON_HOME}/${BMS_OSNAME}/plugins:${JANA_PLUGIN_PATH}\n'
# python support
str += 'setenv %s ${HALLD_HOME}/${BMS_OSNAME}/lib:${%s}\n' %(LDLPV, LDLPV)
str += 'setenv PYTHONPATH ${HALLD_HOME}/${BMS_OSNAME}/lib/python:${PYTHONPATH}\n'
str += 'setenv %s ${HALLD_RECON_HOME}/${BMS_OSNAME}/lib:${%s}\n' %(LDLPV, LDLPV)
str += 'setenv PYTHONPATH ${HALLD_RECON_HOME}/${BMS_OSNAME}/lib/python:${PYTHONPATH}\n'
str += '\n'

# CCDB
Expand Down Expand Up @@ -271,13 +271,13 @@ def mk_setenv_bash(env):

# HALLD
str += '# HALLD\n'
str += 'export HALLD_HOME=%s\n' % halld_home
str += 'export HALLD_RECON_HOME=%s\n' % halld_home
str += 'export BMS_OSNAME=%s\n' % env['OSNAME']
str += 'export PATH=${HALLD_HOME}/${BMS_OSNAME}/bin:${PATH}\n'
str += 'export JANA_PLUGIN_PATH=${HALLD_HOME}/${BMS_OSNAME}/plugins:${JANA_PLUGIN_PATH}\n'
str += 'export PATH=${HALLD_RECON_HOME}/${BMS_OSNAME}/bin:${PATH}\n'
str += 'export JANA_PLUGIN_PATH=${HALLD_RECON_HOME}/${BMS_OSNAME}/plugins:${JANA_PLUGIN_PATH}\n'
# python support
str += 'export %s=${HALLD_HOME}/${BMS_OSNAME}/lib:${%s}\n' %(LDLPV, LDLPV)
str += 'export PYTHONPATH=${HALLD_HOME}/${BMS_OSNAME}/lib/python:${PYTHONPATH}\n'
str += 'export %s=${HALLD_RECON_HOME}/${BMS_OSNAME}/lib:${%s}\n' %(LDLPV, LDLPV)
str += 'export PYTHONPATH=${HALLD_RECON_HOME}/${BMS_OSNAME}/lib/python:${PYTHONPATH}\n'
str += '\n'

# CCDB
Expand Down
4 changes: 2 additions & 2 deletions src/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ BUILDSWIG = ARGUMENTS.get('BUILDSWIG', 0)
# Get platform-specific name
osname = os.getenv('BMS_OSNAME', 'build')

# Make sure HALLD_HOME is set (needed for python module builds)
if not os.getenv('HALLD_HOME'): os.environ['HALLD_HOME'] = Dir('#/..').abspath
# Make sure HALLD_RECON_HOME is set (needed for python module builds)
if not os.getenv('HALLD_RECON_HOME'): os.environ['HALLD_RECON_HOME'] = Dir('#/..').abspath

# Get architecture name
arch = ROOT_CFLAGS = subprocess.Popen(["uname"], stdout=subprocess.PIPE).communicate()[0].strip()
Expand Down
107 changes: 0 additions & 107 deletions src/libraries/AMPTOOLS_AMPS/BreitWigner.cc

This file was deleted.

59 changes: 0 additions & 59 deletions src/libraries/AMPTOOLS_AMPS/BreitWigner.h

This file was deleted.

68 changes: 0 additions & 68 deletions src/libraries/AMPTOOLS_AMPS/BreitWigner3body.cc

This file was deleted.

Loading

0 comments on commit b1f39b0

Please sign in to comment.