CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
relval_steps.InputInfo Class Reference
Inheritance diagram for relval_steps.InputInfo:

Public Member Functions

def __init__
 
def __str__
 
def das
 
def lumiRanges
 

Public Attributes

 dataSet
 
 events
 
 files
 
 ib_blacklist
 
 ib_block
 
 label
 
 location
 
 run
 
 split
 

Detailed Description

Definition at line 41 of file relval_steps.py.

Constructor & Destructor Documentation

def relval_steps.InputInfo.__init__ (   self,
  dataSet,
  label = '',
  run = [],
  files = 1000,
  events = InputInfoNDefault,
  split = 10,
  location = 'CAF',
  ib_blacklist = None,
  ib_block = None 
)

Definition at line 42 of file relval_steps.py.

42 
43  def __init__(self,dataSet,label='',run=[],files=1000,events=InputInfoNDefault,split=10,location='CAF',ib_blacklist=None,ib_block=None) :
44  self.run = run
45  self.files = files
46  self.events = events
47  self.location = location
48  self.label = label
49  self.dataSet = dataSet
50  self.split = split
51  self.ib_blacklist = ib_blacklist
52  self.ib_block = ib_block

Member Function Documentation

def relval_steps.InputInfo.__str__ (   self)

Definition at line 74 of file relval_steps.py.

References relval_steps.InputInfo.dataSet, relval_steps.InputInfo.ib_block, RPCRunIOV::RunIOV_Item.run, RPCDQMObject.run, TB06Reco.run, TB06RecoH2.run, relval_steps.InputInfo.run, HitEff.run, ME::Header.run, cms::GammaJetAnalysis.run, and SiPixelErrorEstimation.run.

74 
75  def __str__(self):
76  if self.ib_block:
77  return "input from: {0} with run {1}#{2}".format(self.dataSet, self.ib_block, self.run)
78  return "input from: {0} with run {1}".format(self.dataSet, self.run)
79 
# merge dictionaries, with prioty on the [0] index
def relval_steps.InputInfo.das (   self)

Definition at line 53 of file relval_steps.py.

References relval_steps.InputInfo.dataSet, relval_steps.InputInfo.ib_blacklist, relval_steps.InputInfo.ib_block, join(), RPCRunIOV::RunIOV_Item.run, RPCDQMObject.run, TB06Reco.run, TB06RecoH2.run, relval_steps.InputInfo.run, HitEff.run, ME::Header.run, cms::GammaJetAnalysis.run, and SiPixelErrorEstimation.run.

53 
54  def das(self):
55  query_by = "block" if self.ib_block else "dataset"
56  query_source = "{0}#{1}".format(self.dataSet, self.ib_block) if self.ib_block else self.dataSet
57  if len(self.run) is not 0:
58  command = ";".join(["das_client.py --limit=0 --query 'file {0}={1} run={2}'".format(query_by, query_source, query_run) for query_run in self.run])
59  command = "({0})".format(command)
60  else:
61  command = "das_client.py --limit=0 --query 'file {0}={1} site=T2_CH_CERN'".format(query_by, query_source)
62 
63  # Run filter on DAS output
64  if self.ib_blacklist:
65  command += " | grep -E -v "
66  command += " ".join(["-e '{0}'".format(pattern) for pattern in self.ib_blacklist])
67  command += " | sort -u"
68  return command
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def relval_steps.InputInfo.lumiRanges (   self)

Definition at line 69 of file relval_steps.py.

References join(), RPCRunIOV::RunIOV_Item.run, RPCDQMObject.run, TB06Reco.run, TB06RecoH2.run, relval_steps.InputInfo.run, HitEff.run, ME::Header.run, cms::GammaJetAnalysis.run, and SiPixelErrorEstimation.run.

69 
70  def lumiRanges(self):
71  if len(self.run) != 0:
72  return "echo '{\n"+",".join(('"%d":[[1,268435455]]\n'%(x,) for x in self.run))+"}'"
73  return None
static std::string join(char **cmd)
Definition: RemoteFile.cc:18

Member Data Documentation

relval_steps.InputInfo.dataSet

Definition at line 48 of file relval_steps.py.

Referenced by relval_steps.InputInfo.__str__(), and relval_steps.InputInfo.das().

relval_steps.InputInfo.events

Definition at line 45 of file relval_steps.py.

relval_steps.InputInfo.files

Definition at line 44 of file relval_steps.py.

relval_steps.InputInfo.ib_blacklist

Definition at line 50 of file relval_steps.py.

Referenced by relval_steps.InputInfo.das().

relval_steps.InputInfo.ib_block

Definition at line 51 of file relval_steps.py.

Referenced by relval_steps.InputInfo.__str__(), and relval_steps.InputInfo.das().

relval_steps.InputInfo.label

Definition at line 47 of file relval_steps.py.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._sort_list(), python.rootplot.root2matplotlib.Hist.bar(), python.rootplot.root2matplotlib.Hist.barh(), python.rootplot.root2matplotlib.Hist.errorbar(), python.rootplot.root2matplotlib.Hist.errorbarh(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.foundIn(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.fullFilename(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.inputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.outputEventContent(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.properties(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.readConnections(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.updateProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.usedBy().

relval_steps.InputInfo.location

Definition at line 46 of file relval_steps.py.

relval_steps.InputInfo.run

Definition at line 43 of file relval_steps.py.

Referenced by relval_steps.InputInfo.__str__(), generateEDF.LumiInfo.__str__(), Types.EventID.cppID(), Types.LuminosityBlockID.cppID(), relval_steps.InputInfo.das(), generateEDF.LumiInfo.fixXingInfo(), relval_steps.InputInfo.lumiRanges(), and dqm_interfaces.DirWalkerFile.walk().

relval_steps.InputInfo.split

Definition at line 49 of file relval_steps.py.