3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
9 if flags.LCW.doClassification:
10 from CaloLocalHadCalib.LCClassificationConfig
import GetLCCCfg
13 if flags.LCW.doWeighting:
14 from CaloLocalHadCalib.LCWeightingConfig
import GetLCWCfg
17 if flags.LCW.doOutOfCluster:
18 from CaloLocalHadCalib.LCOOCConfig
import GetLCOOCCfg
21 if flags.LCW.doDeadMaterial:
22 from CaloLocalHadCalib.LCDMConfig
import GetLCDMCfg
28 if __name__==
"__main__":
29 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
31 from CaloLocalHadCalib.LCWConfigFlags
import addLCWFlags
36 flags.Input.Files = [
"/home/pavol/mc16_13TeV/ESD.29275544._000648.pool.root.1"]
37 flags.Output.ESDFileName=
"esdOut.pool.root"
38 from AthenaConfiguration.Enums
import LHCPeriod
39 flags.GeoModel.Run = LHCPeriod.Run1
40 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
41 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN1_2010
48 flags.Exec.OutputLevel=DEBUG
51 flags.Calo.TopoCluster.doTopoClusterLocalCalib =
False
52 flags.Calo.TopoCluster.doCellWeightCalib =
False
53 flags.Calo.TopoCluster.doCalibHitMoments =
True
56 flags.LCW.doClassification =
True
57 flags.LCW.doWeighting =
True
58 flags.LCW.doOutOfCluster =
True
59 flags.LCW.doDeadMaterial =
True
62 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
63 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
68 theKey=
"CopyCaloTopoCluster"
70 from CaloRec.CaloTopoClusterConfig
import CaloTopoClusterCfg
73 topoAlg = topoAcc.getPrimary()
74 topoAlg.ClusterCorrectionTools.__getitem__(
"TopoCalibMoments").MatchDmType = 1
75 topoAlg.ClusterCorrectionTools.__getitem__(
"TopoCalibMoments").CalibrationHitContainerNames = [
"LArCalibrationHitInactive",
"LArCalibrationHitActive",
"TileCalibHitActiveCell",
"TileCalibHitInactiveCell"]
76 topoAlg.ClusterCorrectionTools.__getitem__(
"TopoCalibMoments").DMCalibrationHitContainerNames = [
"LArCalibrationHitDeadMaterial_DEAD",
"LArCalibrationHitInactive_DEAD",
"LArCalibrationHitActive_DEAD",
"TileCalibHitDeadMaterial"]
84 cfg.getService(
"StoreGateSvc").Dump=
True
85 cfg.getService(
"MessageSvc").defaultLimit=999999