Belle II Software  release-08-01-10
PythonVariableManager Class Reference

Public Member Functions

def getVariable (self, *args)
 
def getVariables (self, *args)
 
def addAlias (self, alias, variable)
 
def printAliases (self)
 
def clearAliases (self)
 
def resolveAlias (self, alias)
 
def addCollection (self, *args)
 
def getCollection (self, collection)
 
def resolveCollections (self, *args)
 
def checkDeprecatedVariable (self, variable)
 
def evaluate (self, variable, particle)
 
def getNames (self)
 
def getAliasNames (self)
 
def assertValidName (self, variable)
 

Private Member Functions

def _instance (self)
 

Detailed Description

Wrapper around the variable manager class.
This is necessary for avoiding to import ROOT globally when 'variables' is imported.

Definition at line 13 of file __init__.py.

Member Function Documentation

◆ _instance()

def _instance (   self)
private
Return an instance to the variable manager.

Definition at line 20 of file __init__.py.

20  def _instance(self):
21  '''
22  Return an instance to the variable manager.
23  '''
24  # Always avoid the top-level 'import ROOT'.
25  import ROOT # noqa
26  instance = ROOT.Belle2.Variable.Manager.Instance()
27  return instance
28 

◆ addAlias()

def addAlias (   self,
  alias,
  variable 
)
Wrapper around Manager::addAlias(const std::string& alias, const std::string& variable).

Definition at line 45 of file __init__.py.

◆ addCollection()

def addCollection (   self,
args 
)
Wrapper around Manager::addCollection(const std::string& collection, const std::vector<std::string>& variables)

Definition at line 73 of file __init__.py.

◆ assertValidName()

def assertValidName (   self,
  variable 
)
Wrapper around Manager::assertValidName(const std::string& name).

Definition at line 122 of file __init__.py.

◆ checkDeprecatedVariable()

def checkDeprecatedVariable (   self,
  variable 
)
Wrapper around Manager::checkDeprecatedVariable(const std::string& name).

Definition at line 94 of file __init__.py.

◆ clearAliases()

def clearAliases (   self)
Wrapper around Manager::clearAliases().

Definition at line 59 of file __init__.py.

◆ evaluate()

def evaluate (   self,
  variable,
  particle 
)
Wrapper around Manager::evaluate(const std::string& varName, const Particle* p).

Definition at line 101 of file __init__.py.

◆ getAliasNames()

def getAliasNames (   self)
Wrapper around Manager::getAliasNames().

Definition at line 115 of file __init__.py.

◆ getCollection()

def getCollection (   self,
  collection 
)
Wrapper around Manager::getCollection(const std::string& collection).

Definition at line 80 of file __init__.py.

◆ getNames()

def getNames (   self)
Wrapper around Manager::getNames().

Definition at line 108 of file __init__.py.

◆ getVariable()

def getVariable (   self,
args 
)
Wrapper around Manager::getVariable(std::string name) and
Manager::getVariable(const std::string& functionName, const std::vector<std::string>& functionArguments).

Definition at line 29 of file __init__.py.

◆ getVariables()

def getVariables (   self,
args 
)
Wrapper around Manager::getVariables(const std::vector<std::string>& variables) and
Manager::getVariables().

Definition at line 37 of file __init__.py.

◆ printAliases()

def printAliases (   self)
Wrapper around Manager::printAliases().

Definition at line 52 of file __init__.py.

◆ resolveAlias()

def resolveAlias (   self,
  alias 
)
Wrapper around Manager::resolveAlias(const std::string& alias).

Definition at line 66 of file __init__.py.

◆ resolveCollections()

def resolveCollections (   self,
args 
)
Wrapper around Manager::resolveCollections(const std::vector<std::string>& variables).

Definition at line 87 of file __init__.py.


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