CMS 3D CMS Logo

Functions
elec_selection Namespace Reference

Functions

def deltaR ()
 
def selection ()
 

Function Documentation

def elec_selection.deltaR ( )

Definition at line 19 of file elec_selection.py.

References selection().

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

Definition at line 5 of file elec_selection.py.

Referenced by deltaR().

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