ATLAS Offline Software
Loading...
Searching...
No Matches
python.PhotonIsEMSelectorMapping Namespace Reference

Classes

class  photonPIDmenu

Functions

 PhotonIsEMMap (quality, menu)

Variables

dict PhotonIsEMMapOfflineMC20
dict PhotonIsEMMapOfflineMC21

Function Documentation

◆ PhotonIsEMMap()

PhotonIsEMMap ( quality,
menu )

Definition at line 79 of file PhotonIsEMSelectorMapping.py.

79def PhotonIsEMMap(quality, menu):
80 if menu == photonPIDmenu.offlineMC20 and quality in PhotonIsEMMapOfflineMC20.keys():
81 return PhotonIsEMMapOfflineMC20[quality]
82 elif menu == photonPIDmenu.offlineMC21 and quality in PhotonIsEMMapOfflineMC21.keys():
83 return PhotonIsEMMapOfflineMC21[quality]
84 else:
85 raise ValueError("Requested menu is undefined: %d" % menu)

Variable Documentation

◆ PhotonIsEMMapOfflineMC20

dict python.PhotonIsEMSelectorMapping.PhotonIsEMMapOfflineMC20
Initial value:
= {
egammaPID.PhotonIDLoose: (
egammaPID.PhotonLoose,
PhotonIsEMMenuDefs.PhotonIsEMLooseSelectorConfig),
egammaPID.PhotonIDMedium: (
egammaPID.PhotonMedium,
PhotonIsEMMenuDefs.PhotonIsEMMediumSelectorConfig),
egammaPID.PhotonIDTight: (
egammaPID.PhotonTight,
PhotonIsEMMenuDefs.PhotonIsEMTightSelectorConfigMC20),
egammaPID.PhotonIDLooseAR: (
egammaPID.PhotonLooseAR,
PhotonIsEMMenuDefs.PhotonIsEMLooseSelectorConfig),
egammaPID.PhotonIDMediumAR: (
egammaPID.PhotonMediumAR,
PhotonIsEMMenuDefs.PhotonIsEMMediumSelectorConfig),
egammaPID.PhotonIDTightAR: (
egammaPID.PhotonTightAR,
PhotonIsEMMenuDefs.PhotonIsEMTightSelectorConfigMC20),
egammaPID.NoIDCut: (
0,
PhotonIsEMMenuDefs.PhotonIsEMLooseSelectorConfig)
}

Definition at line 28 of file PhotonIsEMSelectorMapping.py.

◆ PhotonIsEMMapOfflineMC21

dict python.PhotonIsEMSelectorMapping.PhotonIsEMMapOfflineMC21
Initial value:
= {
egammaPID.PhotonIDLoose: (
egammaPID.PhotonLoose,
PhotonIsEMMenuDefs.PhotonIsEMLooseSelectorConfig),
egammaPID.PhotonIDMedium: (
egammaPID.PhotonMedium,
PhotonIsEMMenuDefs.PhotonIsEMMediumSelectorConfig),
egammaPID.PhotonIDTight: (
egammaPID.PhotonTight,
PhotonIsEMMenuDefs.PhotonIsEMTightSelectorConfigMC21),
egammaPID.PhotonIDLooseAR: (
egammaPID.PhotonLooseAR,
PhotonIsEMMenuDefs.PhotonIsEMLooseSelectorConfig),
egammaPID.PhotonIDMediumAR: (
egammaPID.PhotonMediumAR,
PhotonIsEMMenuDefs.PhotonIsEMMediumSelectorConfig),
egammaPID.PhotonIDTightAR: (
egammaPID.PhotonTightAR,
PhotonIsEMMenuDefs.PhotonIsEMTightSelectorConfigMC21),
egammaPID.NoIDCut: (
0,
PhotonIsEMMenuDefs.PhotonIsEMLooseSelectorConfig)
}

Definition at line 53 of file PhotonIsEMSelectorMapping.py.