3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
6 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
10 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
26 from AthenaCommon.Logging
import logging
27 mlog = logging.getLogger(
'LArRawCalibDataReadingCfg' )
28 mlog.error(
"No digits type choosen for LArRawCalibDataReadingAlg, no reading algo added !!!!")
31 if configFlags.hasCategory(
"LArCalib"):
32 acc.addEventAlgo(CompFactory.LArRawCalibDataReadingAlg(LArDigitKey=digKey, LArAccDigitKey=accKey,
33 LArAccCalibDigitKey=accCalibKey,
34 LArCalibDigitKey=calibKey, LArFebHeaderKey=
"LArFebHeader",
35 SubCaloPreselection=configFlags.LArCalib.Input.SubDet,
36 PosNegPreselection=configFlags.LArCalib.Preselection.Side,
37 BEPreselection=configFlags.LArCalib.Preselection.BEC,
38 FTNumPreselection=configFlags.LArCalib.Preselection.FT))
40 acc.addEventAlgo(CompFactory.LArRawCalibDataReadingAlg(LArDigitKey=digKey, LArAccDigitKey=accKey,
41 LArAccCalibDigitKey=accCalibKey,
42 LArCalibDigitKey=calibKey, LArFebHeaderKey=
"LArFebHeader"))
46 if __name__==
"__main__":
48 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
50 from AthenaCommon.Logging
import log
54 flags.LAr.doAlign=
False
55 flags.Input.Files = [
"/eos/atlas/atlastier0/rucio/data22_calib/calibration_LArElec-Pedestal-32s-High-All/00420537/data22_calib.00420537.calibration_LArElec-Pedestal-32s-High-All.daq.RAW/data22_calib.00420537.calibration_LArElec-Pedestal-32s-High-All.daq.RAW._lb0000._SFO-4._0001.data"]
57 flags.Exec.OutputLevel=DEBUG
63 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg