Belle II Software  release-05-02-19
EventType Class Reference

Public Member Functions

def __init__ (self, filename, remove, technology)
 
def DecodeDecayFile (self)
 
def Validate (self, obsoletes)
 
def EventTypeNumber (self)
 
def G (self)
 
def S (self)
 
def D (self)
 
def C (self)
 
def L (self)
 
def T (self)
 
def N (self)
 
def K (self)
 
def E (self)
 
def U (self)
 
def IsSpecialSource (self)
 
def SetOptionFileName (self, filename=None)
 
def DecayDescriptor (self)
 
def HasPythonCodeToInsert (self)
 
def PythonCodeToInsert (self)
 
def HasExtraOptions (self)
 
def ExtraOptions (self)
 
def HasDecayEngine (self)
 
def DecayEngine (self)
 
def HasDecayOptions (self)
 
def DecayOptions (self)
 
def HasParticleTable (self)
 
def ParticleTable (self)
 
def HasParticleValue (self)
 
def ParticleValue (self)
 
def HasConfiguration (self)
 
def Configuration (self)
 
def HasParticleType (self)
 
def ParticleType (self)
 
def HasMomentum (self)
 
def Momentum (self)
 
def HasMomentumRange (self)
 
def MomentumRange (self)
 
def NickName (self)
 
def Date (self)
 
def PhysicsWG (self)
 
def DecayName (self)
 
def Sample (self)
 
def Production (self)
 
def HeaderOptions (self)
 

Public Attributes

 DecayFileName
 name of decay file
 
 KeywordDictionary
 dictionary of keywords
 
 remove
 "remove file" flag
 
 OptionFile
 flag for existence of option file
 
 technology
 specify the langauge of the script
 

Static Public Attributes

list MandatoryKeywords
 list of mandatory keywords for file description More...
 
list OptionalKeywords
 list of optional keywords for file description More...
 

Detailed Description

Class to hold event type information.

Attributes:
     MandatoryKeywords list of mandatory keywords for file description
     OptionalKeywords  list of optional keywords for file description

Definition at line 233 of file CreateProdScripts.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  filename,
  remove,
  technology 
)
Constructor.

Attributes:
     DecayFileName     name of decay file
     KeywordDictionary dictionary of keywords
     remove            "remove file" flag - force removing the option file and create a new one
     OptionFile        flag for existence of option file
     technology        specify the langauge of the script

Definition at line 274 of file CreateProdScripts.py.

Member Function Documentation

◆ C()

def C (   self)
Returns the charm flag of even type.

Definition at line 430 of file CreateProdScripts.py.

◆ Configuration()

def Configuration (   self)
Returns configuration.

Definition at line 588 of file CreateProdScripts.py.

◆ D()

def D (   self)
Returns the decay flag of even type.

Definition at line 424 of file CreateProdScripts.py.

◆ Date()

def Date (   self)
Return date.

Definition at line 636 of file CreateProdScripts.py.

◆ DecayDescriptor()

def DecayDescriptor (   self)
Returns decay descriptor.

Definition at line 504 of file CreateProdScripts.py.

◆ DecayEngine()

def DecayEngine (   self)
Returns the decay engine.

Definition at line 540 of file CreateProdScripts.py.

◆ DecayName()

def DecayName (   self)
Return decay name string.

Definition at line 648 of file CreateProdScripts.py.

◆ DecayOptions()

def DecayOptions (   self)
Returns the decay options.

Definition at line 552 of file CreateProdScripts.py.

◆ DecodeDecayFile()

def DecodeDecayFile (   self)
Operates deconding of decay file.

Definition at line 297 of file CreateProdScripts.py.

◆ E()

def E (   self)
Returns the extra flag of even type.

Definition at line 460 of file CreateProdScripts.py.

◆ EventTypeNumber()

def EventTypeNumber (   self)
Returns event type number.

Definition at line 406 of file CreateProdScripts.py.

◆ ExtraOptions()

def ExtraOptions (   self)
Returns the extra options.

Definition at line 528 of file CreateProdScripts.py.

◆ G()

def G (   self)
Returns general flag of event type.

Definition at line 412 of file CreateProdScripts.py.

◆ HasConfiguration()

def HasConfiguration (   self)
Check if configuration is present in keyword dictionary.

Definition at line 582 of file CreateProdScripts.py.

◆ HasDecayEngine()

def HasDecayEngine (   self)
Check if decay engine has been specified.

Definition at line 534 of file CreateProdScripts.py.

◆ HasDecayOptions()

def HasDecayOptions (   self)
Check if decay options have been specified.

Definition at line 546 of file CreateProdScripts.py.

◆ HasExtraOptions()

def HasExtraOptions (   self)
Check if it has extra options.

Definition at line 522 of file CreateProdScripts.py.

◆ HasMomentum()

def HasMomentum (   self)
Check if momentum is present in keyword dictionary.

Definition at line 606 of file CreateProdScripts.py.

◆ HasMomentumRange()

def HasMomentumRange (   self)
Check if momentum range is present in keyword dictionary.

Definition at line 618 of file CreateProdScripts.py.

◆ HasParticleTable()

def HasParticleTable (   self)
Check whether particle table already exists.

Definition at line 558 of file CreateProdScripts.py.

◆ HasParticleType()

def HasParticleType (   self)
Check if Particle Type is present in keyword dictionary.

Definition at line 594 of file CreateProdScripts.py.

◆ HasParticleValue()

def HasParticleValue (   self)
Check if particle value parameter has been specified.

Definition at line 570 of file CreateProdScripts.py.

◆ HasPythonCodeToInsert()

def HasPythonCodeToInsert (   self)
Check if there is python code to be inserted.

Definition at line 510 of file CreateProdScripts.py.

◆ HeaderOptions()

def HeaderOptions (   self)
Write the header of the options file.

Definition at line 678 of file CreateProdScripts.py.

◆ IsSpecialSource()

def IsSpecialSource (   self)
Check whether it is a special source.

Definition at line 472 of file CreateProdScripts.py.

◆ K()

def K (   self)
Returns the neutral Kaons flag of even type.

Definition at line 454 of file CreateProdScripts.py.

◆ L()

def L (   self)
Returns the lepton flag of even type.

Definition at line 436 of file CreateProdScripts.py.

◆ Momentum()

def Momentum (   self)
Returns momentum.

Definition at line 612 of file CreateProdScripts.py.

◆ MomentumRange()

def MomentumRange (   self)
Returns momentum range.

Definition at line 624 of file CreateProdScripts.py.

◆ N()

def N (   self)
Returns the neutral flag of even type.

Definition at line 448 of file CreateProdScripts.py.

◆ NickName()

def NickName (   self)
Return decay NickName.

Definition at line 630 of file CreateProdScripts.py.

◆ ParticleTable()

def ParticleTable (   self)
Return particle table.

Definition at line 564 of file CreateProdScripts.py.

◆ ParticleType()

def ParticleType (   self)
Returns Particle Type.

Definition at line 600 of file CreateProdScripts.py.

◆ ParticleValue()

def ParticleValue (   self)
Returns particle value.

Definition at line 576 of file CreateProdScripts.py.

◆ PhysicsWG()

def PhysicsWG (   self)
Return mode WG.

Definition at line 642 of file CreateProdScripts.py.

◆ Production()

def Production (   self)
Checks for production algorithm.

Definition at line 669 of file CreateProdScripts.py.

◆ PythonCodeToInsert()

def PythonCodeToInsert (   self)
Returns the python code to be inserted.

Definition at line 516 of file CreateProdScripts.py.

◆ S()

def S (   self)
Returns selection flag of event type.

Definition at line 418 of file CreateProdScripts.py.

◆ Sample()

def Sample (   self)
Check if overriden.

Definition at line 654 of file CreateProdScripts.py.

◆ SetOptionFileName()

def SetOptionFileName (   self,
  filename = None 
)
Set name of option file.

Definition at line 480 of file CreateProdScripts.py.

◆ T()

def T (   self)
Returns the track flag of even type.

Definition at line 442 of file CreateProdScripts.py.

◆ U()

def U (   self)
Returns the user flag of even type.

Definition at line 466 of file CreateProdScripts.py.

◆ Validate()

def Validate (   self,
  obsoletes 
)
Check for the presence of mandatory keywords.

Definition at line 338 of file CreateProdScripts.py.

Member Data Documentation

◆ MandatoryKeywords

list MandatoryKeywords
static
Initial value:
= [
'EventType',
'Descriptor',
'NickName',
'Cuts',
'Documentation',
'PhysicsWG',
'Tested',
'Responsible',
'Email',
'Date',
]

list of mandatory keywords for file description

Definition at line 243 of file CreateProdScripts.py.

◆ OptionalKeywords

list OptionalKeywords
static
Initial value:
= [
'Sample',
'ExtraOptions',
'DecayOptions',
'DecayEngine',
'CutsOptions',
'Configuration',
'ParticleType',
'Momentum',
'MomentumRange',
'Id',
'Production',
'FullEventCuts',
'ParticleValue',
'ParticleTable',
'InsertPythonCode',
]

list of optional keywords for file description

Definition at line 256 of file CreateProdScripts.py.


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