CMS 3D CMS Logo

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

Functions

def findFileInPath
 

Variables

tuple golden_json_2012 = cms.Sequence( golden_json_2012_pickEvents )
 
tuple golden_json_2012_pickEvents
 

Function Documentation

def golden_json_2012.findFileInPath (   theFile)

Definition at line 6 of file golden_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 golden_json_2012.golden_json_2012 = cms.Sequence( golden_json_2012_pickEvents )

Definition at line 35 of file golden_json_2012.py.

tuple golden_json_2012.golden_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  # the format of the json.txt file is the one of the CMS certification ("Compact list" according to LumiList)
14  LuminositySectionsBlockRange = LumiList(findFileInPath("DPGAnalysis/Skims/data/Cert_190456-208686_8TeV_22Jan2013ReReco_Collisions12_JSON.txt")).getVLuminosityBlockRange()
15 
16  )

Definition at line 18 of file golden_json_2012.py.