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
 
def queries
 

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 80 of file relval_steps.py.

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

Referenced by BeautifulSoup.Tag.__repr__(), BeautifulSoup.Tag.__unicode__(), and BeautifulSoup.Tag.prettify().

80 
81  def __str__(self):
82  if self.ib_block:
83  return "input from: {0} with run {1}#{2}".format(self.dataSet, self.ib_block, self.run)
84  return "input from: {0} with run {1}".format(self.dataSet, self.run)
85 
# merge dictionaries, with prioty on the [0] index
def relval_steps.InputInfo.das (   self,
  das_options 
)

Definition at line 53 of file relval_steps.py.

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

53 
54  def das(self, das_options):
55  if len(self.run) is not 0:
56  command = ";".join(["dasgoclient %s --query '%s'" % (das_options, query) for query in self.queries()])
57  command = "({0})".format(command)
58  else:
59  command = "dasgoclient %s --query '%s'" % (das_options, self.queries()[0])
60 
61  # Run filter on DAS output
62  if self.ib_blacklist:
63  command += " | grep -E -v "
64  command += " ".join(["-e '{0}'".format(pattern) for pattern in self.ib_blacklist])
65  command += " | sort -u"
66  return command
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def relval_steps.InputInfo.lumiRanges (   self)

Definition at line 67 of file relval_steps.py.

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

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

Definition at line 72 of file relval_steps.py.

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

Referenced by relval_steps.InputInfo.das().

72 
73  def queries(self):
74  query_by = "block" if self.ib_block else "dataset"
75  query_source = "{0}#{1}".format(self.dataSet, self.ib_block) if self.ib_block else self.dataSet
76  if len(self.run) is not 0:
77  return ["file {0}={1} run={2} site=T2_CH_CERN".format(query_by, query_source, query_run) for query_run in self.run]
78  else:
79  return ["file {0}={1} site=T2_CH_CERN".format(query_by, query_source)]

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.queries().

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.queries().

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(), relval_steps.InputInfo.queries(), and dqm_interfaces.DirWalkerFile.walk().

relval_steps.InputInfo.split

Definition at line 49 of file relval_steps.py.