Belle II Software  release-05-02-19
TextOptionFile Class Reference
Inheritance diagram for TextOptionFile:
Collaboration diagram for TextOptionFile:

Public Member Functions

def AddOptionValue (self, option, value, substitute=False)
 
def AddInclude (self, filename)
 
def IncreaseOptionValue (self, option, value)
 
def Close (self)
 
def OptionFileName (self)
 
def SetFileName (self, filename)
 
def Open (self)
 
def Write (self, lines)
 
def WriteHeader (self, eventtype, descriptor)
 
def AddExtraOptions (self, eventtype)
 
def AddEventTypeNumber (self, eventtype)
 
def AddEvtGenUserDecayFile (self, eventtype)
 
def AddDecayOptions (self, eventtype)
 

Public Attributes

 filename
 name of the file
 
 f
 alternative name of the file
 

Static Public Attributes

string comment = '//'
 comments string
 
string suffix = '.opts'
 suffix string
 
string true_string = 'true'
 true string
 
string list_begin = '{'
 open list parenthesis
 
string list_end = '}'
 close list parenthesis
 

Detailed Description

Class to read generic option file in .txt format.

Attributes:
     comment     comment string
     suffix      suffix string
     true_string true string
     list_begin  open list parenthesis
     list_end    close list parenthesis

Definition at line 133 of file CreateProdScripts.py.

Member Function Documentation

◆ AddDecayOptions()

def AddDecayOptions (   self,
  eventtype 
)
inherited
Specify options for .dec file.

Definition at line 123 of file CreateProdScripts.py.

◆ AddEventTypeNumber()

def AddEventTypeNumber (   self,
  eventtype 
)
inherited
Adds the Event Type Number.

Definition at line 110 of file CreateProdScripts.py.

◆ AddEvtGenUserDecayFile()

def AddEvtGenUserDecayFile (   self,
  eventtype 
)
inherited
Set the EvtGen .dec file.

Definition at line 116 of file CreateProdScripts.py.

◆ AddExtraOptions()

def AddExtraOptions (   self,
  eventtype 
)
inherited
Adds extra options.

Definition at line 104 of file CreateProdScripts.py.

◆ AddInclude()

def AddInclude (   self,
  filename 
)
Add include statements.

Definition at line 163 of file CreateProdScripts.py.

◆ AddOptionValue()

def AddOptionValue (   self,
  option,
  value,
  substitute = False 
)
Set the value of option.

Definition at line 157 of file CreateProdScripts.py.

◆ Close()

def Close (   self)
inherited
Close file.

Definition at line 56 of file CreateProdScripts.py.

◆ IncreaseOptionValue()

def IncreaseOptionValue (   self,
  option,
  value 
)
Add option string.

Definition at line 169 of file CreateProdScripts.py.

◆ Open()

def Open (   self)
inherited
Open file.

Definition at line 75 of file CreateProdScripts.py.

◆ OptionFileName()

def OptionFileName (   self)
inherited
Set option file name.

Definition at line 63 of file CreateProdScripts.py.

◆ SetFileName()

def SetFileName (   self,
  filename 
)
inherited
Set file name.

Definition at line 69 of file CreateProdScripts.py.

◆ Write()

def Write (   self,
  lines 
)
inherited
Write the lines in the file.

Definition at line 82 of file CreateProdScripts.py.

◆ WriteHeader()

def WriteHeader (   self,
  eventtype,
  descriptor 
)
inherited
Write header of .dec file.

Definition at line 89 of file CreateProdScripts.py.


The documentation for this class was generated from the following file: