LArConfigRun2Old.py 1005 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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)