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

Public Attributes

 dataSet
 events
 files
 ib_blacklist
 ib_block
 label
 location
 run
 split

Detailed Description

Definition at line 43 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 44 of file relval_steps.py.

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

Member Function Documentation

def relval_steps::InputInfo::__str__ (   self)

Definition at line 71 of file relval_steps.py.

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

Definition at line 55 of file relval_steps.py.

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


Member Data Documentation

Definition at line 44 of file relval_steps.py.

Definition at line 44 of file relval_steps.py.

Definition at line 44 of file relval_steps.py.

Definition at line 44 of file relval_steps.py.

Definition at line 44 of file relval_steps.py.

Definition at line 44 of file relval_steps.py.

Definition at line 44 of file relval_steps.py.

Definition at line 44 of file relval_steps.py.

Definition at line 44 of file relval_steps.py.