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 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.

00043                                                                                                                                            :
00044         self.run = run
00045         self.files = files
00046         self.events = events
00047         self.location = location
00048         self.label = label
00049         self.dataSet = dataSet
00050         self.split = split
00051         self.ib_blacklist = ib_blacklist
00052         self.ib_block = ib_block
        

Member Function Documentation

def relval_steps::InputInfo::__str__ (   self)

Definition at line 74 of file relval_steps.py.

00075                      :
00076         if self.ib_block:
00077             return "input from: {0} with run {1}#{2}".format(self.dataSet, self.ib_block, self.run)
00078         return "input from: {0} with run {1}".format(self.dataSet, self.run)
00079     
# merge dictionaries, with prioty on the [0] index
def relval_steps::InputInfo::dbs (   self)

Definition at line 53 of file relval_steps.py.

00054                  :
00055         query_by = "block" if self.ib_block else "dataset"
00056         query_source = "{0}#{1}".format(self.dataSet, self.ib_block) if self.ib_block else self.dataSet
00057         if len(self.run) is not 0:
00058             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])
00059             command = "({0})".format(command)
00060         else:
00061             command = "das_client.py --limit=0 --query 'file {0}={1} site=T2_CH_CERN'".format(query_by, query_source)
00062        
00063         # Run filter on DAS output 
00064         if self.ib_blacklist:
00065             command += " | grep -E -v "
00066             command += " ".join(["-e '{0}'".format(pattern) for pattern in self.ib_blacklist])
00067         command += " | sort -u"
00068         return command

def relval_steps::InputInfo::lumiRanges (   self)

Definition at line 69 of file relval_steps.py.

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


Member Data Documentation

Definition at line 42 of file relval_steps.py.

Definition at line 42 of file relval_steps.py.

Definition at line 42 of file relval_steps.py.

Definition at line 42 of file relval_steps.py.

Definition at line 42 of file relval_steps.py.

Definition at line 42 of file relval_steps.py.

Definition at line 42 of file relval_steps.py.

Definition at line 42 of file relval_steps.py.

Definition at line 42 of file relval_steps.py.