CMS 3D CMS Logo

Functions
elec_selection Namespace Reference

Functions

def deltaR ()
 
def selection ()
 

Function Documentation

◆ deltaR()

def elec_selection.deltaR ( )

Definition at line 20 of file elec_selection.py.

20 def deltaR():
21  if os.environ['E_SELECTION'] == 'pions':
22  result = 0.05
23  else:
24  result = 0.2
25  return result
26 

References edm.print(), and selection().

◆ selection()

def elec_selection.selection ( )

Definition at line 6 of file elec_selection.py.

6 def selection():
7 
8  if os.environ['E_SELECTION'] == 'efromW':
9  result = ["drop *", "keep+ pdgId = 24", "keep+ pdgId = -24", "drop pdgId !=11 && pdgId !=-11"]
10  elif os.environ['E_SELECTION'] == 'efromZ':
11  result = ["drop *", "keep+ pdgId = 23", "drop pdgId !=11 && pdgId !=-11"]
12  elif os.environ['E_SELECTION'] == 'efromb':
13  result = ["drop *", "keep+ abs(pdgId)>=500 & abs(pdgId)<600", "drop pdgId !=11 && pdgId !=-11"]
14  elif os.environ['E_SELECTION'] == 'pions':
15  result = ["drop *", "keep pdgId = 211", "keep pdgId = -211"]
16  else:
17  result = ["drop *"," keep pdgId = {e-}", "keep pdgId = {e+}"]
18  return result
19 

Referenced by deltaR().

elec_selection.deltaR
def deltaR()
Definition: elec_selection.py:20
elec_selection.selection
def selection()
Definition: elec_selection.py:6