ATLAS Offline Software
CaloRecoCalibConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 def CaloRecoCalibCfg(configFlags):
4 
5  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6  from AthenaConfiguration.Enums import Format
7  result = ComponentAccumulator()
8  if configFlags.Input.Format is Format.BS:
9  #Data-case: Schedule ByteStream reading for LAr & Tile
10  from LArByteStream.LArRawCalibDataReadingConfig import LArRawCalibDataReadingCfg
11  result.merge(LArRawCalibDataReadingCfg(configFlags,gain="FREE",doDigit=True))
12 
13  from TileByteStream.TileByteStreamConfig import TileRawDataReadingCfg
14  result.merge( TileRawDataReadingCfg(configFlags) )
15 
16  if configFlags.Output.doWriteESD:
17  from TileRecAlgs.TileDigitsFilterConfig import TileDigitsFilterOutputCfg
18  result.merge(TileDigitsFilterOutputCfg(configFlags))
19  else: #Mostly for wrapping in RecExCommon
20  from TileRecAlgs.TileDigitsFilterConfig import TileDigitsFilterCfg
21  result.merge(TileDigitsFilterCfg(configFlags))
22 
23  from LArROD.LArRawChannelBuilderAlgConfig import LArRawChannelBuilderAlgCfg
24  result.merge(LArRawChannelBuilderAlgCfg(configFlags))
25  from TileRecUtils.TileRawChannelMakerConfig import TileRawChannelMakerCfg
26  result.merge(TileRawChannelMakerCfg(configFlags))
27 
28  if not configFlags.Input.isMC:
29  from LArCellRec.LArTimeVetoAlgConfig import LArTimeVetoAlgCfg
30  result.merge(LArTimeVetoAlgCfg(configFlags))
31 
32 
33 
34  #Configure cell-building
35  from CaloRec.CaloCellMakerConfig import CaloCellMakerCfg
36  result.merge(CaloCellMakerCfg(configFlags))
37 
38  return result
39 
40 
41 
42 
43 
44 
45 
46 
47 
48 if __name__=="__main__":
49  from AthenaConfiguration.AllConfigFlags import initConfigFlags
50  from AthenaCommon.Constants import DEBUG
51 
52  flags = initConfigFlags()
53  flags.Input.Files = ['/eos/atlas/atlastier0/rucio/data22_calib/calibration_L1CaloEnergyScan/00408980/data22_calib.00408980.calibration_L1CaloEnergyScan.daq.RAW/data22_calib.00408980.calibration_L1CaloEnergyScan.daq.RAW._lb0000._SFO-1._0001.data']
54  flags.LAr.doHVCorr = False
55  from LArConfiguration.LArConfigFlags import RawChannelSource
56  flags.LAr.RawChannelSource = RawChannelSource.Calculated
57  flags.Exec.OutputLEvel=DEBUG
58 
59  flags.lock()
60 
61  from AthenaConfiguration.MainServicesConfig import MainServicesCfg
62  acc = MainServicesCfg(flags)
63  acc.merge(CaloRecoCalibCfg(flags))
64 
65 
66  acc.run(10)
TileDigitsFilterConfig.TileDigitsFilterOutputCfg
def TileDigitsFilterOutputCfg(flags, streamName='ESD', **kwargs)
Definition: TileDigitsFilterConfig.py:31
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.LArRawChannelBuilderAlgConfig.LArRawChannelBuilderAlgCfg
def LArRawChannelBuilderAlgCfg(flags, **kwargs)
Definition: LArRawChannelBuilderAlgConfig.py:9
CaloRecoCalibConfig.CaloRecoCalibCfg
def CaloRecoCalibCfg(configFlags)
Definition: CaloRecoCalibConfig.py:3
python.LArRawCalibDataReadingConfig.LArRawCalibDataReadingCfg
def LArRawCalibDataReadingCfg(configFlags, gain="HIGH", doAccDigit=False, doAccCalibDigit=False, doCalibDigit=False, doDigit=False)
Definition: LArRawCalibDataReadingConfig.py:8
python.CaloCellMakerConfig.CaloCellMakerCfg
def CaloCellMakerCfg(flags)
Definition: CaloCellMakerConfig.py:12
TileDigitsFilterConfig.TileDigitsFilterCfg
def TileDigitsFilterCfg(flags, **kwargs)
Definition: TileDigitsFilterConfig.py:9
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
Constants
some useful constants -------------------------------------------------—
LArTimeVetoAlgConfig.LArTimeVetoAlgCfg
def LArTimeVetoAlgCfg(flags)
Definition: LArTimeVetoAlgConfig.py:7
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
TileByteStreamConfig.TileRawDataReadingCfg
def TileRawDataReadingCfg(flags, readDigits=True, readRawChannel=True, readMuRcv=None, readMuRcvDigits=False, readMuRcvRawCh=False, readBeamElem=None, readLaserObj=None, readDigitsFlx=False, readL2=False, stateless=False, **kwargs)
Definition: TileByteStreamConfig.py:87
TileRawChannelMakerConfig.TileRawChannelMakerCfg
def TileRawChannelMakerCfg(flags, **kwargs)
Definition: TileRawChannelMakerConfig.py:10