CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
dcsonly_json_2012 Namespace Reference

Functions

def findFileInPath
 

Variables

tuple dcsonly_json_2012_pickEvents
 

Function Documentation

def dcsonly_json_2012.findFileInPath (   theFile)

Definition at line 6 of file dcsonly_json_2012.py.

References join(), and split.

6 
7 def findFileInPath(theFile):
8  for s in environ["CMSSW_SEARCH_PATH"].split(":"):
9  attempt = join(s,theFile)
10  if exists(attempt):
11  return attempt
12  return None
13 
14 #--------------------------------------------------
15 # Pick a set of events
16 # defined by a set of run:luminositysection
17 #--------------------------------------------------
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
double split
Definition: MVATrainer.cc:139

Variable Documentation

tuple dcsonly_json_2012.dcsonly_json_2012_pickEvents
Initial value:
1 = cms.EDFilter(
2  "PickEvents",
3 
4  # chose between two definitions for the selection:
5  # run/lumiSection -based with input from a json file (what THIS example does)
6  # run/event -based with input from a json file (the historical PickEvents)
7 
8  IsRunLsBased = cms.bool(True),
9 
10  # the file listrunev is unused, in this example
11  RunEventList = cms.untracked.string('DPGAnalysis/Skims/data/listrunev'),
12 
13  LuminositySectionsBlockRange = LumiList(findFileInPath("DPGAnalysis/Skims/data/json_DCSONLY.txt")).getVLuminosityBlockRange()
14 
15  )

Definition at line 18 of file dcsonly_json_2012.py.