public class StructureFinder
extends java.lang.Object
List<BaseStructure> getMatchingStructures(IEvioFilter)
method on the provided EvioEvent
object by constructing the
appropriate filter.Constructor and Description |
---|
StructureFinder() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<BaseStructure> |
getMatchingBanks(BaseStructure structure,
int tag,
int number)
Collect all the banks in an event that match a provided tag and number in their header.
|
static java.util.List<BaseStructure> |
getMatchingChild(BaseStructure structure,
java.lang.String childName,
INameProvider dictionary)
Collect all structures in an event who has a child with the given dictionary name.
|
static java.util.List<BaseStructure> |
getMatchingNonBanks(BaseStructure structure,
int tag)
Collect all the non-banks (i.e., Segments and TagSegments) in an event that match
a provided tag in their header.
|
static java.util.List<BaseStructure> |
getMatchingParent(BaseStructure structure,
java.lang.String parentName,
INameProvider dictionary)
Collect all structures in an event whose parent has the given dictionary name.
|
static java.util.List<BaseStructure> |
getMatchingStructures(BaseStructure structure,
IEvioFilter filter)
Collect all the structures in an event that pass a filter.
|
static java.util.List<BaseStructure> |
getMatchingStructures(BaseStructure structure,
int tag)
Collect all the structures in an event that match a provided tag in their header.
|
static java.util.List<BaseStructure> |
getMatchingStructures(BaseStructure structure,
java.lang.String name,
INameProvider dictionary)
Collect all structures in an event that match the given dictionary name.
|
public static java.util.List<BaseStructure> getMatchingStructures(BaseStructure structure, IEvioFilter filter)
structure
- the event/bank/seg/tagseg being queried.filter
- the filter that must be passed. If null
, this will return all the structures.public static java.util.List<BaseStructure> getMatchingBanks(BaseStructure structure, int tag, int number)
structure
- the event/bank/seg/tagseg being queried.tag
- the tag to match.number
- the number to match.public static java.util.List<BaseStructure> getMatchingStructures(BaseStructure structure, int tag)
structure
- the event/bank/seg/tagseg being queried.tag
- the tag to match.public static java.util.List<BaseStructure> getMatchingNonBanks(BaseStructure structure, int tag)
structure
- the event/bank/seg/tagseg being queried.tag
- the tag to match.public static java.util.List<BaseStructure> getMatchingStructures(BaseStructure structure, java.lang.String name, INameProvider dictionary) throws EvioException
structure
- the event/bank/seg/tagseg being queried.name
- dictionary name of structures to be returned.dictionary
- dictionary to be used; if null, an existing global dictionary will be used.EvioException
- if no dictionary is definedpublic static java.util.List<BaseStructure> getMatchingParent(BaseStructure structure, java.lang.String parentName, INameProvider dictionary) throws EvioException
structure
- the event/bank/seg/tagseg being queried.parentName
- dictionary name of parent of structures to be returned.dictionary
- dictionary to be used; if null, an existing global dictionary will be used.EvioException
- if no dictionary is definedpublic static java.util.List<BaseStructure> getMatchingChild(BaseStructure structure, java.lang.String childName, INameProvider dictionary) throws EvioException
structure
- the event/bank/seg/tagseg being queried.childName
- dictionary name of a child of structures to be returned.dictionary
- dictionary to be used; if null, an existing global dictionary will be used.EvioException
- if no dictionary is defined