3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from LArConfiguration.LArElecCalibDBConfig
import LArElecCalibDBCfg, LArElecCalibDBMCSCCfg
8 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
11 from LArCabling.LArCablingConfig
import LArOnOffIdMappingSCCfg
15 theADC2MeVCondAlg=CompFactory.LArADC2MeVCondAlg(name =
"LArADC2MeVSCCondAlg", LArADC2MeVKey =
'LArADC2MeVSC')
18 requiredConditions=[
"RampSC",
"DAC2uASC",
"uA2MeVSC"]
19 theADC2MeVCondAlg.LAruA2MeVKey=
"LAruA2MeVSC"
20 theADC2MeVCondAlg.LArDAC2uAKey=
"LArDAC2uASC"
21 theADC2MeVCondAlg.LArRampKey=
"LArRampSC"
22 theADC2MeVCondAlg.LArMphysOverMcalKey=
""
23 theADC2MeVCondAlg.LArHVScaleCorrKey=
""
24 theADC2MeVCondAlg.UseFEBGainTresholds=
False
25 theADC2MeVCondAlg.LArOnOffIdMappingKey=
"LArOnOffIdMapSC"
26 theADC2MeVCondAlg.isSuperCell=
True
29 requiredConditions=[
"Ramp",
"DAC2uA",
"uA2MeV",
"MphysOverMcal",
"HVScaleCorr"]
30 from LArRecUtils.LArFebConfigCondAlgConfig
import LArFebConfigCondAlgCfg
31 if 'COMP200' in flags.IOVDb.DatabaseInstance:
32 theADC2MeVCondAlg.LAruA2MeVKey=
"LAruA2MeVSC"
33 theADC2MeVCondAlg.LArDAC2uAKey=
"LArDAC2uASC"
36 result.addCondAlgo(theADC2MeVCondAlg,primary=
True)
40 if __name__ ==
"__main__":
41 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
42 from AthenaConfiguration.TestDefaults
import defaultTestFiles, defaultGeometryTags
46 flags1.Input.Files = defaultTestFiles.RAW_RUN2
47 flags1.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
49 acc1 = LArADC2MeVSCCondAlgCfg (flags1)
50 acc1.printCondAlgs(summariseProps=
True)
51 print (
'IOVDbSvc:', acc1.getService(
'IOVDbSvc').Folders)
56 flags2.Input.Files = defaultTestFiles.ESD
57 flags2.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
60 acc2 = LArADC2MeVSCCondAlgCfg (flags2)
61 acc2.printCondAlgs(summariseProps=
True)
62 print (
'IOVDbSvc:', acc2.getService(
'IOVDbSvc').Folders)