9 from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
12 if kwargs.get(
"ContainerKey",
"") !=
"" or "SC_ADC_BAS" in kwargs.get(
'SCContainerKeys')
or "SC_ET" in kwargs.get(
'SCContainerKeys'):
13 from LArByteStream.LArRawSCDataReadingConfig
import LArRawSCDataReadingCfg
16 theLArLATOMEDecoder = CompFactory.LArLATOMEDecoder(
"LArLATOMEDecoder")
17 from LArCabling.LArCablingConfig
import LArCalibIdMappingCfg,LArOnOffIdMappingCfg
20 cfg.addEventAlgo(CompFactory.LArRawSCCalibDataReadingAlg(LArSCAccCalibDigitKey = flags.LArSCDump.acccalibdigitsKey,
21 LArSCAccDigitKey = flags.LArSCDump.accdigitsKey,
22 CalibCablingKeyLeg=
"LArCalibLineMap",
23 OnOffMapLeg=
"LArOnOffIdMap",
24 LATOMEDecoder = theLArLATOMEDecoder, ))
26 from LArCabling.LArCablingConfig
import LArOnOffIdMappingSCCfg,LArCalibIdMappingSCCfg,LArLATOMEMappingCfg
32 cil=cfg.getCondAlgo(
'CondInputLoader')
33 iovdbsvc=cfg.getService(
'IOVDbSvc')
34 folder=
'/LAR/Identifier/LatomeMapping'
35 for i
in range(0,len(iovdbsvc.Folders)):
36 if (iovdbsvc.Folders[i].
find(folder)>=0):
37 del iovdbsvc.Folders[i]
41 for cil_Loadval
in cil.Load:
42 if folder
in cil_Loadval:
43 print(f
"Removing {cil_Loadval} from cil/Load")
46 if remove_folder: cil.Load.remove(cil_Loadval)
47 from IOVDbSvc.IOVDbSvcConfig
import addFolders
48 cfg.merge(
addFolders(flags,
'/LAR/Identifier/LatomeMapping',tag=
'LARIdentifierLatomeMapping-EMF',className=
"CondAttrListCollection",detDb=
'/afs/cern.ch/user/p/pavol/w0/public/DB_update_24/SCcalib/LatomeMapping_EMF.db'))
50 if flags.LArSCDump.doRawChan:
51 from LArByteStream.LArRawDataReadingConfig
import LArRawDataReadingCfg
53 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
55 from LArConfiguration.LArConfigFlags
import RawChannelSource
56 if flags.LAr.RawChannelSource
is RawChannelSource.Calculated:
57 from LArROD.LArRawChannelBuilderAlgConfig
import LArRawChannelBuilderAlgCfg
60 cfg.getEventAlgo(
"LArRawChannelBuilder").LArRawChannelKey=
"LArRawChannels"
62 if 'FillLB' in kwargs
and kwargs[
'FillLB']:
63 from LArCellRec.LArTimeVetoAlgConfig
import LArTimeVetoAlgCfg
65 if flags.LArSCDump.fillNoisyRO:
66 from CaloRec.CaloRecoConfig
import CaloRecoCfg
68 from LArCellRec.LArNoisyROSummaryConfig
import LArNoisyROSummaryCfg
71 if 'FillTriggerTowers' in kwargs
and kwargs[
'FillTriggerTowers']:
72 from TrigT1ResultByteStream.TrigT1ResultByteStreamConfig
import L1TriggerByteStreamDecoderCfg
73 from TrigT1CaloByteStream.LVL1CaloRun2ByteStreamConfig
import LVL1CaloRun2ReadBSCfg
76 from TrigConfigSvc.TrigConfigSvcCfg
import L1ConfigSvcCfg, HLTConfigSvcCfg, L1PrescaleCondAlgCfg, HLTPrescaleCondAlgCfg
82 alg=CompFactory.LArSC2Ntuple(
'LArSC2Ntuple',**kwargs)