3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
10 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
13 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
15 from TileGeoModel.TileGMConfig
import TileGMCfg
19 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
22 from LArBadChannelTool.LArBadChannelConfig
import LArBadChannelCfg,LArBadFebCfg
26 from LArCellRec.LArCollisionTimeConfig
import LArCollisionTimeCfg
29 from TrigDecisionTool.TrigDecisionToolConfig
import TrigDecisionToolCfg
32 noiseAlg=CompFactory.LArNoiseBursts(
"LArNoiseBursts")
33 noiseAlg.SigmaCut = flags.LArNoise.SigmaCut
34 noiseAlg.NumberOfBunchesInFront = flags.LArNoise.NumberOfBunchesInFront
35 noiseAlg.KeepOnlyCellID = flags.LArNoise.KeepOnlyCellID
36 noiseAlg.TrigDecisionTool = tdt
37 result.addEventAlgo(noiseAlg)
39 if (flags.LArNoise.outNtupLAr!=
""):
40 result.addService(CompFactory.THistSvc(Output=[
"TTREE DATAFILE='"+flags.LArNoise.outNtupLAr+
"' OPT='RECREATE'",]))
42 if (flags.LArNoise.HECNoiseNtup!=
""):
43 hecAlg=CompFactory.LArHECNoise(
"LArHECNoise")
44 hecAlg.MinDigitADC = flags.LArNoise.MinDigitADC
45 hecAlg.MaxDeltaT = flags.LArNoise.MaxDeltaT
46 from IOVDbSvc.IOVDbSvcConfig
import addFolders
47 result.merge(
addFolders(flags,
"/LAR/ElecCalibFlat/Pedestal",
"LAR_ONL", className=
"CondAttrListCollection", db=
"CONDBR2"))
48 LArPedestalCondAlg = CompFactory.getComp(
"LArFlatConditionsAlg<LArPedestalFlat>")
49 result.addCondAlgo(
LArPedestalCondAlg(ReadKey=
"/LAR/ElecCalibFlat/Pedestal", WriteKey=
"LArPedestal"))
51 result.addEventAlgo(hecAlg)
52 if result.getService(
"THistSvc")
is not None:
53 result.getService(
"THistSvc").Output += [
"HEC DATAFILE='"+flags.LArNoise.HECNoiseNtup+
"' OPT='RECREATE'",]
55 result.addService(CompFactory.THistSvc(Output=[
"HEC DATAFILE='"+flags.LArNoise.HECNoiseNtup+
"' OPT='RECREATE'",]))
74 from CaloRec.CaloRecoConfig
import CaloRecoCfg
77 from LumiBlockComps.BunchCrossingCondAlgConfig
import BunchCrossingCondAlgCfg
80 from CaloTools.CaloNoiseCondAlgConfig
import CaloNoiseCondAlgCfg
83 from LArROD.LArFebErrorSummaryMakerConfig
import LArFebErrorSummaryMakerCfg
85 result.getEventAlgo(
"LArFebErrorSummaryMaker").CheckAllFEB=
False
87 if (flags.LArNoise.outNtupLAr !=
"" or flags.LArNoise.HECNoiseNtup!=
""):
88 from LArCellRec.LArTimeVetoAlgConfig
import LArTimeVetoAlgCfg
91 from LArCafJobs.LArSCDumperSkeleton
import L1CaloMenuCfg
94 from TrigDecisionTool.TrigDecisionToolConfig
import TrigDecisionToolCfg
98 if (flags.LArNoise.outNtupLAr !=
""):
99 noiseAlg=CompFactory.LArNoiseBursts(
"LArNoiseBursts")
100 noiseAlg.SigmaCut = flags.LArNoise.SigmaCut
101 noiseAlg.NumberOfBunchesInFront = flags.LArNoise.NumberOfBunchesInFront
102 noiseAlg.KeepOnlyCellID = flags.LArNoise.KeepOnlyCellID
103 noiseAlg.TrigDecisionTool = tdt
104 result.addEventAlgo(noiseAlg)
106 result.addService(CompFactory.THistSvc(Output=[
"TTREE DATAFILE='"+flags.LArNoise.outNtupLAr+
"' OPT='RECREATE'",]))
108 if (flags.LArNoise.HECNoiseNtup!=
""):
109 hecAlg=CompFactory.LArHECNoise(
"LArHECNoise")
110 hecAlg.MinDigitADC = flags.LArNoise.MinDigitADC
111 hecAlg.MaxDeltaT = flags.LArNoise.MaxDeltaT
112 from IOVDbSvc.IOVDbSvcConfig
import addFolders
113 result.merge(
addFolders(flags,
"/LAR/ElecCalibFlat/Pedestal",
"LAR_ONL", className=
"CondAttrListCollection", db=
"CONDBR2"))
114 LArPedestalCondAlg = CompFactory.getComp(
"LArFlatConditionsAlg<LArPedestalFlat>")
115 result.addCondAlgo(
LArPedestalCondAlg(ReadKey=
"/LAR/ElecCalibFlat/Pedestal", WriteKey=
"LArPedestal"))
117 result.addEventAlgo(hecAlg)
118 if result.getService(
"THistSvc")
is not None:
119 result.getService(
"THistSvc").Output += [
"HEC DATAFILE='"+flags.LArNoise.HECNoiseNtup+
"' OPT='RECREATE'",]
121 result.addService(CompFactory.THistSvc(Output=[
"HEC DATAFILE='"+flags.LArNoise.HECNoiseNtup+
"' OPT='RECREATE'",]))
123 if (flags.LArNoise.outHistLAr !=
""):
124 from LArCellRec.LArNoisyROSummaryConfig
import LArNoisyROSummaryCfg
126 from LArMonitoring.LArNoisyROMonAlg
import LArNoisyROMonConfig
133 if __name__==
"__main__":
135 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
138 from LArNoiseFlags
import addNoiseFlags
141 flags.Input.Files=[
'/eos/atlas/atlastier0/rucio/data23_13p6TeV/express_express/00461002/data23_13p6TeV.00461002.express_express.merge.RAW/data23_13p6TeV.00461002.express_express.merge.RAW._lb0922._SFO-ALL._0001.1']
143 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
144 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
146 flags.Trigger.triggerConfig =
'DB'
147 flags.Trigger.doID=
False
148 flags.Trigger.doMuon=
False
149 flags.Trigger.doLVL1=
False
150 flags.Trigger.doHLT=
False
153 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg