class yoda::search::PointMatcher
yoda::search::PointMatcher
Inherits from object, object
Public Functions
Name | |
---|---|
def | set_patt(self self, patt patt) |
def | match_path(self self, path path) |
def | search_path(self self, path path) |
def | match_pos(self self, p p) |
def | set_patt(self self, patt patt) |
def | match_path(self self, path path) |
def | search_path(self self, path path) |
def | match_pos(self self, p p) |
Public Attributes
Name | |
---|---|
re_patt | |
patt Strip separated comments. | |
path | |
indextype | |
index |
Detailed Description
class yoda::search::PointMatcher;
\
System for selecting subsets of bins based on a search range
syntax extended from Professor weight files:
Path structure: /path/parts/to/histo[syst_variation]@xmin:xmax
or: /path/parts/to/histo[syst_variation]#nmin:nmax
TODO: Extend to multi-dimensional ranges i.e. @xmin:xmax,#nymin:nymax,...
Public Functions Documentation
function set_patt
def set_patt(
self self,
patt patt
)
function match_path
def match_path(
self self,
path path
)
function search_path
def search_path(
self self,
path path
)
function match_pos
def match_pos(
self self,
p p
)
Decide if a given point p is in the match range.
p must be an object with attrs xmin, xmax, n
TODO: Use open ranges to include underflow and overflow
TODO: Allow negative indices in Python style, and use index=-1
to mean the N+1 index needed to include the last bin without
picking up the overflow, too.
TODO: Extension to multiple dimensions
function set_patt
def set_patt(
self self,
patt patt
)
function match_path
def match_path(
self self,
path path
)
function search_path
def search_path(
self self,
path path
)
function match_pos
def match_pos(
self self,
p p
)
Decide if a given point p is in the match range.
p must be an object with attrs xmin, xmax, n
TODO: Use open ranges to include underflow and overflow
TODO: Allow negative indices in Python style, and use index=-1
to mean the N+1 index needed to include the last bin without
picking up the overflow, too.
TODO: Extension to multiple dimensions
Public Attributes Documentation
variable re_patt
re_patt;
variable patt
patt;
Strip separated comments.
variable path
path;
variable indextype
indextype;
variable index
index;
Updated on 2022-08-08 at 20:05:55 +0100