CMS 3D CMS Logo

Functions
elec_selection Namespace Reference

Functions

def deltaR ()
 
def selection ()
 

Function Documentation

def elec_selection.deltaR ( )

Definition at line 20 of file elec_selection.py.

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

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

Definition at line 6 of file elec_selection.py.

Referenced by deltaR().

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