Belle II Software  release-08-01-10
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 235 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 276 of file CreateProdScripts.py.

Member Function Documentation

◆ C()

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

Definition at line 442 of file CreateProdScripts.py.

◆ Configuration()

def Configuration (   self)
Returns configuration.

Definition at line 601 of file CreateProdScripts.py.

◆ D()

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

Definition at line 436 of file CreateProdScripts.py.

◆ Date()

def Date (   self)
Return date.

Definition at line 649 of file CreateProdScripts.py.

◆ DecayDescriptor()

def DecayDescriptor (   self)
Returns decay descriptor.

Definition at line 517 of file CreateProdScripts.py.

◆ DecayEngine()

def DecayEngine (   self)
Returns the decay engine.

Definition at line 553 of file CreateProdScripts.py.

◆ DecayName()

def DecayName (   self)
Return decay name string.

Definition at line 661 of file CreateProdScripts.py.

◆ DecayOptions()

def DecayOptions (   self)
Returns the decay options.

Definition at line 565 of file CreateProdScripts.py.

◆ DecodeDecayFile()

def DecodeDecayFile (   self)
Operates deconding of decay file.

Definition at line 299 of file CreateProdScripts.py.

◆ E()

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

Definition at line 472 of file CreateProdScripts.py.

◆ EventTypeNumber()

def EventTypeNumber (   self)
Returns event type number.

Definition at line 418 of file CreateProdScripts.py.

◆ ExtraOptions()

def ExtraOptions (   self)
Returns the extra options.

Definition at line 541 of file CreateProdScripts.py.

◆ G()

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

Definition at line 424 of file CreateProdScripts.py.

◆ HasConfiguration()

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

Definition at line 595 of file CreateProdScripts.py.

◆ HasDecayEngine()

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

Definition at line 547 of file CreateProdScripts.py.

◆ HasDecayOptions()

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

Definition at line 559 of file CreateProdScripts.py.

◆ HasExtraOptions()

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

Definition at line 535 of file CreateProdScripts.py.

◆ HasMomentum()

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

Definition at line 619 of file CreateProdScripts.py.

◆ HasMomentumRange()

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

Definition at line 631 of file CreateProdScripts.py.

◆ HasParticleTable()

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

Definition at line 571 of file CreateProdScripts.py.

◆ HasParticleType()

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

Definition at line 607 of file CreateProdScripts.py.

◆ HasParticleValue()

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

Definition at line 583 of file CreateProdScripts.py.

◆ HasPythonCodeToInsert()

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

Definition at line 523 of file CreateProdScripts.py.

◆ HeaderOptions()

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

Definition at line 691 of file CreateProdScripts.py.

◆ IsSpecialSource()

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

Definition at line 484 of file CreateProdScripts.py.

◆ K()

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

Definition at line 466 of file CreateProdScripts.py.

◆ L()

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

Definition at line 448 of file CreateProdScripts.py.

◆ Momentum()

def Momentum (   self)
Returns momentum.

Definition at line 625 of file CreateProdScripts.py.

◆ MomentumRange()

def MomentumRange (   self)
Returns momentum range.

Definition at line 637 of file CreateProdScripts.py.

◆ N()

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

Definition at line 460 of file CreateProdScripts.py.

◆ NickName()

def NickName (   self)
Return decay NickName.

Definition at line 643 of file CreateProdScripts.py.

◆ ParticleTable()

def ParticleTable (   self)
Return particle table.

Definition at line 577 of file CreateProdScripts.py.

◆ ParticleType()

def ParticleType (   self)
Returns Particle Type.

Definition at line 613 of file CreateProdScripts.py.

◆ ParticleValue()

def ParticleValue (   self)
Returns particle value.

Definition at line 589 of file CreateProdScripts.py.

◆ PhysicsWG()

def PhysicsWG (   self)
Return mode WG.

Definition at line 655 of file CreateProdScripts.py.

◆ Production()

def Production (   self)
Checks for production algorithm.

Definition at line 682 of file CreateProdScripts.py.

◆ PythonCodeToInsert()

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

Definition at line 529 of file CreateProdScripts.py.

◆ S()

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

Definition at line 430 of file CreateProdScripts.py.

◆ Sample()

def Sample (   self)
Check if overriden.

Definition at line 667 of file CreateProdScripts.py.

◆ SetOptionFileName()

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

Definition at line 492 of file CreateProdScripts.py.

◆ T()

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

Definition at line 454 of file CreateProdScripts.py.

◆ U()

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

Definition at line 478 of file CreateProdScripts.py.

◆ Validate()

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

Definition at line 340 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 245 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 258 of file CreateProdScripts.py.


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