8 result=ComponentAccumulator()
11 from CaloRec.CaloRecoConfig
import CaloRecoCfg
12 result.merge(CaloRecoCfg(flags))
13 result.getEventAlgo(
"LArRawChannelBuilder").TimingContainerKey=
"LArOFIterResult"
15 from TrigT1ResultByteStream.TrigT1ResultByteStreamConfig
import L1TriggerByteStreamDecoderCfg
16 result.merge(L1TriggerByteStreamDecoderCfg(flags))
18 from LArCafJobs.LArSCDumperSkeleton
import L1CaloMenuCfg
19 result.merge(L1CaloMenuCfg(flags))
21 from LumiBlockComps.BunchCrossingCondAlgConfig
import BunchCrossingCondAlgCfg
22 result.merge(BunchCrossingCondAlgCfg(flags))
24 from IOVDbSvc.IOVDbSvcConfig
import addFolders
25 result.merge(addFolders(flags,
26 '/LAR/ElecCalibOfl/Shape/RTM/4samples3bins17phases<tag>LARElecCalibOflShapeRTM4samples3bins17phases-RUN2-UPD3-00</tag><key>LArShape17phases</key>',
29 result.getService(
"PoolSvc").ReadCatalog += [
"apcfile:poolcond/PoolCat_comcond_castor.xml"]
31 result.merge(addFolders(flags,
'/LAR/ElecCalibOfl/AutoCorrs/AutoCorr<tag>LARElecCalibOflAutoCorrsAutoCorr-RUN2-UPD3-00</tag>',
'LAR_OFL'))
32 result.getService(
"IOVDbSvc").overrideTags+=[
'<prefix>/LAR/ElecCalibOfl/Shape/RTM/5samples1phase</prefix><tag>LARElecCalibOflShapeRTM5samples1phase-RUN2-UPD1-04</tag>']
34 result.getService(
"IOVDbSvc").overrideTags+=[
'<prefix>/LAR/ElecCalibOfl/OFC/PhysWave/RTM/4samples3bins17phases</prefix><tag>LARElecCalibOflOFCPhysWaveRTM4samples3bins17phases-RUN2-UPD3-00</tag>']
35 result.getService(
"IOVDbSvc").overrideTags+=[
'<prefix>/LAR/ElecCalibOfl/Shape/RTM/4samples3bins17phases</prefix><tag>LARElecCalibOflShapeRTM4samples3bins17phases-RUN2-UPD3-00</tag>']
37 print(
"Dumping flags: ")
39 dumperAlg=CompFactory.LArReadCells(
"LArReadCells")
40 dumperAlg.output = flags.LArShapeDump.outputNtup
41 dumperAlg.etCut = -1500.
42 dumperAlg.etCut2 = -1500.
44 result.addEventAlgo(dumperAlg)
50 result=ComponentAccumulator()
51 from AthenaCommon.Logging
import logging
52 mlog = logging.getLogger(
'LArReadSCCfg' )
55 from LArCabling.LArCablingConfig
import LArOnOffIdMappingSCCfg
56 result.merge(LArOnOffIdMappingSCCfg(flags))
57 from LArByteStream.LArRawSCDataReadingConfig
import LArRawSCDataReadingCfg
58 result.merge(LArRawSCDataReadingCfg(flags))
59 result.addCondAlgo(CompFactory.CaloSuperCellAlignCondAlg(
'CaloSuperCellAlignCondAlg'))
60 from LArCellRec.LArRAWtoSuperCellConfig
import LArRAWtoSuperCellCfg
61 result.merge(LArRAWtoSuperCellCfg(flags,mask=
True, SCellContainerOut=
"SCell") )
63 from LArCafJobs.LArSCDumperSkeleton
import L1CaloMenuCfg
64 result.merge(L1CaloMenuCfg(flags))
66 from LumiBlockComps.BunchCrossingCondAlgConfig
import BunchCrossingCondAlgCfg
67 result.merge(BunchCrossingCondAlgCfg(flags))
69 from LArConfiguration.LArElecCalibDBConfig
import LArElecCalibDBSCCfg
70 result.merge(LArElecCalibDBSCCfg(flags, condObjs=[
"Pedestal"]))
73 if flags.LArShapeDump.doSCReco:
75 result.merge(LArElecCalibDBSCCfg(flags, condObjs=[
"Ramp",
"DAC2uA",
"uA2MeV",
"MphysOverMcal",
"OFC",
"Shape",
"HVScaleCorr"]))
76 larLATOMEBuilderAlg=CompFactory.LArLATOMEBuilderAlg(
"LArLATOMEBuilderAlg")
78 dumperAlg=CompFactory.LArReadSC(
"LArReadSC")
82 runinfo=getLArDTInfoForRun(flags.Input.RunNumbers[0], connstring=
"COOLONL_LAR/CONDBR2")
83 streamTypes=runinfo.streamTypes()
84 except Exception
as e:
85 mlog.warning(
"Could not get DT run info, using defaults !")
87 streamTypes=[
"RawADC"]
89 for i
in range(0,len(streamTypes)):
90 if streamTypes[i] ==
"RawADC":
91 dumperAlg.DigitsKey =
"SC"
92 if flags.LArShapeDump.doSCReco:
93 larLATOMEBuilderAlg.LArDigitKey =
"SC"
94 larLATOMEBuilderAlg.isADCBas =
False
95 if streamTypes[i] ==
"ADC":
96 if flags.LArShapeDump.doSCReco:
97 larLATOMEBuilderAlg.isADCBas =
True
98 larLATOMEBuilderAlg.LArDigitKey =
"SC_ADC_BAS"
99 dumperAlg.DigitsKey =
"SC_ADC_BAS"
101 if flags.LArShapeDump.doSCReco:
102 result.addEventAlgo(larLATOMEBuilderAlg)
103 result.merge(LArRAWtoSuperCellCfg(flags,name=
"LArRAWRecotoSuperCell",mask=
True,doReco=
True,SCIn=
"SC_ET_RECO",SCellContainerOut=
"SCell_RECO") )
105 dumperAlg.output = flags.LArShapeDump.outputNtup
106 dumperAlg.SCContainerKey =
"SCell"
107 if flags.LArShapeDump.doSCReco:
108 dumperAlg.SCRecoContainerKey =
"SCell_RECO"
109 dumperAlg.etCut = -1500.
111 result.addEventAlgo(dumperAlg)