CMS 3D CMS Logo

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

Functions

def findFileInPath
 

Variables

tuple muon_json_2012 = cms.Sequence( muon_json_2012_pickEvents )
 
tuple muon_json_2012_pickEvents
 

Function Documentation

def muon_json_2012.findFileInPath (   theFile)

Definition at line 6 of file muon_json_2012.py.

References join(), and submitPVValidationJobs.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:19

Variable Documentation

tuple muon_json_2012.muon_json_2012 = cms.Sequence( muon_json_2012_pickEvents )

Definition at line 36 of file muon_json_2012.py.

tuple muon_json_2012.muon_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_MuonPhys.txt")).getVLuminosityBlockRange()
15 
16 
17  )

Definition at line 18 of file muon_json_2012.py.