9def LArConditionsTestCfg(flags):
10
11 result=ComponentAccumulator()
12 from LArGeoAlgsNV.LArGMConfig import LArGMCfg
13 result.merge(LArGMCfg(flags))
14
15 from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg, LArCalibIdMappingCfg
16 result.merge(LArOnOffIdMappingCfg(flags))
17 result.merge(LArCalibIdMappingCfg(flags))
18
19
20 LArConditionsTestAlg=CompFactory.LArConditionsTestAlg()
21 LArConditionsTestAlg.OutputLevel = 2
22 LArConditionsTestAlg.TestCondObjs = True
23 LArConditionsTestAlg.ApplyCorrections = True
24 if (flags.LArCondTest.Step==2):
25
26 LArConditionsTestAlg.ReadCondObjs = True
27 LArConditionsTestAlg.WriteCondObjs = False
28 LArConditionsTestAlg.WriteCorrections = False
29 else:
30
31 LArConditionsTestAlg.ReadCondObjs = False
32 LArConditionsTestAlg.WriteCondObjs = True
33 LArConditionsTestAlg.WriteCorrections = True
34 result.addEventAlgo(LArConditionsTestAlg)
35
36 if (flags.LArCondTest.Step==1):
37
38 from RegistrationServices.OutputConditionsAlgConfig import OutputConditionsAlgCfg
39 result.merge(OutputConditionsAlgCfg(flags,
40 outputFile="LarCondTestNoReg.root",
41 ObjectList=["LArRampMC#/LArCalorimeter/LArTests/LArRampsSingleGroup",
42 "LArRampMC#/LArCalorimeter/LArTests/LArRampsSubDetectorGrouping",
43 "LArRampMC#/LArCalorimeter/LArTests/LArRampsFeedThroughGrouping" ],
44 IOVTagList=["mytag"],
45 Run1=3,
46 Run2=9999,
47 WriteIOV=False
48 ))
49 elif (flags.LArCondTest.Step==2):
50
51 from EventSelectorAthenaPool.CondProxyProviderConfig import CondProxyProviderCfg
52 result.merge(CondProxyProviderCfg(flags,"LarCondTestNoReg.root"))
53
54
55
56 return result
57