Package madgraph :: Package various :: Module lhe_parser :: Class Event
[hide private]
[frames] | no frames]

Class Event

source code

object --+    
         |    
      list --+
             |
            Event

Class storing a single event information (list of particles + global information)

Instance Methods [hide private]
new empty list
__init__(self, text=None)
The initialization of an empty Event (or one associate to a text file)
source code
 
parse(self, text)
Take the input file and create the structured information
source code
 
assign_mother(self)
convert the number in actual particle
source code
 
rescale_weights(self, ratio)
change all the weights by a given ratio
source code
 
reorder_mother_child(self)
check and correct the mother/child position.
source code
 
parse_reweight(self)
Parse the re-weight information in order to return a dictionary {key: value}.
source code
 
parse_nlo_weight(self, real_type=(1, 11), threshold=None) source code
 
rewrite_nlo_weight(self, wgt=None)
get the string associate to the weight
source code
 
parse_lo_weight(self) source code
 
parse_matching_scale(self)
Parse the line containing the starting scale for the shower
source code
 
parse_syscalc_info(self)
parse the flag for syscalc between <mgrwt></mgrwt>...
source code
 
add_decay_to_particle(self, position, decay_event)
define the decay of the particle id by the event pass in argument
source code
 
add_decays(self, pdg_to_decay)
use auto-recursion
source code
 
remove_decay(self, pdg_code=0, event_id=None) source code
 
get_decay(self, pdg_code=0, event_id=None) source code
 
check(self)
check various property of the events
source code
 
assign_scale_line(self, line)
read the line corresponding to global event line format of the line is: Nexternal IEVENT WEIGHT SCALE AEW AS
source code
 
get_tag_and_order(self)
Return the unique tag identifying the SubProcesses for the generation.
source code
 
change_ext_mass(self, new_param_card)
routine to rescale the mass via RAMBO method.
source code
 
change_sqrts(self, new_sqrts)
routine to rescale the momenta to change the invariant mass
source code
 
get_helicity(self, get_order, allow_reversed=True)
return a list with the helicities in the order asked for
source code
 
check_color_structure(self)
check the validity of the color structure
source code
 
__eq__(self, other)
two event are the same if they have the same momentum.
source code
 
__str__(self, event_id='')
return a correctly formatted LHE event
source code
 
get_momenta(self, get_order, allow_reversed=True)
return the momenta vector in the order asked for
source code
 
get_scale(self, type) source code
 
get_ht_scale(self, prefactor=1) source code
 
get_et_scale(self, prefactor=1) source code
 
get_sqrts_scale(self, prefactor=1) source code
 
get_momenta_str(self, get_order, allow_reversed=True)
return the momenta str in the order asked for
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Static Methods [hide private]
 
mass_shuffle(momenta, sqrts, new_mass, new_sqrts=None)
use the RAMBO method to shuffle the PS.
source code
Class Variables [hide private]
  warning_order = True

Inherited from list: __hash__

Properties [hide private]
  sqrts

Inherited from object: __class__

Method Details [hide private]

__init__(self, text=None)
(Constructor)

source code 

The initialization of an empty Event (or one associate to a text file)

Returns: new empty list
Overrides: object.__init__

reorder_mother_child(self)

source code 

check and correct the mother/child position. only correct one order by call (but this is a recursive call)

parse_reweight(self)

source code 

Parse the re-weight information in order to return a dictionary {key: value}. If no group is define group should be ''

parse_syscalc_info(self)

source code 
parse the flag for syscalc between <mgrwt></mgrwt>
        <mgrwt>
<rscale>  3 0.26552898E+03</rscale>
<asrwt>0</asrwt>
<pdfrwt beam="1">  1       21 0.14527945E+00 0.26552898E+03</pdfrwt>
<pdfrwt beam="2">  1       21 0.15249110E-01 0.26552898E+03</pdfrwt>
<totfact> 0.10344054E+04</totfact>
</mgrwt>
        

get_tag_and_order(self)

source code 

Return the unique tag identifying the SubProcesses for the generation. Usefull for program like MadSpin and Reweight module.

mass_shuffle(momenta, sqrts, new_mass, new_sqrts=None)
Static Method

source code 

use the RAMBO method to shuffle the PS. initial sqrts is preserved.

change_ext_mass(self, new_param_card)

source code 

routine to rescale the mass via RAMBO method. no internal mass preserve. sqrts is preserve (RAMBO algo)

__eq__(self, other)
(Equality operator)

source code 

two event are the same if they have the same momentum. other info are ignored

Overrides: list.__eq__

__str__(self, event_id='')
(Informal representation operator)

source code 

return a correctly formatted LHE event

Overrides: object.__str__

Property Details [hide private]

sqrts

Get Method:
unreachable.sqrts(self)