11def PhysAugmentationsHION7Cfg(flags):
12
13 """Configure the physics augmentation for HION7"""
14 acc = ComponentAccumulator()
15
16
17 if flags.Input.isMC or flags.Overlay.DataOverlay:
18 from DerivationFrameworkMCTruth.MCTruthCommonConfig import (
19 AddStandardTruthContentsCfg,
20 AddHFAndDownstreamParticlesCfg,
21 AddMiniTruthCollectionLinksCfg,
22 AddPVCollectionCfg)
23 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig import DFCommonTruthCharmToolCfg
24 PhysCommonTruthCharmTool = acc.getPrimaryAndMerge(DFCommonTruthCharmToolCfg(
25 flags,
26 name = "PhysCommonTruthCharmTool"))
27 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
28 acc.addEventAlgo(CommonAugmentation("PhysCommonTruthCharmKernel",AugmentationTools=[PhysCommonTruthCharmTool]))
29 acc.merge(AddHFAndDownstreamParticlesCfg(flags))
30 acc.merge(AddStandardTruthContentsCfg(
31 flags,
32 navInputCollections =["TruthElectrons",
33 "TruthMuons",
34 "TruthPhotons",
35 "TruthTaus",
36 "TruthNeutrinos",
37 "TruthBSM",
38 "TruthBottom",
39 "TruthTop",
40 "TruthBoson",
41 "TruthCharm",
42 "TruthHFWithDecayParticles"]))
43
44 acc.merge(AddMiniTruthCollectionLinksCfg(flags))
45 acc.merge(AddPVCollectionCfg(flags))
46
47 from DerivationFrameworkInDet.InDetCommonConfig import InDetCommonCfg
48 from DerivationFrameworkMuons.MuonsCommonConfig import MuonsCommonCfg
49 from DerivationFrameworkEGamma.EGammaCommonConfig import EGammaCommonCfg
50 acc.merge(InDetCommonCfg(flags,
51 DoVertexFinding = flags.Tracking.doVertexFinding,
52 AddPseudoTracks = flags.Tracking.doPseudoTracking,
53 DecoLRTTTVA = False,
54 DoR3LargeD0 = flags.Tracking.doLargeD0,
55 StoreSeparateLargeD0Container = flags.Tracking.storeSeparateLargeD0Container,
56 MergeLRT = False))
57 acc.merge(MuonsCommonCfg(flags))
58 acc.merge(EGammaCommonCfg(flags))
59
60 return acc
61