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