CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
20 def deltaR():
21  if os.environ['E_SELECTION'] == 'pions':
22  result = 0.05
23  else:
24  result = 0.2
25  return result
def elec_selection.selection ( )

Definition at line 5 of file elec_selection.py.

Referenced by deltaR().

5 
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