Commit 18f9362c authored by Ewelina Maria Lobodzinska's avatar Ewelina Maria Lobodzinska
Browse files

add env. setup for Superchic and postSeq.CountHepMC.CorrectRunNumber = True in...

add env. setup for Superchic and postSeq.CountHepMC.CorrectRunNumber = True in case of inputEVNT_PreFile
parent 3e3831a3
......@@ -143,6 +143,7 @@ if not hasattr(postSeq, "CountHepMC"):
postSeq.CountHepMC.FirstEvent = runArgs.firstEvent
postSeq.CountHepMC.CorrectHepMC = True
postSeq.CountHepMC.CorrectEventID = True
postSeq.CountHepMC.CorrectRunNumber = False
## Print out the contents of the first 5 events (after filtering)
# TODO: Allow configurability from command-line/exec/include args
......@@ -161,6 +162,7 @@ if hasattr(runArgs, "rivetAnas"):
from Rivet_i.Rivet_iConf import Rivet_i
anaSeq += Rivet_i()
anaSeq.Rivet_i.Analyses = runArgs.rivetAnas
anaSeq.Rivet_i.DoRootHistos = True
##==============================================================
......@@ -385,6 +387,7 @@ if hasattr(runArgs, "inputEVNT_PreFile") :
# athenaCommonFlags.PoolEvgenInput.set_Value_and_Lock( runArgs.inputEVNT_PreFile )
svcMgr.EventSelector.InputCollections = runArgs.inputEVNT_PreFile
StreamEVGEN.TakeItemsFromInput = True
postSeq.CountHepMC.CorrectRunNumber = True
StreamEVGEN.ForceRead = True
StreamEVGEN.ItemList += ["EventInfo#*", "McEventCollection#*"]
......@@ -404,7 +407,7 @@ if not dsid.isdigit():
dsid = "999999"
svcMgr.EventSelector.RunNumber = int(dsid)
if postSeq.CountHepMC.CorrectRunNumber:
if postSeq.CountHepMC.CorrectRunNumber == True:
postSeq.CountHepMC.NewRunNumber = int(dsid)
evgenLog.info("Set new run number in skel NewRunNumber = " + str(postSeq.CountHepMC.NewRunNumber))
else:
......
......@@ -5,7 +5,6 @@
# Declare the package name:
atlas_subdir( Superchic_i )
# Install files from the package:
atlas_install_python_modules( python/*.py )
atlas_install_joboptions( share/*.py )
......
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
#
# This module is used to set up the environment for Superchic
#
#
# Set the environment variable(s):
find_package( Superchic )
if( SUPERCHIC_FOUND )
set( SUPERCHICENVIRONMENT_ENVIRONMENT
FORCESET SUPERCHICVER ${SUPERCHIC_LCGVERSION}
FORCESET SUPERCHICPATH ${SUPERCHIC_LCGROOT} )
endif()
# Silently declare the module found:
set( SUPERCHICENVIRONMENT_FOUND TRUE )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment