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