11 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
13 from TileGeoModel.TileGMConfig
import TileGMCfg
17 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
20 from LArByteStream.LArRawDataReadingConfig
import LArRawDataReadingCfg
23 from LArROD.LArRawChannelBuilderAlgConfig
import LArRawChannelBuilderAlgCfg
25 result.getEventAlgo(
"LArRawChannelBuilder").TimingContainerKey=
"LArOFIterResult"
27 from LArCellRec.LArTimeVetoAlgConfig
import LArTimeVetoAlgCfg
30 from LumiBlockComps.BunchCrossingCondAlgConfig
import BunchCrossingCondAlgCfg
33 from CaloTools.CaloNoiseCondAlgConfig
import CaloNoiseCondAlgCfg
36 from LArROD.LArFebErrorSummaryMakerConfig
import LArFebErrorSummaryMakerCfg
38 result.getEventAlgo(
"LArFebErrorSummaryMaker").CheckAllFEB=
False
40 from IOVDbSvc.IOVDbSvcConfig
import addFolders
42 '/LAR/ElecCalibOfl/Shape/RTM/5samples3bins17phases<tag>LARElecCalibOflShapeRTM5samples3bins17phases-RUN2-UPD3-00</tag><key>LArShape17phases</key>',
45 result.getService(
"PoolSvc").ReadCatalog += [
"apcfile:poolcond/PoolCat_comcond_castor.xml"]
47 if flags.LArShapeDump.doTrigger:
49 from TrigT1ResultByteStream.TrigT1ResultByteStreamConfig
import L1TriggerByteStreamDecoderCfg
52 from LArCafJobs.LArSCDumperSkeleton
import L1CaloMenuCfg
55 from TrigDecisionTool.TrigDecisionToolConfig
import TrigDecisionToolCfg
59 result.merge(
addFolders(flags,
'/LAR/ElecCalibOfl/AutoCorrs/AutoCorr<tag>LARElecCalibOflAutoCorrsAutoCorr-RUN2-UPD3-00</tag>',
'LAR_OFL',className=
'LArAutoCorrComplete'))
60 result.getService(
"IOVDbSvc").overrideTags+=[
'<prefix>/LAR/ElecCalibOfl/Shape/RTM/5samples1phase</prefix><tag>LARElecCalibOflShapeRTM5samples1phase-RUN2-UPD1-04</tag>']
62 result.getService(
"IOVDbSvc").overrideTags+=[
'<prefix>/LAR/ElecCalibOfl/OFC/PhysWave/RTM/4samples3bins17phases</prefix><tag>LARElecCalibOflOFCPhysWaveRTM4samples3bins17phases-RUN2-UPD3-00</tag>']
63 result.getService(
"IOVDbSvc").overrideTags+=[
'<prefix>/LAR/ElecCalibOfl/Shape/RTM/4samples3bins17phases</prefix><tag>LARElecCalibOflShapeRTM4samples3bins17phases-RUN2-UPD3-00</tag>']
65 if(flags.LArShapeDump.digitsKeySC !=
""):
67 from LArCabling.LArCablingConfig
import LArOnOffIdMappingSCCfg
69 from LArBadChannelTool.LArBadChannelConfig
import LArBadChannelCfg
71 from LArConfiguration.LArElecCalibDBConfig
import LArElecCalibDBSCCfg
73 from LArByteStream.LArRawSCDataReadingConfig
import LArRawSCDataReadingCfg
79 print(
"Dumping flags: ")
81 dumperAlg=CompFactory.LArShapeDumper(
"LArShapeDumper")
82 dumperAlg.CaloType = flags.LArShapeDump.caloType
83 dumperAlg.Prescale = flags.LArShapeDump.prescale
84 dumperAlg.NoiseSignifCut = flags.LArShapeDump.noiseSignifCut
85 dumperAlg.DoTrigger = flags.LArShapeDump.doTrigger
86 dumperAlg.DoStream = flags.LArShapeDump.doStream
87 dumperAlg.DoOFCIter = flags.LArShapeDump.doOFCIter
88 dumperAlg.DumpChannelInfos = flags.LArShapeDump.dumpChannelInfos
89 dumperAlg.DumpDisconnected =
False
90 dumperAlg.DigitsKey = flags.LArShapeDump.digitsKey
91 dumperAlg.ProblemsToMask=[
'deadReadout',
'deadPhys',
'almostDead',
'short',
92 'highNoiseHG',
'highNoiseMG',
'highNoiseLG']
93 dumperAlg.LArShapeDumperTool=CompFactory.LArShapeDumperTool(DoShape=
True)
94 dumperAlg.LArShapeDumperTool=CompFactory.LArShapeDumperTool(
"LArShapeDumperToolSC",DoShape=
False,IsSC=
True)
95 dumperAlg.FileName=flags.LArShapeDump.outputNtup
96 dumperAlg.TriggerNames = flags.LArShapeDump.triggerNames
97 dumperAlg.TrigDecisionTool = result.getPublicTool(
'TrigDecisionTool')
98 from LArConfiguration.LArConfigFlags
import RawChannelSource
99 if flags.LAr.RawChannelSource == RawChannelSource.Calculated:
100 dumperAlg.ChannelsKey =
"LArRawChannels_FromDigits"
102 dumperAlg.EnergyCutSC = flags.LArShapeDump.energySCCut
103 dumperAlg.MinADCMaxSC = flags.LArShapeDump.adcSCCut
105 result.addEventAlgo(dumperAlg)
107 if (flags.LArShapeDump.HECNoiseNtup!=
""):
108 hns=CompFactory.LArHECNoise()
109 hns.TrigDecisionTool = result.getPublicTool(
'TrigDecisionTool')
110 result.addEventAlgo(hns)
111 result.addService(CompFactory.THistSvc(Output=[
"HEC DATAFILE='"+flags.LArShapeDump.HECNoiseNtup+
"' OPT='RECREATE'",]))