Skip to content
Snippets Groups Projects
Commit 6efa60e8 authored by mkhader's avatar mkhader
Browse files

adding safety for subjet type

Former-commit-id: e2fc8fa110842ba5959a8ef31ab231301d8f7943
parent 91e57be2
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,9 @@ def buildExclusiveSubjets(ToolSvc, JetCollectionName, subjet_mode, nsubjet, doTr
# Build ExKt or CoM Subjets, default is ExKt
#===================================================================
def addExKtCoM(sequence, ToolSvc, JetCollectionExCoM, nSubjets, doTrackSubJet, ExGhostLabels=["GhostBHadronsFinal","GhostCHadronsFinal"], min_subjet_pt_mev = 0, subjetAlgName = "Kt"):
if(subjetAlgName != "Kt" and subjetAlgName != "CoM"):
print "WARNING: Subjet type must be Kt or CoM. Using Kt as default!"
subjetAlgName = "Kt"
from JetRec.JetRecStandard import jtm
ExCoMJetCollection__SubJet = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment