ATLAS Offline Software
Classes | Functions | Variables
python.PhotonIsEMSelectorMapping Namespace Reference

Classes

class  photonPIDmenu
 

Functions

def PhotonIsEMMap (quality, menu)
 

Variables

dictionary PhotonIsEMMapOfflineMC20
 
dictionary PhotonIsEMMapOfflineMC21
 

Function Documentation

◆ PhotonIsEMMap()

def python.PhotonIsEMSelectorMapping.PhotonIsEMMap (   quality,
  menu 
)

Definition at line 79 of file PhotonIsEMSelectorMapping.py.

79 def 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

dictionary python.PhotonIsEMSelectorMapping.PhotonIsEMMapOfflineMC20
Initial value:
1 = {
2  egammaPID.PhotonIDLoose: (
3  egammaPID.PhotonLoose,
4  PhotonIsEMMenuDefs.PhotonIsEMLooseSelectorConfig),
5  egammaPID.PhotonIDMedium: (
6  egammaPID.PhotonMedium,
7  PhotonIsEMMenuDefs.PhotonIsEMMediumSelectorConfig),
8  egammaPID.PhotonIDTight: (
9  egammaPID.PhotonTight,
10  PhotonIsEMMenuDefs.PhotonIsEMTightSelectorConfigMC20),
11 
12  egammaPID.PhotonIDLooseAR: (
13  egammaPID.PhotonLooseAR,
14  PhotonIsEMMenuDefs.PhotonIsEMLooseSelectorConfig),
15  egammaPID.PhotonIDMediumAR: (
16  egammaPID.PhotonMediumAR,
17  PhotonIsEMMenuDefs.PhotonIsEMMediumSelectorConfig),
18  egammaPID.PhotonIDTightAR: (
19  egammaPID.PhotonTightAR,
20  PhotonIsEMMenuDefs.PhotonIsEMTightSelectorConfigMC20),
21  egammaPID.NoIDCut: (
22  0,
23  PhotonIsEMMenuDefs.PhotonIsEMLooseSelectorConfig)
24 }

Definition at line 28 of file PhotonIsEMSelectorMapping.py.

◆ PhotonIsEMMapOfflineMC21

dictionary python.PhotonIsEMSelectorMapping.PhotonIsEMMapOfflineMC21
Initial value:
1 = {
2  egammaPID.PhotonIDLoose: (
3  egammaPID.PhotonLoose,
4  PhotonIsEMMenuDefs.PhotonIsEMLooseSelectorConfig),
5  egammaPID.PhotonIDMedium: (
6  egammaPID.PhotonMedium,
7  PhotonIsEMMenuDefs.PhotonIsEMMediumSelectorConfig),
8  egammaPID.PhotonIDTight: (
9  egammaPID.PhotonTight,
10  PhotonIsEMMenuDefs.PhotonIsEMTightSelectorConfigMC21),
11 
12  egammaPID.PhotonIDLooseAR: (
13  egammaPID.PhotonLooseAR,
14  PhotonIsEMMenuDefs.PhotonIsEMLooseSelectorConfig),
15  egammaPID.PhotonIDMediumAR: (
16  egammaPID.PhotonMediumAR,
17  PhotonIsEMMenuDefs.PhotonIsEMMediumSelectorConfig),
18  egammaPID.PhotonIDTightAR: (
19  egammaPID.PhotonTightAR,
20  PhotonIsEMMenuDefs.PhotonIsEMTightSelectorConfigMC21),
21  egammaPID.NoIDCut: (
22  0,
23  PhotonIsEMMenuDefs.PhotonIsEMLooseSelectorConfig)
24 }

Definition at line 53 of file PhotonIsEMSelectorMapping.py.

python.PhotonIsEMSelectorMapping.PhotonIsEMMap
def PhotonIsEMMap(quality, menu)
Definition: PhotonIsEMSelectorMapping.py:79