A class to store Bin related features and function.
|
|
__init__(self,
boundaries=(0.0, 0.0),
wgts=None,
n_entries=0)
Initializes an empty bin, necessarily with boundaries. |
source code
|
|
|
|
|
|
|
get_weight(self,
key='central')
Accesses a specific weight from this bin. |
source code
|
|
|
|
set_weight(self,
wgt,
key='central')
Accesses a specific weight from this bin. |
source code
|
|
|
|
addEvent(self,
weights=1.0)
Add an event to this bin. |
source code
|
|
|
|
|
|
|
alter_weights(self,
func)
Apply a given function to all bin weights. |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__sizeof__,
__str__,
__subclasshook__
|