Package org.jlab.detector.serial
Class Occupancer.OccupanceTable
java.lang.Object
org.jlab.detector.serial.Occupancer.OccupanceTable
- Enclosing class:
Occupancer
-
Constructor Summary
ConstructorsConstructorDescriptionOccupanceTable(String hitBank) A 3- or 4-index table, depending on "order".OccupanceTable(String hitBank, int indexCount) An N-index table. -
Method Summary
Modifier and TypeMethodDescriptionorg.jlab.jnp.hipo4.data.Bankcreate(long events) Get an occupancy bank, normalized by number of events.final voidfill(int... index) Fill the occupancy table.voidfill(org.jlab.jnp.hipo4.data.Event event) Fill occupancy table from a user-defined bank.final IndexedTablegetOccupancy(long events) Get the occupancy table, normalized by number of events.final IndexedTablegetTable()final voidreset()Zero the occupancy table.
-
Constructor Details
-
OccupanceTable
A 3- or 4-index table, depending on "order".- Parameters:
hitBank- name of the hit bank
-
OccupanceTable
An N-index table.- Parameters:
hitBank- name of the hit bankindexCount- number of inidices in the hit bank
-
-
Method Details
-
getTable
-
reset
public final void reset()Zero the occupancy table. -
getOccupancy
Get the occupancy table, normalized by number of events.- Parameters:
events-- Returns:
-
fill
public final void fill(int... index) Fill the occupancy table.- Parameters:
index-
-
fill
public void fill(org.jlab.jnp.hipo4.data.Event event) Fill occupancy table from a user-defined bank.- Parameters:
event-
-
create
public org.jlab.jnp.hipo4.data.Bank create(long events) Get an occupancy bank, normalized by number of events.- Parameters:
events-- Returns:
-