8 result = ComponentAccumulator()
10 if flags.Detector.GeometryMDT
or flags.Detector.GeometryRPC
or flags.Detector.GeometryTGC:
11 spCont+=[
"MuonSpacePoints"]
12 if flags.Detector.GeometryMM
or flags.Detector.GeometrysTGC:
13 spCont+=[
"NswSpacePoints"]
14 kwargs.setdefault(
"SpacePointKeys", spCont)
15 result.addEventAlgo(CompFactory.MuonR4.MlHitDumperAlg(name, **kwargs))
19 from MuonInference.InferenceConfig
import GraphBucketFilterToolCfg
20 kwargs_copy = kwargs.copy()
21 kwargs_copy.setdefault(
"ReadSpacePoints",
"MuonSpacePoints")
22 kwargs_copy.setdefault(
"WriteSpacePointKey",
"")
23 kwargs_copy.setdefault(
"ModelPath",
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/edgecnn_multi_bucket_sparse_meta.onnx")
24 kwargs_copy.setdefault(
"BiasClass0", 1.0)
25 return GraphBucketFilterToolCfg(flags, name=name, **kwargs_copy)
28 result = ComponentAccumulator()
29 from MuonSpacePointFormation.SpacePointFormationConfig
import MuonSpacePointFormationCfg
30 result.merge(MuonSpacePointFormationCfg(flags))
31 kwargs.setdefault(
"isMC", flags.Input.isMC)
34 doCalo = bool(kwargs.pop(
"DoCaloDump",
False))
38 doMLBucketScore = bool(kwargs.pop(
"DoMLBucketScore",
False))
39 doMLBucketFilter = bool(kwargs.pop(
"DoMLBucketFilter",
False))
40 mlBucketBias = kwargs.pop(
"MLBucketBias", 1.0)
42 kwargs.setdefault(
"DoMLBucketScore",
True)
44 inferenceTool = result.popToolsAndMerge(toolCfg)
45 kwargs.setdefault(
"InferenceTool", inferenceTool)
47 kwargs.setdefault(
"DoMLBucketFilter",
True)
49 from RngComps.RngCompsConfig
import AthRNGSvcCfg
50 kwargs.setdefault(
"RndmSvc", result.getPrimaryAndMerge(AthRNGSvcCfg(flags)))
52 if flags.Detector.GeometryMDT
or flags.Detector.GeometryRPC
or flags.Detector.GeometryTGC:
53 spCont+=[
"MuonSpacePoints"]
54 if flags.Detector.GeometryMM
or flags.Detector.GeometrysTGC:
55 spCont+=[
"NswSpacePoints"]
57 kwargs.setdefault(
"SpacePointKeys", spCont)
59 the_alg = CompFactory.MuonR4.BucketDumperAlg(name=name, **kwargs)
60 result.addEventAlgo(the_alg, primary =
True)
64 result = ComponentAccumulator()
65 from MuonSpacePointFormation.SpacePointFormationConfig
import MuonSpacePointFormationCfg
66 result.merge(MuonSpacePointFormationCfg(flags))
69 if flags.Detector.GeometryMDT
or flags.Detector.GeometryRPC
or flags.Detector.GeometryTGC:
70 spCont+=[
"MuonSpacePoints"]
71 if flags.Detector.GeometryMM
or flags.Detector.GeometrysTGC:
72 spCont+=[
"NswSpacePoints"]
75 if flags.Detector.GeometryMDT
or flags.Detector.GeometryRPC
or flags.Detector.GeometryTGC:
76 segCont =
"MuonSegmentsFromR4"
78 kwargs.setdefault(
"SpacePointKeys", spCont)
79 kwargs.setdefault(
"SegmentKeys", segCont)
81 the_alg = CompFactory.MuonR4.SegmentDumperAlg(name=name, **kwargs)
82 result.addEventAlgo(the_alg, primary =
True)
87 Configure calorimeter reconstruction up to cells and towers and dump:
88 - per-cell energy + position + identifier decoding
89 - per-tower energy + (eta,phi) + a derived direction vector Default input container key:
90 Default input container key:
91 - "AllCalo" (standard CaloCellContainer produced by CaloRecoCfg)
92 If you want supercells instead, pass:
93 CellContainerKey="SCell" (or whatever your CaloRecoCfg produces in your setup)
95 result = ComponentAccumulator()
98 from CaloRec.CaloRecoConfig
import CaloRecoCfg
99 result.merge(CaloRecoCfg(flags))
102 from CaloRec.CaloTowerMakerConfig
import CaloTowerMakerCfg
103 towerMaker = result.getPrimaryAndMerge(CaloTowerMakerCfg(flags))
105 kwargs.setdefault(
"CellContainerKey",
"AllCalo")
106 kwargs.setdefault(
"MinCellEnergyMeV", 0.0)
107 kwargs.setdefault(
"MaxCells", -1)
109 kwargs.setdefault(
"TowerContainerKey", getattr(towerMaker,
"TowerContainerName",
"CombinedTower"))
110 kwargs.setdefault(
"MinTowerEnergyMeV", 0.0)
111 kwargs.setdefault(
"MaxTowers", -1)
113 result.addEventAlgo(CompFactory.MuonR4.CaloCellsDumperAlg(name, **kwargs))
117 result = ComponentAccumulator()
118 the_alg=CompFactory.MuonR4.TruthMuonVertexDumperAlg(name=name, **kwargs)
119 result.addEventAlgo(the_alg, primary =
True)