3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
10 GetLCDM = CompFactory.GetLCDeadMaterial(
"GetLCDM")
12 GetLCDM.HadDMCoeffInputFile =
"CaloHadDMCoeff_init_v2.txt"
14 GetLCDM.HadDMCoeffOutputFile = flags.LCW.outDirDM+
"/CaloLocalHadCoeff_output_"+flags.LCW.outsfxDM+
".txt"
15 GetLCDM.ReportProfiles = flags.LCW.outDirDM+
"/report_CaloLocalHadCoeff_profiles_"+flags.LCW.outsfxDM+
".ps"
16 GetLCDM.ReportMinimization = flags.LCW.outDirDM+
"/report_CaloLocalHadCoeff_minim_"+flags.LCW.outsfxDM+
".ps"
17 GetLCDM.ReportCheck = flags.LCW.outDirDM+
"/report_CaloLocalHadCoeff_check_"+flags.LCW.outsfxDM+
".ps"
21 GetLCDM.DoMinimization =
True
23 GetLCDM.DoCheck =
True
29 GetLCDM.InputRootFiles = flags.LCW.inRootDM
31 GetLCDM.CorrectionKey=
"HadDMCoeff2"
33 cfg.addEventAlgo(GetLCDM)
36 from RegistrationServices.OutputConditionsAlgConfig
import OutputConditionsAlgCfg
38 outputFile=flags.LCW.outDirDM+
"/"+flags.LCW.outsfxDM+
".pool.root",
39 ObjectList=[
"CaloLocalHadCoeff#HadDMCoeff2#/CALO/HadCalibration2/CaloDMCorr2",],
40 IOVTagList=[flags.LCW.outTagDM,],
49 if __name__==
"__main__":
50 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
52 from CaloLocalHadCalib.LCWConfigFlags
import addLCWFlags
63 flags.Exec.OutputLevel=DEBUG
66 flags.LCW.inRootDM = [
"dmc.root"]
69 flags.IOVDb.DatabaseInstance=
""
70 flags.IOVDb.DBConnection =
"sqlite://;schema=myDm.db;dbname=OFLP200"
74 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
76 from IOVDbSvc.IOVDbSvcConfig
import IOVDbSvcCfg
81 cfg.getService(
"AthenaPoolCnvSvc").PoolAttributes += [
"STREAM_MEMBER_WISE = '0'" ]
84 cfg.getService(
"StoreGateSvc").Dump=
True
85 cfg.getService(
"MessageSvc").defaultLimit=999999