public interface IEvioFilter
IEvioFilter myFilter = new IEvioFilter() { public boolean accept(StructureType structureType, IEvioStructure structure) { return (structure.getHeader().getTag() == 400); } }; EventParser.getInstance().setEvioFilter(myFilter);
Modifier and Type | Method and Description |
---|---|
boolean |
accept(StructureType structureType,
IEvioStructure structure)
Accept or reject the given structure.
|
boolean accept(StructureType structureType, IEvioStructure structure)
structureType
- the structure type, a StructureType
enum, of the structure
that was just found, e.g., StructureType.BANK
.structure
- the structure that was just found. From its header the tag, num, length,
and data type are available. The application can filter based on those
quantities or on the data itself.true
if the structure passes the filter and should be given to the listeners.StructureType