CMS 3D CMS Logo

Public Member Functions | Public Attributes

relval_steps::InputInfo Class Reference

List of all members.

Public Member Functions

def __init__
def __str__
def dbs
def lumiRanges

Public Attributes

 dataSet
 events
 files
 ib_blacklist
 ib_block
 label
 location
 run
 split

Detailed Description

Definition at line 45 of file relval_steps.py.


Constructor & Destructor Documentation

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

Definition at line 46 of file relval_steps.py.

00047                                                                                                                                           :
00048         self.run = run
00049         self.files = files
00050         self.events = events
00051         self.location = location
00052         self.label = label
00053         self.dataSet = dataSet
00054         self.split=split
00055         self.ib_blacklist = ib_blacklist
00056         self.ib_block = ib_block


Member Function Documentation

def relval_steps::InputInfo::__str__ (   self)

Definition at line 78 of file relval_steps.py.

00079                      :
00080         if self.ib_block:
00081             return "input from: {0} with run {1}#{2}".format(self.dataSet, self.ib_block, self.run)
00082         return "input from: {0} with run {1}".format(self.dataSet, self.run)
00083         
00084     
# merge dictionaries, with prioty on the [0] index
def relval_steps::InputInfo::dbs (   self)

Definition at line 57 of file relval_steps.py.

00058                  :
00059         query_by = "block" if self.ib_block else "dataset"
00060         query_source = "{0}#{1}".format(self.dataSet, self.ib_block) if self.ib_block else self.dataSet
00061         if len(self.run) is not 0:
00062             command = ";".join(["das_client.py --host='https://dastest.cern.ch' --limit=0 --query 'file {0}={1} run={2}'".format(query_by, query_source, query_run) for query_run in self.run])
00063             command = "({0})".format(command)
00064         else:
00065             command = "das_client.py --host='https://dastest.cern.ch' --limit=0 --query 'file {0}={1} site=T2_CH_CERN'".format(query_by, query_source)
00066 
00067         # Run filter on DAS output
00068         if self.ib_blacklist:
00069             command += " | grep -E -v "
00070             command += " ".join(["-e '{0}'".format(pattern) for pattern in self.ib_blacklist])
00071         command += " | sort -u"
00072         return command
        
def relval_steps::InputInfo::lumiRanges (   self)

Definition at line 73 of file relval_steps.py.

00074                         :
00075         if len(self.run) != 0:
00076             return "echo '{\n"+",".join(('"%d":[[1,268435455]]\n'%(x,) for x in self.run))+"}'"
00077         return None


Member Data Documentation

Definition at line 46 of file relval_steps.py.

Definition at line 46 of file relval_steps.py.

Definition at line 46 of file relval_steps.py.

Definition at line 46 of file relval_steps.py.

Definition at line 46 of file relval_steps.py.

Definition at line 46 of file relval_steps.py.

Definition at line 46 of file relval_steps.py.

Definition at line 46 of file relval_steps.py.

Definition at line 46 of file relval_steps.py.