Commit bed86bdd authored by Rachid Mazini's avatar Rachid Mazini
Browse files

Merge branch 'campaigns/21.0-mc16a' into '21.0-mc16a'

Backport campaigns configuration to 21.0-mc16a for reprocessing

See merge request !44926
parents da1462db d85c7cf3
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( LArConfiguration )
# Install files from the package:
atlas_install_joboptions( share/*.py )
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from LArROD.LArRODFlags import larRODFlags
from LArDigitization.LArDigitizationFlags import jobproperties
larRODFlags.doOFCPileupOptimization.set_Value_and_Lock(True) # default
larRODFlags.firstSample.set_Value_and_Lock(0) # default
larRODFlags.nSamples.set_Value_and_Lock(5) # default
larRODFlags.NumberOfCollisions.set_Value_and_Lock(20) # Run-1,2 default
larRODFlags.UseDelta.set_Value_and_Lock(3) # it was used in Run-1
larRODFlags.useHighestGainAutoCorr.set_Value_and_Lock(False) # default in Run-1
jobproperties.LArDigitizationFlags.useEmecIwHighGain.set_Value_and_Lock(False) # default
jobproperties.LArDigitizationFlags.useFcalHighGain.set_Value_and_Lock(False) # default
# check if Beam flag is set properly
if jobproperties.Beam.numberOfCollisions() != 20:
from AthenaCommon.Logging import logging
mlog = logging.getLogger ('SetLArConfigRun1')
mlog.error("Beam.numberOfCollisions %f different from what is expected for Run1 digi/reco ", jobproperties.Beam.numberOfCollisions)
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from LArROD.LArRODFlags import larRODFlags
from LArDigitization.LArDigitizationFlags import jobproperties
larRODFlags.doOFCPileupOptimization.set_Value_and_Lock(True) # default
larRODFlags.firstSample.set_Value_and_Lock(0) # default
larRODFlags.nSamples.set_Value_and_Lock(5) # default
larRODFlags.NumberOfCollisions.set_Value_and_Lock(20) # Run-1,2 default
larRODFlags.UseDelta.set_Value_and_Lock(3) # it was used in Run-1
larRODFlags.useHighestGainAutoCorr.set_Value_and_Lock(False) # default in Run-1
jobproperties.LArDigitizationFlags.useEmecIwHighGain.set_Value_and_Lock(False) # default
jobproperties.LArDigitizationFlags.useFcalHighGain.set_Value_and_Lock(False) # default
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from LArROD.LArRODFlags import larRODFlags
from LArDigitization.LArDigitizationFlags import jobproperties
larRODFlags.doOFCPileupOptimization.set_Value_and_Lock(False) # no pileup optimisation for OFC
larRODFlags.firstSample.set_Value_and_Lock(0) # default
larRODFlags.nSamples.set_Value_and_Lock(5) # default
larRODFlags.NumberOfCollisions.set_Value_and_Lock(0) # no pileup
larRODFlags.useHighestGainAutoCorr.set_Value_and_Lock(False) # default in Run1
jobproperties.LArDigitizationFlags.useEmecIwHighGain.set_Value_and_Lock(True) # use high gain in EMEC IW in nopileup case
jobproperties.LArDigitizationFlags.useFcalHighGain.set_Value_and_Lock(False) # use high gain in Fcal in nopileup case
# check if Beam flag is set properly
if jobproperties.Beam.numberOfCollisions() != 0:
from AthenaCommon.Logging import logging
mlog = logging.getLogger ('SetLArConfigRun1')
mlog.error("Beam.numberOfCollisions %f different from what is expected for Run1 no pileup digi/reco ", jobproperties.Beam.numberOfCollisions)
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from LArROD.LArRODFlags import larRODFlags
from LArDigitization.LArDigitizationFlags import jobproperties
larRODFlags.doOFCPileupOptimization.set_Value_and_Lock(True) # default
larRODFlags.useHighestGainAutoCorr.set_Value_and_Lock(True) # default
larRODFlags.firstSample.set_Value_and_Lock(0) # default
larRODFlags.nSamples.set_Value_and_Lock(4) # default
larRODFlags.NumberOfCollisions.set_Value_and_Lock(20) # Run-2 default
jobproperties.LArDigitizationFlags.useEmecIwHighGain.set_Value_and_Lock(False) # default
jobproperties.LArDigitizationFlags.useFcalHighGain.set_Value_and_Lock(False) # default
# check if Beam flag is set properly
if jobproperties.Beam.numberOfCollisions() != 20:
from AthenaCommon.Logging import logging
mlog = logging.getLogger ('SetLArConfigRun2')
mlog.error("Beam.numberOfCollisions %f different from what is expected for Run2 digi/reco ", jobproperties.Beam.numberOfCollisions)
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from LArROD.LArRODFlags import larRODFlags
from LArDigitization.LArDigitizationFlags import jobproperties
larRODFlags.doOFCPileupOptimization.set_Value_and_Lock(True) # default
larRODFlags.useHighestGainAutoCorr.set_Value_and_Lock(True) # default
larRODFlags.firstSample.set_Value_and_Lock(0) # default
larRODFlags.nSamples.set_Value_and_Lock(4) # default
larRODFlags.NumberOfCollisions.set_Value_and_Lock(20) # Run-2 default
jobproperties.LArDigitizationFlags.useEmecIwHighGain.set_Value_and_Lock(False) # default
jobproperties.LArDigitizationFlags.useFcalHighGain.set_Value_and_Lock(False) # default
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from LArROD.LArRODFlags import larRODFlags
from LArDigitization.LArDigitizationFlags import jobproperties
larRODFlags.doOFCPileupOptimization.set_Value_and_Lock(False) # no pileup optimisation for OFC
larRODFlags.useHighestGainAutoCorr.set_Value_and_Lock(False)
larRODFlags.firstSample.set_Value_and_Lock(0) # default
larRODFlags.nSamples.set_Value_and_Lock(4) # default
larRODFlags.NumberOfCollisions.set_Value_and_Lock(0) # no pileup
larRODFlags.useHighestGainAutoCorr.set_Value_and_Lock(False) # no pileup
jobproperties.LArDigitizationFlags.useEmecIwHighGain.set_Value_and_Lock(True) # use high gain in EMEC IW in nopileup case
jobproperties.LArDigitizationFlags.useFcalHighGain.set_Value_and_Lock(True) # use high gain in Fcal in nopileup case
# check if Beam flag is set properly
if jobproperties.Beam.numberOfCollisions() != 0:
from AthenaCommon.Logging import logging
mlog = logging.getLogger ('SetLArConfigRun2')
mlog.error("Beam.numberOfCollisions %f different from what is expected for Run2 no pileup digi/reco ", jobproperties.Beam.numberOfCollisions)
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( Campaigns )
# Install files from the package:
atlas_install_joboptions( share/*.py )
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.BeamFlags import jobproperties as bf
bf.Beam.numberOfCollisions.set_Value_and_Lock(0)
from AthenaCommon.Resilience import protectedInclude
protectedInclude('LArConfiguration/LArConfigRun2Old_NoPileup.py')
protectedInclude('PyJobTransforms/HepMcParticleLinkVerbosity.py')
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.BeamFlags import jobproperties as bf
bf.Beam.numberOfCollisions.set_Value_and_Lock(20.0)
from LArDigitization.LArDigitizationFlags import jobproperties as lar
lar.LArDigitizationFlags.useEmecIwHighGain.set_Value_and_Lock(True)
from AthenaCommon.Resilience import protectedInclude
protectedInclude('LArConfiguration/LArConfigRun2Old.py')
protectedInclude('PyJobTransforms/HepMcParticleLinkVerbosity.py')
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.BeamFlags import jobproperties as bf
bf.Beam.numberOfCollisions.set_Value_and_Lock(20.0)
from AthenaCommon.Resilience import protectedInclude
protectedInclude('LArConfiguration/LArConfigRun2Old.py')
protectedInclude('PyJobTransforms/HepMcParticleLinkVerbosity.py')
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.BeamFlags import jobproperties as bf
bf.Beam.numberOfCollisions.set_Value_and_Lock(20.0)
from AthenaCommon.Resilience import protectedInclude
protectedInclude('LArConfiguration/LArConfigRun2Old.py')
protectedInclude('PyJobTransforms/HepMcParticleLinkVerbosity.py')
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.BeamFlags import jobproperties as bf
bf.Beam.numberOfCollisions.set_Value_and_Lock(0)
from AthenaCommon.Resilience import protectedInclude
protectedInclude('LArConfiguration/LArConfigRun2Old_NoPileup.py')
protectedInclude('PyJobTransforms/HepMcParticleLinkVerbosity.py')
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.BeamFlags import jobproperties as bf
bf.Beam.numberOfCollisions.set_Value_and_Lock(20.0)
from LArDigitization.LArDigitizationFlags import jobproperties as lar
lar.LArDigitizationFlags.useEmecIwHighGain.set_Value_and_Lock(True)
from AthenaCommon.Resilience import protectedInclude
protectedInclude('LArConfiguration/LArConfigRun2Old.py')
protectedInclude('PyJobTransforms/HepMcParticleLinkVerbosity.py')
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.BeamFlags import jobproperties as bf
bf.Beam.numberOfCollisions.set_Value_and_Lock(20.0)
from AthenaCommon.Resilience import protectedInclude
protectedInclude('LArConfiguration/LArConfigRun2Old.py')
protectedInclude('PyJobTransforms/HepMcParticleLinkVerbosity.py')
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.BeamFlags import jobproperties as bf
bf.Beam.numberOfCollisions.set_Value_and_Lock(20.0)
from AthenaCommon.Resilience import protectedInclude
protectedInclude('LArConfiguration/LArConfigRun2Old.py')
protectedInclude('PyJobTransforms/HepMcParticleLinkVerbosity.py')
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from AthenaCommon import CfgMgr
CfgMgr.MessageSvc().setError += ["HepMcParticleLink"]
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