ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
python.trfArgs.dpdType Class Reference

Simple class to store information about extra DPD filetypes. More...

Inheritance diagram for python.trfArgs.dpdType:
Collaboration diagram for python.trfArgs.dpdType:

Public Member Functions

def __init__ (self, name, type=None, substeps=[], argclass=None, treeNames=None, help=None)
 Class constructor for dpdType. More...
 
def name (self)
 
def type (self)
 
def substeps (self)
 
def argclass (self)
 
def help (self)
 
def treeNames (self)
 

Private Attributes

 _name
 
 _type
 
 _substeps
 
 _argclass
 
 _help
 
 _treeNames
 

Detailed Description

Simple class to store information about extra DPD filetypes.

Implement this type of information as a class allowing for extensions to be easily added and for some convenient heuristics in the constructor

Definition at line 362 of file trfArgs.py.

Constructor & Destructor Documentation

◆ __init__()

def python.trfArgs.dpdType.__init__ (   self,
  name,
  type = None,
  substeps = [],
  argclass = None,
  treeNames = None,
  help = None 
)

Class constructor for dpdType.

Parameters
nameThe name of this datatype (e.g., DRAW_ZEE, NTUP_SCT)
typeThe argFile.type (should be the major datatype, e.g. BS, ESD, AOD, etc.)
substepsThe substeps or executor names where this data can be made
argclassThe argument class to be used for this data
treeNamesFor DPD types only, the tree(s) used for event counting (if None then no event counting can be done.
helpHelp string to generate for this argument

Definition at line 372 of file trfArgs.py.

372  def __init__(self, name, type = None, substeps = [], argclass = None, treeNames = None, help = None):
373  self._name = name
374 
375 
378  if type is None:
379  if 'RAW' in name:
380  self._type = 'bs'
381  elif 'ESD' in name:
382  self._type = 'esd'
383  elif 'AOD' in name:
384  self._type = 'aod'
385  elif 'NTUP' in name:
386  self._type = 'ntup'
387  else:
388  self._type = type
389 
390 
392  if substeps == []:
393  if 'RAW' in name:
394  self._substeps = ['RAWtoALL']
395  elif 'ESD' in name:
396  self._substeps = ['RAWtoALL']
397  elif 'AOD' in name:
398  self._substeps = ['RAWtoALL']
399  elif 'NTUP' in name:
400  self._substeps = ['RAWtoALL', 'AODtoDPD']
401  else:
402  self._substeps = substeps
403 
404 
405  if argclass is None:
406  if 'RAW' in name:
407  self._argclass = trfArgClasses.argBSFile
408  elif 'ESD' in name:
409  self._argclass = trfArgClasses.argPOOLFile
410  elif 'AOD' in name:
411  self._argclass = trfArgClasses.argPOOLFile
412  elif 'NTUP' in name:
413  self._argclass = trfArgClasses.argNTUPFile
414  else:
415  self._argclass = argclass
416 
417  self._help = help
418  self._treeNames = treeNames
419 

Member Function Documentation

◆ argclass()

def python.trfArgs.dpdType.argclass (   self)

Definition at line 433 of file trfArgs.py.

433  def argclass(self):
434  return self._argclass
435 

◆ help()

def python.trfArgs.dpdType.help (   self)

Definition at line 437 of file trfArgs.py.

437  def help(self):
438  return self._help
439 

◆ name()

def python.trfArgs.dpdType.name (   self)

Definition at line 421 of file trfArgs.py.

421  def name(self):
422  return self._name
423 

◆ substeps()

def python.trfArgs.dpdType.substeps (   self)

Definition at line 429 of file trfArgs.py.

429  def substeps(self):
430  return self._substeps
431 

◆ treeNames()

def python.trfArgs.dpdType.treeNames (   self)

Definition at line 441 of file trfArgs.py.

441  def treeNames(self):
442  return self._treeNames
443 

◆ type()

def python.trfArgs.dpdType.type (   self)

Definition at line 425 of file trfArgs.py.

425  def type(self):
426  return self._type
427 

Member Data Documentation

◆ _argclass

python.trfArgs.dpdType._argclass
private
Note
Similarly if no explcit class is given we guess, YMMV

Definition at line 407 of file trfArgs.py.

◆ _help

python.trfArgs.dpdType._help
private

Definition at line 417 of file trfArgs.py.

◆ _name

python.trfArgs.dpdType._name
private

Definition at line 373 of file trfArgs.py.

◆ _substeps

python.trfArgs.dpdType._substeps
private
Note
If not given explictly apply some heuristics, watch out for this if your data is made in a non-standard step

Definition at line 394 of file trfArgs.py.

◆ _treeNames

python.trfArgs.dpdType._treeNames
private

Definition at line 418 of file trfArgs.py.

◆ _type

python.trfArgs.dpdType._type
private
Note
Not very clear how useful this actually is, but we implement some heuristics here to avoid having to set the argFile.type always by hand

Definition at line 380 of file trfArgs.py.


The documentation for this class was generated from the following file:
python.CaloScaleNoiseConfig.help
help
Definition: CaloScaleNoiseConfig.py:76
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78