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