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

Stores the information about a given tag. More...

Inheritance diagram for python.trfAMI.TagInfo:
Collaboration diagram for python.trfAMI.TagInfo:

Public Member Functions

def __init__ (self, tag, suppressNonJobOptions=True)
 
def isProdSys (self)
 
def trfs (self)
 
def __str__ (self)
 

Private Attributes

 _tag
 
 _isNewTag
 
 _isProdSys
 
 _trfs
 
 _suppressNonJobOptions
 

Detailed Description

Stores the information about a given tag.

Definition at line 166 of file trfAMI.py.

Constructor & Destructor Documentation

◆ __init__()

def python.trfAMI.TagInfo.__init__ (   self,
  tag,
  suppressNonJobOptions = True 
)

Definition at line 167 of file trfAMI.py.

167  def __init__(self, tag, suppressNonJobOptions = True):
168  self._tag=tag
169  self._isNewTag = isNewAMITag(tag)
170  self._isProdSys=None
171  self._trfs=None
172  self._suppressNonJobOptions = suppressNonJobOptions
173 

Member Function Documentation

◆ __str__()

def python.trfAMI.TagInfo.__str__ (   self)

Definition at line 199 of file trfAMI.py.

199  def __str__(self):
200  string = '\nInformation about tag '+self._tag+':\n'
201 
202  if self.isProdSys:
203  string +='This is a ProdSys tag. Input and output file arguments are likely to be missing because they are often not part of the tag definition.\n'
204  else:
205  string +='This is a T0 tag.\n'
206 
207  string +='This tag consists of ' + str(len(self.trfs)) + ' transform command(s).\n'
208  string += 'Transform commands follow below.\n'
209  string += 'Input and output file names (if present) are only suggestions.\n'
210 
211  for trf in self.trfs:
212  string+='\n'+str(trf)+'\n'
213 
214  return string
215 
216 

◆ isProdSys()

def python.trfAMI.TagInfo.isProdSys (   self)

Definition at line 175 of file trfAMI.py.

175  def isProdSys(self):
176  if self._isProdSys is None:
177  if self._isNewTag:
178  #probably false, as we need to get stuff from ami
179  self._isProdSys = False
180  else:
181  prodtags=getProdSysTagsCharacters()
182  if self._tag[0] in prodtags:
183  self._isProdSys=True
184  else:
185  self._isProdSys=False
186  return self._isProdSys
187 
188 

◆ trfs()

def python.trfAMI.TagInfo.trfs (   self)

Definition at line 190 of file trfAMI.py.

190  def trfs(self):
191  if self._trfs is None:
192  if self.isProdSys:
193  self._trfs=getTrfConfigFromPANDA(self._tag)
194  else:
195  self._trfs = getTrfConfigFromAMI(self._tag, self._suppressNonJobOptions)
196  return self._trfs
197 
198 

Member Data Documentation

◆ _isNewTag

python.trfAMI.TagInfo._isNewTag
private

Definition at line 169 of file trfAMI.py.

◆ _isProdSys

python.trfAMI.TagInfo._isProdSys
private

Definition at line 170 of file trfAMI.py.

◆ _suppressNonJobOptions

python.trfAMI.TagInfo._suppressNonJobOptions
private

Definition at line 172 of file trfAMI.py.

◆ _tag

python.trfAMI.TagInfo._tag
private

Definition at line 168 of file trfAMI.py.

◆ _trfs

python.trfAMI.TagInfo._trfs
private

Definition at line 171 of file trfAMI.py.


The documentation for this class was generated from the following file:
python.trfAMI.getTrfConfigFromPANDA
def getTrfConfigFromPANDA(tag)
Get information about a ProdSys tag from PANDA.
Definition: trfAMI.py:272
python.trfAMI.getTrfConfigFromAMI
def getTrfConfigFromAMI(tag, suppressNonJobOptions=True)
Get information about a T0 tag from AMI.
Definition: trfAMI.py:416
python.trfAMI.getProdSysTagsCharacters
def getProdSysTagsCharacters()
Get list of characters of ProdSys tags.
Definition: trfAMI.py:236
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
str
Definition: BTagTrackIpAccessor.cxx:11
python.trfAMI.isNewAMITag
def isNewAMITag(tag)
Definition: trfAMI.py:131