Skip to content

Commit 0220a49

Browse files
committed
Adding option to save multiple MFT-MUON matching candidates
1 parent e40ee48 commit 0220a49

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

MC/bin/o2dpg_sim_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ def add(cfg, flatconfig):
8080
add(config, {"FwdMatching.matchFcn" : "matchsXYPhiTanl"})
8181
if args.fwdmatching_cut_4_param == True:
8282
add(config, {"FwdMatching.cutFcn" : "cut3SigmaXYAngles"})
83+
if int(args.fwdmatchingNcandidates) > 0:
84+
add(config, {"FwdMatching.saveMode" : 3})
85+
add(config, {"FwdMatching.nCandidates" : int(args.fwdmatchingNcandidates)})
8386

8487
# deal with larger combinatorics
8588
if args.col == "PbPb" or (args.embedding and args.colBkg == "PbPb"):

MC/bin/o2dpg_sim_workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151

152152
# Matching training for machine learning
153153
parser.add_argument('--fwdmatching-save-trainingdata', action='store_true', help='enables saving parameters at plane for matching training with machine learning')
154+
parser.add_argument('--fwdmatchingNcandidates', type=int, help='enables saving provided number of matching candidates', default=0)
154155

155156
args = parser.parse_args()
156157
print (args)

0 commit comments

Comments
 (0)