Bases: smodels.theory.printer.Printer
Class to store a efficiency map-type of analysis. Stores the basic analysis info and contains a method for obtaining the efficiency maps from the database.
Variables: |
|
---|
Bases: smodels.theory.printer.Printer
Class to store one upper limit-type analysis. Stores the conditions and the elements constrained by the analysis as well as basic analysis info.
Variables: |
|
---|
Select data preparation method through dynamic binding.
Parameters: | outputLevel – general control for the output depth to be printed (0 = no output, 1 = basic output, 2 = detailed output,... |
---|
Most analyses include assumptions about the masses of the elements appearing in their constraints. This method returns a string describing this condition
Returns: | string describing branch condition (from the branchcondition field) or None if no condition is found |
---|
Define the auxiliary greater function.
Return a number between 0 and 1 depending on how much it is violated (0 = A > B, 1 = A << B).
Returns: | XSectioList object with the values for each label. |
---|
Define the auxiliar similar function.
Return the maximum relative difference between any element weights of the list, normalized to [0,1].
Returns: | XSectionList object with the values for each label. |
---|
Define distance between two mass positions in upper limit space. The distance is defined as d = 2*|xmass1-xmass2|/(xmass1+xmass2).
Parameters: |
|
---|---|
Returns: | relative mass distance in upper limit space |
Compute the average mass of massList according to method.
If method=weighted but weights were not properly defined, switch method to harmonic. If massList contains a zero mass, switch method to mean.
Parameters: |
|
---|
Bases: object
An instance of this class represents a branch. A branch-element can be constructed from a string (e.g., (‘[b,b],[W]’).
Variables: |
|
---|
Generate a list of all new branches generated by the 1-step cascade decay of the current branch daughter.
Parameters: |
|
---|---|
Returns: | list of extended branches (Branch objects). Empty list if daughter is stable or if daughterID was not defined. |
Returns the branch length (= number of R-odd masses).
Returns: | length of branch (number of cascade decay steps) |
---|
Compares two branches. If particles are similar and masses are equal, return True. Otherwise, return False.
Parameters: |
|
---|---|
Returns: | True if branches are equal (particles and masses match); False otherwise. |
Decay all branches from branchList until all unstable intermediate states have decayed.
Parameters: |
|
---|---|
Returns: | list of branches (Branch objects) |
Bases: object
An instance of this class represents a cluster. This class is used to store the relevant information about a cluster of elements and to manipulate this information.
Variables: | elements – list of elements in the cluster (Element objects) |
---|
Bases: object
An instance of this class represents a cluster storing element indices. This auxiliary class is used to store element indices and positions in upper limit space. It is only used by the clustering algorithm.
Variables: |
|
---|
Bases: object
An instance of this class represents a cross-section.
This class is used to store the information of a single cross-section (value, paritcle ids, center of mass, order and label).
order = 0 (LO), 1 (NLO) or 2 (NLL).
Bases: object
An instance of this class represents information regarding a cross-section.
This class is used to store information of a cross-section (center of mass, order and label).
Bases: object
An instance of this class represents a list of cross-sections.
This class is used to store a list of cross-sections.
Add a new list of cross-sections.
If the new cross-sections already appear (have same order and sqrts), add its value to the original value, otherwise append it to the list. The particle IDs are ignored when adding cross-sections. Hence, they are set to (None, None) if any cross-sections are combined.
Convert the list of XSection objects to a nested dictionary.
First level keys are the particles IDs (if groupBy == pids) or labels (if groupBy == labels) and values are the cross-section labels or particle IDs and the cross-section value.
Obtain cross-sections from input LHE file.
Parameters: |
|
---|---|
Returns: | a XSectionList object |
Obtain cross-sections for pair production of R-odd particles from input SLHA file. The default unit for cross-section is pb.
Parameters: |
|
---|---|
Returns: | a XSectionList object |
Bases: smodels.theory.printer.Printer
An instance of this class represents an element. This class possesses a pair of branches and the element weight (cross-section * BR).
Variables: |
|
---|
Check if the particles defined in the element exist and are consistent with the element info.
Returns: | True if the element is consistent. Print error message and exits otherwise. |
---|
Combine mother elements from self and el2 into self
Parameters: | el2 – element (Element Object) |
---|
Keep compressing the original element and the derived ones till they can be compressed no more.
Parameters: |
|
---|---|
Returns: | list with the compressed elements (Element objects) |
Create a copy of self. Faster than deepcopy.
Returns: | copy of element (Element object) |
---|
Select data preparation method through dynamic binding.
Parameters: | outputLevel – general control for the output depth to be printed (0 = no output, 1 = basic output, 2 = detailed output,... |
---|
Get a pair of daughter IDs (PDGs of the last intermediate state appearing the cascade decay). Can be None, if the element does not have a definite daughter.
Returns: | list of PDG ids |
---|
Get topology info from particle string.
Returns: | dictionary containing vertices and number of final states information |
---|
Get a pair of mother IDs (PDG ids of the primary mother intermediate state). Can be None, if the element does not have a definite mother.
Returns: | list of PDG ids |
---|
Check if the element topology matches any of the topologies in the element list.
Parameters: | elementList – list of elements (Element objects) |
---|---|
Returns: | True, if element topology has a match in the list, False otherwise. |
Perform invisible compression.
Returns: | compressed copy of the element, if element ends with invisible particles; None, if compression is not possible |
---|
Compare two Elements for equality.
Parameters: |
|
---|---|
Returns: | True, if all masses and particles are equal; False, else; |
Check if the element is present in the element list.
:parameter If igmass == False also check if the analysis has the element mass array.
Perform mass compression.
Parameters: | minmassgap – value (in GeV) of the maximum mass difference for compression (if mass difference < minmassgap -> perform mass compression) |
---|---|
Returns: | compressed copy of the element, if two masses in this element are degenerate; None, if compression is not possible; |
Compare two Elements for matching particles.
Parameters: |
|
---|---|
Returns: | True, if particles match; False, else; |
Set the element masses to the input mass array.
Parameters: |
|
---|
Perform LHE-based decomposition.
Parameters: |
|
---|---|
Returns: | list of topologies (TopologyList object) |
Bases: object
An instance of this class represents a reader for LHE files.
Parse instring and return a list of elements appearing in instring.
instring can also be a list of strings.
Returns: | list of elements appearing in instring in string format |
---|
Convert pdg number to particle name according to the dictionaries rOdd and rEven.
Returns: | particle name (e.g. gluino, mu-, ...) |
---|
Convert a name to the pdg number according to the dictionaries rOdd and rEven.
Returns: | particle pdg; None, if name could not be resolved |
---|
Compares 2 particle names or 2 nested name arrays. Allows for dictionary labels (Ex: L = l, l+ = l, l = l-,...). For the last nested level ignore particle ordering.
Parameters: |
|
---|---|
Returns: | boolean |
Bases: object
Printer class for defining specific print options and format for objects.
Format data of the derived object.
Has to be implemented in the derived object. The real implementation is selected through dynamic binding.
Raises: | NotImplementedError |
---|
Format data of to print an element object.
Parameters: | outputLevel – general control for the output depth to be printed (0 = no output, 1 = basic output, 2 = detailed output,...) |
---|
Format data of missing topology list.
Parameters: | outputLevel – general control for the output depth to be printed (0 = no output, 1 = basic output, 2 = detailed output,...) |
---|
Format data of the final output object.
Parameters: | outputLevel – general control for the output depth to be printed (0 = no output, 1 = basic output, 2 = detailed output,...) |
---|
Format data of the output status object.
Parameters: | outputLevel – general control for the output depth to be printed (0 = no output, 1 = basic output, 2 = detailed output,...) |
---|
Format data of a TheoryPrediction object.
Parameters: | outputLevel – general control for the output depth to be printed (0 = no output, 1 = basic output, 2 = detailed output,...) |
---|
Format data of to print Global topologies object.
Parameters: | outputLevel – general control for the output depth to be printed (0 = no output, 1 = basic output, 2 = detailed output,...) |
---|
Format data for a ULanalysis object.
Parameters: | outputLevel – general control for the output depth to be printed (0 = no output, 1 = basic output, 2 = detailed output,...) |
---|
Print the content of the data structure to the target.
Parameters: |
|
---|---|
Returns: | None |
Perform SLHA-based decomposition.
Parameters: |
|
---|---|
Returns: | list of topologies (TopologyList object) |
Bases: object
An instance of this class represents the results of the theory prediction for an analysis.
Variables: |
|
---|
Bases: smodels.theory.printer.Printer
An instance of this class represents a collection of theory prediction objects.
Variables: | _theoryPredictions – list of TheoryPrediction objects |
---|
Compute theory predictions for the given analysis, using the list of elements in smsTopList. Collect elements and efficiencies, combine the masses (if needed) and compute the conditions (if existing).
Parameters: |
|
---|---|
Returns: | list of TheoryPrediction objects |
Bases: object
An instance of this class represents a topology.
Variables: |
|
---|
Add an Element object to the elementList.
For all the pre-existing elements, which match the new element, add weight. If no pre-existing elements match the new one, add it to the list. When comparing elements, try both branch orderings.
Parameters: | newelement – element to be added (Element object) |
---|---|
Returns: | True, if the element was added. False, otherwise |
Check if the all the elements in elementList are consistent with the topology (same number of vertices and final states)
Returns: | True if all the elements are consistent. Print error message and exits otherwise. |
---|
Create a detailed description of the topology.
Returns: | list of strings with a description of the topology |
---|
Get list of elements of the topology.
Returns: | elementList (list of Element objects) |
---|
Return the sum of all elements weights.
Returns: | sum of weights of all elements (XSection object) |
---|
Compare two topologies. Two topologies are equal if they have the same number of vertices and final states (in each vertex).
Parameters: |
|
---|---|
Returns: | True, if both topologies equal; False, otherwise |
Bases: smodels.theory.printer.Printer
An instance of this class represents an iterable collection of topologies.
Variables: | topos – list of topologies (Topology objects) |
---|
Check if elements in newTopology matches an entry in self.topos.
If it does, add weight. If the same topology exists, but not the same element, add element. If neither element nor topology exist, add the new topology and all its elements.