Verified Commit 2564bdfa authored by Tadej Novak's avatar Tadej Novak
Browse files

Backport LArConfiguration for reprocessing

parent da1462db
# 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)
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