CMS 3D CMS Logo

elec_selection.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 from __future__ import print_function
4 import os
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
19 
20 def deltaR():
21  if os.environ['E_SELECTION'] == 'pions':
22  result = 0.05
23  else:
24  result = 0.2
25  return result
26 
27 if __name__ == "__main__":
28  for statement in selection():
29  print(statement)
elec_selection.deltaR
def deltaR()
Definition: elec_selection.py:20
edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
elec_selection.selection
def selection()
Definition: elec_selection.py:6