ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMuonHypoConfig Namespace Reference

Classes

class  TrigMufastHypoToolConfig
class  TrigmuCombHypoConfig

Functions

 getThresholdsFromDict (chainDict)
 TrigMufastHypoAlgCfg (flags, name="UNSPECIFIED", **kwargs)
 TrigMufastHypoToolFromDict (flags, chainDict)
 TrigmuCombHypoAlgCfg (flags, name="UNSPECIFIED", **kwargs)
 TrigmuCombHypoToolFromDict (flags, chainDict)
 TrigmuCombHypoToolwORFromDict (flags, chainDict)
 Trigl2IOHypoToolwORFromDict (flags, chainDict)
 Trigl2mtCBHypoToolwORFromDict (flags, chainDict)
 TrigMuonEFHypoAlgCfg (flags, name="UNSPECIFIED", **kwargs)
 TrigMuonEFMSonlyHypoToolFromDict (flags, chainDict)
 TrigMuonEFMSonlyHypoToolFromName (flags, chainDict)
 TrigMuonEFHypoToolCfg (name, thresholds, doSA=False, **kwargs)
 TrigMuonEFCombinerHypoToolFromDict (flags, chainDict)
 TrigMuonEFCombinerHypoToolFromName (flags, chainDict)
 TrigMuonEFTrackIsolationHypoToolFromDict (flags, chainDict)
 TrigMuonEFTrackIsolationHypoCfg (flags, name, isoCut, **kwargs)
 TrigMuonEFTrackIsolationHypoAlgCfg (flags, name="TrigMuonEFTrackIsolationHypoAlg", **kwargs)
 TrigMuonEFInvMassHypoToolFromDict (flags, chainDict)
 TrigMuonEFInvMassHypoCfg (flags, toolName, thresholds, **kwargs)
 TrigMuonEFIdtpHypoToolFromDict (flags, chainDict)
 TrigMuonEFIdtpHypoCfg (name, thresholds, **kwargs)
 TrigMuonEFIdtpInvMassHypoToolFromDict (flags, chainDict)
 TrigMuonEFIdtpInvMassHypoCfg (name, thresholds, **kwargs)
 TrigMuonEFIdtpHypoAlgCfg (flags, name="TrigMuonEFIdtpHypoAlg", **kwargs)
 TrigMuonLateMuRoIHypoAlgCfg (flags, name="TrigMuRoIHypoAlg", **kwargs)
 TrigMuonLateMuRoIHypoToolFromDict (flags, chainDict)
 TrigMuonLateMuRoIHypoCfg (flags, name="TrigMuRoIHypoTool")

Variables

bool monitorAll = False
 log = logging.getLogger('TrigMuonHypoConfig')
dict muFastThresholds
dict muCombThresholds
dict trigMuonEFSAThresholds
dict efCombinerThresholds
dict muFastThresholdsForECWeakBRegion
dict trigMuonEFTrkIsoThresholds
dict trigMuonLrtd0Cut
dict trigMuonEFInvMassThresholds
list muonHypoMonGroups = ['muonMon:online']
list idHypoMonGroups = ['idMon:t0','idMon:shifter']

Function Documentation

◆ getThresholdsFromDict()

TrigMuonHypoConfig.getThresholdsFromDict ( chainDict)

Definition at line 280 of file TrigMuonHypoConfig.py.

280def getThresholdsFromDict( chainDict ):
281 cparts = [i for i in chainDict['chainParts'] if i['signature']=='Muon' or i['signature']=='Bphysics']
282 return sum( [ [part['threshold']]*int(part['multiplicity']) for part in cparts ], [])
283
284

◆ Trigl2IOHypoToolwORFromDict()

TrigMuonHypoConfig.Trigl2IOHypoToolwORFromDict ( flags,
chainDict )

Definition at line 574 of file TrigMuonHypoConfig.py.

574def Trigl2IOHypoToolwORFromDict( flags, chainDict ):
575
576 thresholds = getThresholdsFromDict( chainDict )
577 if chainDict['chainParts'][0]['multiplicity']=="0":
578 thresholds = [chainDict['chainParts'][0]['threshold']]
579
580 config = TrigmuCombHypoConfig()
581
582 tight = False # can be probably decoded from some of the proprties of the chain, expert work
583
584 acceptAll = False
585 domuCombTag=False
586
587 tool=config.ConfigurationHypoTool( chainDict['chainName'], thresholds, tight, acceptAll, domuCombTag )
588
589 # Overlap Removal
590 tool.ApplyOR = True
591 tool.RequireDR = True
592 tool.RequireMufastDR = False
593 tool.RequireMass = True
594 tool.RequireSameSign = True
595 tool.EtaBins = [0, 0.9, 1.1, 1.9, 2.1, 9.9]
596 tool.DRThres = [0.002, 0.001, 0.002, 0.002, 0.002]
597 tool.MufastDRThres = [0]
598 tool.MassThres = [0.004, 0.002, 0.006, 0.006, 0.006]
599
600 return tool
601
602
603# muComb Hypo for L2 multi-track SA mode

◆ Trigl2mtCBHypoToolwORFromDict()

TrigMuonHypoConfig.Trigl2mtCBHypoToolwORFromDict ( flags,
chainDict )

Definition at line 604 of file TrigMuonHypoConfig.py.

604def Trigl2mtCBHypoToolwORFromDict( flags, chainDict ):
605
606 if 'idperf' in chainDict['chainParts'][0]['addInfo'] or 'idtp' in chainDict['chainParts'][0]['addInfo'] :
607 thresholds = ['passthrough']
608 elif chainDict['chainParts'][0]['multiplicity']=="0":
609 thresholds = [chainDict['chainParts'][0]['threshold']]
610 else:
611 thresholds = getThresholdsFromDict( chainDict )
612
613 config = TrigmuCombHypoConfig()
614
615 tight = False # can be probably decoded from some of the proprties of the chain, expert work
616
617 acceptAll = False
618 domuCombTag = False
619
620 tool=config.ConfigurationHypoTool( chainDict['chainName'], thresholds, tight, acceptAll, domuCombTag )
621
622 # Overlap Removal
623 tool.ApplyOR = True
624 tool.RequireDR = True
625 tool.RequireMufastDR = True
626 tool.RequireMass = True
627 tool.RequireSameSign = True
628 tool.EtaBins = [0, 0.9, 1.1, 1.9, 2.1, 9.9]
629 tool.DRThres = [0.002, 0.001, 0.002, 0.002, 0.002]
630 tool.MufastDRThres = [0.4, 0.4, 0.4, 0.4, 0.4]
631 tool.MassThres = [0.004, 0.002, 0.006, 0.006, 0.006]
632
633 return tool
634
635

◆ TrigmuCombHypoAlgCfg()

TrigMuonHypoConfig.TrigmuCombHypoAlgCfg ( flags,
name = "UNSPECIFIED",
** kwargs )

Definition at line 486 of file TrigMuonHypoConfig.py.

486def TrigmuCombHypoAlgCfg(flags, name="UNSPECIFIED", **kwargs):
487 return CompFactory.TrigmuCombHypoAlg(name, **kwargs)
488

◆ TrigmuCombHypoToolFromDict()

TrigMuonHypoConfig.TrigmuCombHypoToolFromDict ( flags,
chainDict )

Definition at line 489 of file TrigMuonHypoConfig.py.

489def TrigmuCombHypoToolFromDict( flags, chainDict ):
490
491 if 'idperf' in chainDict['chainParts'][0]['addInfo'] or 'idtp' in chainDict['chainParts'][0]['addInfo'] :
492 thresholds = ['passthrough']
493 elif chainDict['chainParts'][0]['multiplicity']=="0":
494 thresholds = [chainDict['chainParts'][0]['threshold']]
495 else:
496 thresholds = getThresholdsFromDict( chainDict )
497
498 config = TrigmuCombHypoConfig()
499
500 tight = False # can be probably decoded from some of the proprties of the chain, expert work
501
502 acceptAll = False
503
504 if 'mucombTag' in chainDict['chainParts'][0]['extra']:
505 domuCombTag = True
506 else:
507 domuCombTag = False
508
509 if chainDict['chainParts'][0]['signature'] == 'Bphysics':
510 acceptAll = True
511
512 tool = config.ConfigurationHypoTool( chainDict['chainName'], thresholds, tight, acceptAll, domuCombTag )
513
514 if monitorAll:
515 tool.MonTool = TrigmuCombHypoMonitoring(flags, "TrigmuCombHypoTool/"+chainDict['chainName'])
516 else:
517 if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
518 tool.MonTool = TrigmuCombHypoMonitoring(flags, "TrigmuCombHypoTool/"+chainDict['chainName'])
519
520 d0cut=0.
521 if 'd0loose' in chainDict['chainParts'][0]['lrtInfo']:
522 d0cut=trigMuonLrtd0Cut['d0loose']
523 elif 'd0medium' in chainDict['chainParts'][0]['lrtInfo']:
524 d0cut=trigMuonLrtd0Cut['d0medium']
525 elif 'd0tight' in chainDict['chainParts'][0]['lrtInfo']:
526 d0cut=trigMuonLrtd0Cut['d0tight']
527 tool.MinimumD0=d0cut
528
529 return tool
530
531

◆ TrigmuCombHypoToolwORFromDict()

TrigMuonHypoConfig.TrigmuCombHypoToolwORFromDict ( flags,
chainDict )

Definition at line 532 of file TrigMuonHypoConfig.py.

532def TrigmuCombHypoToolwORFromDict( flags, chainDict ):
533
534 if 'idperf' in chainDict['chainParts'][0]['addInfo'] or 'idtp' in chainDict['chainParts'][0]['addInfo'] :
535 thresholds = ['passthrough']
536 elif chainDict['chainParts'][0]['multiplicity']=="0":
537 thresholds = [chainDict['chainParts'][0]['threshold']]
538 else:
539 thresholds = getThresholdsFromDict( chainDict )
540
541 config = TrigmuCombHypoConfig()
542
543 tight = False # can be probably decoded from some of the proprties of the chain, expert work
544
545 acceptAll = False
546 if 'mucombTag' in chainDict['chainParts'][0]['extra']:
547 domuCombTag = True
548 else:
549 domuCombTag = False
550
551 tool = config.ConfigurationHypoTool( chainDict['chainName'], thresholds, tight, acceptAll, domuCombTag )
552
553 if monitorAll:
554 tool.MonTool = TrigL2MuonOverlapRemoverMonitoringMucomb(flags, "TrigmuCombHypoTool/"+chainDict['chainName'])
555 else:
556 if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
557 tool.MonTool = TrigL2MuonOverlapRemoverMonitoringMucomb(flags, "TrigmuCombHypoTool/"+chainDict['chainName'])
558
559 # Overlap Removal
560 tool.ApplyOR = True
561 tool.RequireDR = True
562 tool.RequireMufastDR = True
563 tool.RequireMass = True
564 tool.RequireSameSign = True
565 tool.EtaBins = [0, 0.9, 1.1, 1.9, 2.1, 9.9]
566 tool.DRThres = [0.002, 0.001, 0.002, 0.002, 0.002]
567 tool.MufastDRThres = [0.4, 0.4, 0.4, 0.4, 0.4]
568 tool.MassThres = [0.004, 0.002, 0.006, 0.006, 0.006]
569
570 return tool
571
572
573# muComb Hypo for L2 inside-out

◆ TrigMufastHypoAlgCfg()

TrigMuonHypoConfig.TrigMufastHypoAlgCfg ( flags,
name = "UNSPECIFIED",
** kwargs )

Definition at line 285 of file TrigMuonHypoConfig.py.

285def TrigMufastHypoAlgCfg(flags, name="UNSPECIFIED", **kwargs):
286 return CompFactory.TrigMufastHypoAlg(name, **kwargs)
287

◆ TrigMufastHypoToolFromDict()

TrigMuonHypoConfig.TrigMufastHypoToolFromDict ( flags,
chainDict )

Definition at line 288 of file TrigMuonHypoConfig.py.

288def TrigMufastHypoToolFromDict(flags, chainDict):
289
290 chainPart = chainDict['chainParts'][0]
291
292 doOverlapRemoval = False
293 if chainPart['signature'] == 'Bphysics' or 'l2io' in chainPart['l2AlgInfo']:
294 doOverlapRemoval = False
295 elif int(chainPart['multiplicity']) > 1:
296 doOverlapRemoval = True
297 elif len(chainDict['signatures']) > 1 and not chainPart['extra']:
298 doOverlapRemoval = True
299
300 doMonitoring = monitorAll or any(group in muonHypoMonGroups for group in chainDict['monGroups'])
301
302 config = TrigMufastHypoToolConfig(chainDict['chainName'], chainPart, chainDict['eventBuildType'], doOverlapRemoval, doMonitoring)
303 config.compile(flags)
304 return config.tool()
305
306

◆ TrigMuonEFCombinerHypoToolFromDict()

TrigMuonHypoConfig.TrigMuonEFCombinerHypoToolFromDict ( flags,
chainDict )

Definition at line 825 of file TrigMuonHypoConfig.py.

825def TrigMuonEFCombinerHypoToolFromDict( flags, chainDict ) :
826 if 'idperf' in chainDict['chainParts'][0]['addInfo'] or 'idtp' in chainDict['chainParts'][0]['addInfo']:
827 thresholds = ['passthrough']
828 elif chainDict['chainParts'][0]['multiplicity']=="0":
829 thresholds = [chainDict['chainParts'][0]['threshold']]
830 else:
831 thresholds = getThresholdsFromDict( chainDict )
832
833 if 'muonqual' in chainDict['chainParts'][0]['addInfo']:
834 muonquality = True
835 else:
836 muonquality = False
837
838 if 'nscan10' in chainDict['chainParts'][0]['addInfo']:
839 conesize = 0.1
840 narrowscan = True
841 elif 'nscan20' in chainDict['chainParts'][0]['addInfo']:
842 conesize = 0.2
843 narrowscan = True
844 elif 'nscan30' in chainDict['chainParts'][0]['addInfo']:
845 conesize = 0.3
846 narrowscan = True
847 elif 'nscan40' in chainDict['chainParts'][0]['addInfo']:
848 conesize = 0.4
849 narrowscan = True
850 elif 'nscan' in chainDict['chainParts'][0]['addInfo']:
851 conesize = 0.5
852 narrowscan = True
853 else:
854 narrowscan = False
855 conesize = 0.0
856
857 if 'noL1' not in chainDict['chainParts'][0]['extra']:
858 overlap=True
859 else:
860 overlap=False
861
862 monTool=None
863 if monitorAll:
864 monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFCombinerHypoTool/"+chainDict['chainName'])
865 else:
866 if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
867 monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFCombinerHypoTool/"+chainDict['chainName'])
868
869 d0cut=0.
870 if 'd0loose' in chainDict['chainParts'][0]['lrtInfo']:
871 d0cut=trigMuonLrtd0Cut['d0loose']
872 elif 'd0medium' in chainDict['chainParts'][0]['lrtInfo']:
873 d0cut=trigMuonLrtd0Cut['d0medium']
874 elif 'd0tight' in chainDict['chainParts'][0]['lrtInfo']:
875 d0cut=trigMuonLrtd0Cut['d0tight']
876
877
878 tool = TrigMuonEFHypoToolCfg(chainDict['chainName'], thresholds, doSA=False, MuonQualityCut=muonquality, MonTool=monTool,
879 NarrowScan=narrowscan, RemoveOverlaps=overlap, ConeSize=conesize, MinimumD0=d0cut)
880
881 return tool
882

◆ TrigMuonEFCombinerHypoToolFromName()

TrigMuonHypoConfig.TrigMuonEFCombinerHypoToolFromName ( flags,
chainDict )

Definition at line 883 of file TrigMuonHypoConfig.py.

883def TrigMuonEFCombinerHypoToolFromName( flags, chainDict ):
884 #For full scan chains, we need to configure the thresholds based on all muons
885 #in the chain to get the counting correct. Currently a bit convoluted as
886 #the chain dict is (improperly) overwritten when merging for FS chains.
887 #Can probably improve this once serial merging is officially implemented
888 thresholds=[]
889 chainName = chainDict["chainName"]
890 hltChainName = chainName.rsplit("_L1",1)[0]
891 cparts = hltChainName.split("_")
892 if 'HLT' in hltChainName:
893 cparts.remove('HLT')
894 for part in cparts:
895 if 'mu' in part:
896 thrPart = part.split('mu')
897 if not thrPart[0] or thrPart[0] == "0":
898 mult = 1
899 else:
900 mult=thrPart[0]
901 thr = thrPart[1]
902 if 'noL1' in part:
903 thr =thr.replace('noL1','')
904 for i in range(1,int(mult)+1):
905 thresholds.append(thr)
906 if 'nscan10' in chainDict['chainParts'][0]['addInfo']:
907 conesize = 0.1
908 narrowscan = True
909 elif 'nscan20' in chainDict['chainParts'][0]['addInfo']:
910 conesize = 0.2
911 narrowscan = True
912 elif 'nscan30' in chainDict['chainParts'][0]['addInfo']:
913 conesize = 0.3
914 narrowscan = True
915 elif 'nscan40' in chainDict['chainParts'][0]['addInfo']:
916 conesize = 0.4
917 narrowscan = True
918 if 'nscan' in chainDict['chainParts'][0]['addInfo']:
919 conesize = 0.5
920 narrowscan = True
921 else:
922 narrowscan = False
923 conesize = 0.0
924
925 if 'muonqual' in chainDict['chainParts'][0]['addInfo']:
926 muonquality = True
927 else:
928 muonquality = False
929
930 monTool=None
931 if monitorAll:
932 monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFCombinerHypoTool/"+chainDict['chainName'])
933 else:
934 if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
935 monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFCombinerHypoTool/"+chainDict['chainName'])
936
937 tool = TrigMuonEFHypoToolCfg(chainDict['chainName'], thresholds, doSA=False, MuonQualityCut=muonquality, MonTool=monTool,
938 NarrowScan=narrowscan, ConeSize=conesize)
939
940 return tool
941
942
943

◆ TrigMuonEFHypoAlgCfg()

TrigMuonHypoConfig.TrigMuonEFHypoAlgCfg ( flags,
name = "UNSPECIFIED",
** kwargs )

Definition at line 683 of file TrigMuonHypoConfig.py.

683def TrigMuonEFHypoAlgCfg(flags, name="UNSPECIFIED", **kwargs):
684 return CompFactory.TrigMuonEFHypoAlg(name, **kwargs)
685
686

◆ TrigMuonEFHypoToolCfg()

TrigMuonHypoConfig.TrigMuonEFHypoToolCfg ( name,
thresholds,
doSA = False,
** kwargs )

Definition at line 783 of file TrigMuonHypoConfig.py.

783def TrigMuonEFHypoToolCfg(name, thresholds, doSA=False, **kwargs):
784
785
786 log = logging.getLogger(name)
787
788 nt = len(thresholds)
789 log.debug('Set %d thresholds', nt)
790 PtBins = [ [ 0.0, 2.5 ] ] * nt
791 PtThresholds = [ [ 5.49 * GeV ] ] * nt
792 passthrough=False
793 for th, thvalue in enumerate(thresholds):
794 if (thvalue=='passthrough'):
795 passthrough = True
796 PtBins[th] = [-10000.,10000.]
797 PtThresholds[th] = [ -1. * GeV ]
798 else:
799 if "0eta105" in name:
800 thvaluename = thvalue+ "GeV_barrelOnly"
801 else:
802 if int(thvalue)==3:
803 thvaluename = thvalue + 'GeV_v22a'
804 else:
805 if doSA:
806 thvaluename = thvalue + 'GeV'
807 else:
808 thvaluename = thvalue + 'GeV_v15a'
809 log.debug('Number of threshold = %d, Value of threshold = %s', th, thvaluename)
810
811 if doSA:
812 values = trigMuonEFSAThresholds[thvaluename]
813 else:
814 values = efCombinerThresholds[thvaluename]
815 PtBins[th] = values[0]
816 PtThresholds[th] = [ x * GeV for x in values[1] ]
817
818
819 kwargs.setdefault("AcceptAll", passthrough)
820 kwargs.setdefault("PtBins", PtBins)
821 kwargs.setdefault("PtThresholds", PtThresholds)
822 return CompFactory.TrigMuonEFHypoTool(name, **kwargs)
823
824

◆ TrigMuonEFIdtpHypoAlgCfg()

TrigMuonHypoConfig.TrigMuonEFIdtpHypoAlgCfg ( flags,
name = "TrigMuonEFIdtpHypoAlg",
** kwargs )

Definition at line 1093 of file TrigMuonHypoConfig.py.

1093def TrigMuonEFIdtpHypoAlgCfg(flags, name="TrigMuonEFIdtpHypoAlg", **kwargs):
1094 return CompFactory.TrigMuonEFIdtpHypoAlg(name, **kwargs)
1095

◆ TrigMuonEFIdtpHypoCfg()

TrigMuonHypoConfig.TrigMuonEFIdtpHypoCfg ( name,
thresholds,
** kwargs )

Definition at line 1033 of file TrigMuonHypoConfig.py.

1033def TrigMuonEFIdtpHypoCfg(name, thresholds, **kwargs):
1034
1035 log = logging.getLogger(name)
1036
1037 nt = len(thresholds)
1038 log.debug('Set %d thresholds', nt)
1039 ptBins = [ [ 0, 2.5 ] ] * nt
1040 ptThresholds = [ [ 5.49 * GeV ] ] * nt
1041 for th, thvalue in enumerate(thresholds):
1042 thvaluename = thvalue + 'GeV'
1043 if int(thvalue)==3:
1044 thvaluename = thvalue + 'GeV_v22a'
1045 log.debug('Number of threshold = %d, Value of threshold = %s', th, thvaluename)
1046 if (thvalue=='passthrough'):
1047 ptBins[th] = [-10000.,10000.]
1048 ptThresholds[th] = [ -1. * GeV ]
1049 else:
1050 values = trigMuonEFSAThresholds[thvaluename]
1051 ptBins[th] = values[0]
1052 ptThresholds[th] = [ x * GeV for x in values[1] ]
1053
1054
1055 if (thvalue=='passthrough'):
1056 kwargs.setdefault("AcceptAll", True)
1057 else:
1058 kwargs.setdefault("AcceptAll", False)
1059
1060 kwargs.setdefault("PtBins", ptBins)
1061 kwargs.setdefault("PtThresholds", ptThresholds)
1062
1063
1064 return CompFactory.TrigMuonEFIdtpHypoTool( name, **kwargs )
1065

◆ TrigMuonEFIdtpHypoToolFromDict()

TrigMuonHypoConfig.TrigMuonEFIdtpHypoToolFromDict ( flags,
chainDict )

Definition at line 1024 of file TrigMuonHypoConfig.py.

1024def TrigMuonEFIdtpHypoToolFromDict( flags, chainDict ) :
1025 thresholds = getThresholdsFromDict( chainDict )
1026 monTool=None
1027 if any(group in idHypoMonGroups for group in chainDict['monGroups']):
1028 monTool = TrigMuonEFIdtpHypoMonitoring(flags, "TrigMuonEFIdtpHypoTool/"+chainDict['chainName'])
1029 tool = TrigMuonEFIdtpHypoCfg( chainDict['chainName'], thresholds, MonTool=monTool )
1030 return tool
1031
1032

◆ TrigMuonEFIdtpInvMassHypoCfg()

TrigMuonHypoConfig.TrigMuonEFIdtpInvMassHypoCfg ( name,
thresholds,
** kwargs )

Definition at line 1083 of file TrigMuonHypoConfig.py.

1083def TrigMuonEFIdtpInvMassHypoCfg(name, thresholds, **kwargs) :
1084
1085 massWindow = trigMuonEFInvMassThresholds[thresholds]
1086 kwargs.setdefault("InvMassLow", massWindow[0])
1087 kwargs.setdefault("InvMassHigh", massWindow[1])
1088 kwargs.setdefault("AcceptAll", False)
1089
1090 return CompFactory.TrigMuonEFIdtpInvMassHypoTool(name, **kwargs)
1091
1092

◆ TrigMuonEFIdtpInvMassHypoToolFromDict()

TrigMuonHypoConfig.TrigMuonEFIdtpInvMassHypoToolFromDict ( flags,
chainDict )

Definition at line 1066 of file TrigMuonHypoConfig.py.

1066def TrigMuonEFIdtpInvMassHypoToolFromDict(flags, chainDict) :
1067 cname = chainDict['chainName']
1068 if 'idZmumu' in cname :
1069 thresholds = 'idZmumu'
1070 elif 'idJpsimumu' in cname :
1071 thresholds = 'idJpsimumu'
1072 else :
1073 log.warning("unknown chain name for IdtpInvmassHypo, chain name= %s, setting threshold of Z mass",cname)
1074 thresholds = 'idZmumu'
1075
1076 tool = TrigMuonEFIdtpInvMassHypoCfg( chainDict['chainName'], thresholds )
1077
1078 if any(group in idHypoMonGroups for group in chainDict['monGroups']):
1079 tool.MonTool = TrigMuonEFIdtpInvMassHypoMonitoring(flags, "TrigMuonEFIdtpInvMassHypoTool/"+chainDict['chainName'])
1080
1081 return tool
1082

◆ TrigMuonEFInvMassHypoCfg()

TrigMuonHypoConfig.TrigMuonEFInvMassHypoCfg ( flags,
toolName,
thresholds,
** kwargs )

Definition at line 1013 of file TrigMuonHypoConfig.py.

1013def TrigMuonEFInvMassHypoCfg(flags, toolName, thresholds, **kwargs):
1014
1015 massWindow = trigMuonEFInvMassThresholds[thresholds]
1016
1017 kwargs.setdefault("InvMassLow", massWindow[0])
1018 kwargs.setdefault("InvMassHigh", massWindow[1])
1019 kwargs.setdefault("AcceptAll", False)
1020
1021 tool = CompFactory.TrigMuonEFInvMassHypoTool(toolName, **kwargs)
1022 return tool
1023

◆ TrigMuonEFInvMassHypoToolFromDict()

TrigMuonHypoConfig.TrigMuonEFInvMassHypoToolFromDict ( flags,
chainDict )

Definition at line 994 of file TrigMuonHypoConfig.py.

994def TrigMuonEFInvMassHypoToolFromDict( flags, chainDict ) :
995 cparts = [i for i in chainDict['chainParts'] if i['signature']=='Muon']
996 #The invariant mass is specified at end of chain, so only shows up in the last chainPart
997 thresholds = cparts[-1]['invMassInfo']
998 if "os" in cparts[-1]['addInfo']:
999 osCut=True
1000 else:
1001 osCut = False
1002
1003 tool = TrigMuonEFInvMassHypoCfg( flags, chainDict['chainName'], thresholds, SelectOppositeSign=osCut )
1004
1005 if monitorAll:
1006 tool.MonTool = TrigMuonEFInvMassHypoMonitoring(flags, "TrigMuonEFInvMassHypoTool/"+chainDict['chainName'])
1007 else:
1008 if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
1009 tool.MonTool = TrigMuonEFInvMassHypoMonitoring(flags, "TrigMuonEFInvMassHypoTool/"+chainDict['chainName'])
1010
1011 return tool
1012

◆ TrigMuonEFMSonlyHypoToolFromDict()

TrigMuonHypoConfig.TrigMuonEFMSonlyHypoToolFromDict ( flags,
chainDict )

Definition at line 687 of file TrigMuonHypoConfig.py.

687def TrigMuonEFMSonlyHypoToolFromDict( flags, chainDict ) :
688 thresholds = getThresholdsFromDict( chainDict )
689 if chainDict['chainParts'][0]['multiplicity']=="0":
690 thresholds = [chainDict['chainParts'][0]['threshold']]
691 kwargs={}
692 kwargs.setdefault("RequireSAMuons",True)
693 if 'msonly' in chainDict['chainParts'][0]['msonlyInfo'] and 'noL1' not in chainDict['chainParts'][0]['extra']:
694 kwargs.setdefault("RemoveOverlaps",True)
695
696
697 if monitorAll:
698 monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFMSonlyHypoTool/"+chainDict['chainName'])
699 kwargs.setdefault("MonTool", monTool)
700 else:
701 if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
702 monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFMSonlyHypoTool/"+chainDict['chainName'])
703 kwargs.setdefault("MonTool", monTool)
704 if '3layersEC' in chainDict['chainParts'][0]['addInfo']:
705 kwargs.setdefault("RequireThreeStations", True)
706
707 if 'nscan10' in chainDict['chainParts'][0]['addInfo']:
708 conesize = 0.1
709 narrowscan = True
710 elif 'nscan20' in chainDict['chainParts'][0]['addInfo']:
711 conesize = 0.2
712 narrowscan = True
713 elif 'nscan30' in chainDict['chainParts'][0]['addInfo']:
714 conesize = 0.3
715 narrowscan = True
716 elif 'nscan40' in chainDict['chainParts'][0]['addInfo']:
717 conesize = 0.4
718 narrowscan = True
719 elif 'nscan' in chainDict['chainParts'][0]['addInfo']:
720 conesize = 0.5
721 narrowscan = True
722 else:
723 narrowscan = False
724 conesize = 0.0
725
726 kwargs.setdefault("ConeSize", conesize)
727 kwargs.setdefault("NarrowScan", narrowscan)
728
729 return TrigMuonEFHypoToolCfg( chainDict['chainName'], thresholds, doSA=True, **kwargs )
730

◆ TrigMuonEFMSonlyHypoToolFromName()

TrigMuonHypoConfig.TrigMuonEFMSonlyHypoToolFromName ( flags,
chainDict )

Definition at line 731 of file TrigMuonHypoConfig.py.

731def TrigMuonEFMSonlyHypoToolFromName( flags, chainDict):
732 #For full scan chains, we need to configure the thresholds based on all muons
733 #in the chain to get the counting correct.
734 thresholds=[]
735 chainName = chainDict["chainName"]
736 hltChainName = chainName.rsplit("_L1",1)[0]
737 cparts = hltChainName.split("_")
738
739 if 'HLT' in hltChainName:
740 cparts.remove('HLT')
741 for part in cparts:
742 if 'mu' in part:
743 thrPart = part.split('mu')
744 if not thrPart[0] or thrPart[0] == "0":
745 mult = 1
746 else:
747 mult=thrPart[0]
748 thr = thrPart[1]
749 if 'noL1' in part:
750 thr =thr.replace('noL1','')
751 for i in range(1,int(mult)+1):
752 thresholds.append(thr)
753
754 monTool=None
755 if monitorAll:
756 monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFMSonlyHypoTool/"+chainDict['chainName'])
757 else:
758 if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
759 monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFMSonlyHypoTool/"+chainDict['chainName'])
760
761 if 'nscan10' in chainDict['chainParts'][0]['addInfo']:
762 conesize = 0.1
763 narrowscan = True
764 elif 'nscan20' in chainDict['chainParts'][0]['addInfo']:
765 conesize = 0.2
766 narrowscan = True
767 elif 'nscan30' in chainDict['chainParts'][0]['addInfo']:
768 conesize = 0.3
769 narrowscan = True
770 elif 'nscan40' in chainDict['chainParts'][0]['addInfo']:
771 conesize = 0.4
772 narrowscan = True
773 elif 'nscan' in chainDict['chainParts'][0]['addInfo']:
774 conesize = 0.5
775 narrowscan = True
776 else:
777 narrowscan = False
778 conesize = 0.0
779
780
781 return TrigMuonEFHypoToolCfg( chainDict['chainName'], thresholds, doSA=True, MonTool=monTool, RequireSAMuons=True, NarrowScan=narrowscan, ConeSize=conesize)
782

◆ TrigMuonEFTrackIsolationHypoAlgCfg()

TrigMuonHypoConfig.TrigMuonEFTrackIsolationHypoAlgCfg ( flags,
name = "TrigMuonEFTrackIsolationHypoAlg",
** kwargs )

Definition at line 991 of file TrigMuonHypoConfig.py.

991def TrigMuonEFTrackIsolationHypoAlgCfg(flags, name="TrigMuonEFTrackIsolationHypoAlg", **kwargs):
992 return CompFactory.TrigMuonEFTrackIsolationHypoAlg(name, **kwargs)
993

◆ TrigMuonEFTrackIsolationHypoCfg()

TrigMuonHypoConfig.TrigMuonEFTrackIsolationHypoCfg ( flags,
name,
isoCut,
** kwargs )

Definition at line 962 of file TrigMuonHypoConfig.py.

962def TrigMuonEFTrackIsolationHypoCfg(flags, name, isoCut, **kwargs) :
963
964
965 if(isoCut=='passthrough') :
966 kwargs.setdefault("AcceptAll", True)
967
968 else:
969 ptcone03 = trigMuonEFTrkIsoThresholds[ isoCut ]
970
971 kwargs.setdefault("PtCone02Cut", 0.0)
972 kwargs.setdefault("PtCone03Cut", ptcone03)
973 kwargs.setdefault("AcceptAll", False)
974
975 if 'ms' in isoCut:
976 kwargs.setdefault("RequireCombinedMuon", False)
977 kwargs.setdefault("DoAbsCut", True)
978 else:
979 kwargs.setdefault("RequireCombinedMuon", True)
980 kwargs.setdefault("DoAbsCut", False)
981
982
983 if 'var' in isoCut :
984 kwargs.setdefault("useVarIso", True)
985 else :
986 kwargs.setdefault("useVarIso", False)
987
988 tool = CompFactory.TrigMuonEFTrackIsolationHypoTool(name, **kwargs)
989 return tool
990
if(pathvar)

◆ TrigMuonEFTrackIsolationHypoToolFromDict()

TrigMuonHypoConfig.TrigMuonEFTrackIsolationHypoToolFromDict ( flags,
chainDict )

Definition at line 944 of file TrigMuonHypoConfig.py.

944def TrigMuonEFTrackIsolationHypoToolFromDict( flags, chainDict ) :
945 cparts = [i for i in chainDict['chainParts'] if i['signature']=='Muon']
946 if 'ivarperf' in chainDict['chainParts'][0]['isoInfo']:
947 thresholds = 'passthrough'
948 else:
949 thresholds = cparts[0]['isoInfo']
950
951 tool = TrigMuonEFTrackIsolationHypoCfg(flags, chainDict['chainName'], thresholds)
952
953
954 if monitorAll:
955 tool.MonTool = TrigMuonEFTrackIsolationMonitoring(flags, 'TrigMuonEFTrackIsolationHypoTool/'+chainDict['chainName'])
956 else:
957 if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
958 tool.MonTool = TrigMuonEFTrackIsolationMonitoring(flags, 'TrigMuonEFTrackIsolationHypoTool/'+chainDict['chainName'])
959
960 return tool
961

◆ TrigMuonLateMuRoIHypoAlgCfg()

TrigMuonHypoConfig.TrigMuonLateMuRoIHypoAlgCfg ( flags,
name = "TrigMuRoIHypoAlg",
** kwargs )

Definition at line 1096 of file TrigMuonHypoConfig.py.

1096def TrigMuonLateMuRoIHypoAlgCfg(flags, name="TrigMuRoIHypoAlg", **kwargs):
1097 return CompFactory.TrigMuonLateMuRoIHypoAlg(name, **kwargs)
1098

◆ TrigMuonLateMuRoIHypoCfg()

TrigMuonHypoConfig.TrigMuonLateMuRoIHypoCfg ( flags,
name = "TrigMuRoIHypoTool" )

Definition at line 1103 of file TrigMuonHypoConfig.py.

1103def TrigMuonLateMuRoIHypoCfg(flags, name="TrigMuRoIHypoTool") :
1104
1105 tool = CompFactory.TrigMuonLateMuRoIHypoTool(name, AcceptAll=False)
1106 return tool

◆ TrigMuonLateMuRoIHypoToolFromDict()

TrigMuonHypoConfig.TrigMuonLateMuRoIHypoToolFromDict ( flags,
chainDict )

Definition at line 1099 of file TrigMuonHypoConfig.py.

1099def TrigMuonLateMuRoIHypoToolFromDict(flags, chainDict ) :
1100 tool = TrigMuonLateMuRoIHypoCfg(flags, chainDict['chainName'])
1101 return tool
1102

Variable Documentation

◆ efCombinerThresholds

dict TrigMuonHypoConfig.efCombinerThresholds

Definition at line 164 of file TrigMuonHypoConfig.py.

◆ idHypoMonGroups

list TrigMuonHypoConfig.idHypoMonGroups = ['idMon:t0','idMon:shifter']

Definition at line 278 of file TrigMuonHypoConfig.py.

◆ log

TrigMuonHypoConfig.log = logging.getLogger('TrigMuonHypoConfig')

Definition at line 24 of file TrigMuonHypoConfig.py.

◆ monitorAll

bool TrigMuonHypoConfig.monitorAll = False

Definition at line 18 of file TrigMuonHypoConfig.py.

◆ muCombThresholds

dict TrigMuonHypoConfig.muCombThresholds

Definition at line 64 of file TrigMuonHypoConfig.py.

◆ muFastThresholds

dict TrigMuonHypoConfig.muFastThresholds

Definition at line 26 of file TrigMuonHypoConfig.py.

◆ muFastThresholdsForECWeakBRegion

dict TrigMuonHypoConfig.muFastThresholdsForECWeakBRegion

Definition at line 208 of file TrigMuonHypoConfig.py.

◆ muonHypoMonGroups

list TrigMuonHypoConfig.muonHypoMonGroups = ['muonMon:online']

Definition at line 277 of file TrigMuonHypoConfig.py.

◆ trigMuonEFInvMassThresholds

dict TrigMuonHypoConfig.trigMuonEFInvMassThresholds
Initial value:
1= {
2 'invmJPsiOS' : [2.5, 4.3],
3 'invmDimu' : [1.5, 14.],
4 'idZmumu' : [50., 130.],
5 'idJpsimumu' : [1., 5.],
6}

Definition at line 269 of file TrigMuonHypoConfig.py.

◆ trigMuonEFSAThresholds

dict TrigMuonHypoConfig.trigMuonEFSAThresholds

Definition at line 118 of file TrigMuonHypoConfig.py.

◆ trigMuonEFTrkIsoThresholds

dict TrigMuonHypoConfig.trigMuonEFTrkIsoThresholds
Initial value:
1= {
2 'ivarloose' : 0.16, #ivarloose
3 'ivarmedium' : 0.07, #ivarmedium
4 'ivartight' : 0.06, #ivartight
5 'ivarverytight' : 0.04, #ivarverytight
6 'iloosems' : 3000.0 #ms-only iso
7 }

Definition at line 252 of file TrigMuonHypoConfig.py.

◆ trigMuonLrtd0Cut

dict TrigMuonHypoConfig.trigMuonLrtd0Cut
Initial value:
1= {
2 'd0loose' : 2.0,
3 'd0medium' : 3.0,
4 'd0tight' : 5.0
5 }

Definition at line 260 of file TrigMuonHypoConfig.py.