public class TIData extends AbstractIntData
TIData
is an implementation of abstract class
AbstractIntData
that represents a TI trigger bit bank.AbstractIntData.IntBankDefinition
Modifier and Type | Field and Description |
---|---|
private static int |
BANK_SIZE_2015
The expected number of entries in the data bank for the 2015 data.
|
private static int |
BANK_SIZE_2016
The expected number of entries in the data bank for the 2016 data (after
unprescaled trigger bits were added).
|
static int |
BANK_TAG
The EvIO bank header tag for TI data banks.
|
private boolean |
calib |
private boolean |
calibUnprescaled |
private boolean |
hasUnprescaledTriggerBits |
private boolean |
pairs0 |
private boolean |
pairs0Unprescaled |
private boolean |
pairs1 |
private boolean |
pairs1Unprescaled |
private boolean |
pulser |
private boolean |
pulserUnprescaled |
private boolean |
singles0 |
private boolean |
singles0Unprescaled |
private boolean |
singles1 |
private boolean |
singles1Unprescaled |
private long |
time |
bank
Constructor and Description |
---|
TIData(org.lcsim.event.GenericObject tiData)
Creates a
TIData object from an existing LCIO
GenericObject . |
TIData(int[] bank)
Creates a
TIData bank from a raw EvIO data bank. |
Modifier and Type | Method and Description |
---|---|
protected void |
decodeData()
Parses the bank so the object can be used in analysis.
|
int |
getTag()
Returns the EvIO bank header tag expected for this data.
|
long |
getTime() |
boolean |
hasUnprescaledTriggerBits()
Indicates whether this TI data has unprescaled trigger bits.
|
boolean |
isCalibTrigger()
Indicates whether a cosmic trigger was registered.
|
boolean |
isCalibUnprescaledTrigger()
Indicates whether a cosmic (unprescaled) trigger was registered.
|
boolean |
isPair0Trigger()
Indicates whether a pair 0 trigger was registered.
|
boolean |
isPair0UnprescaledTrigger()
Indicates whether a pairs 0 (unprescaled) trigger was registered.
|
boolean |
isPair1Trigger()
Indicates whether a pair 1 trigger was registered.
|
boolean |
isPair1UnprescaledTrigger()
Indicates whether a pairs 1 (unprescaled) trigger was registered.
|
boolean |
isPulserTrigger()
Indicates whether a random/pulser trigger was registered.
|
boolean |
isPulserUnprescaledTrigger()
Indicates whether a random/pulser (unprescaled) trigger was registered.
|
boolean |
isSingle0Trigger()
Indicates whether a singles 0 trigger was registered.
|
boolean |
isSingle0UnprescaledTrigger()
Indicates whether a singles 0 (unprescaled) trigger was registered.
|
boolean |
isSingle1Trigger()
Indicates whether a singles 1 trigger was registered.
|
boolean |
isSingle1UnprescaledTrigger()
Indicates whether a singles 1 (unprescaled) trigger was registered.
|
getBank, getBank, getBankInt, getDoubleVal, getFloatVal, getIntVal, getNDouble, getNFloat, getNInt, getTag, isFixedSize
public static final int BANK_TAG
private static final int BANK_SIZE_2015
private static final int BANK_SIZE_2016
private long time
private boolean singles0
private boolean singles1
private boolean pairs0
private boolean pairs1
private boolean calib
private boolean pulser
private boolean hasUnprescaledTriggerBits
private boolean singles0Unprescaled
private boolean singles1Unprescaled
private boolean pairs0Unprescaled
private boolean pairs1Unprescaled
private boolean calibUnprescaled
private boolean pulserUnprescaled
public TIData(int[] bank)
TIData
bank from a raw EvIO data bank. It is
expected that the EvIO reader will verify that the bank tag is of the
appropriate type.bank
- - The EvIO data bank.public TIData(org.lcsim.event.GenericObject tiData)
TIData
object from an existing LCIO
GenericObject
.tiData
- - The source data bank object.protected final void decodeData()
AbstractIntData
decodeData
in class AbstractIntData
public int getTag()
AbstractIntData
getTag
in class AbstractIntData
int
primitive.public long getTime()
public boolean isSingle0Trigger()
true
if the trigger occurred, and
false
otherwise.public boolean isSingle1Trigger()
true
if the trigger occurred, and
false
otherwise.public boolean isPair0Trigger()
true
if the trigger occurred, and
false
otherwise.public boolean isPair1Trigger()
true
if the trigger occurred, and
false
otherwise.public boolean isCalibTrigger()
true
if the trigger occurred, and
false
otherwise.public boolean isPulserTrigger()
true
if the trigger occurred, and
false
otherwise.public boolean hasUnprescaledTriggerBits()
true
if the TI data has a fifth int
containing unprescaled trigger bits, and false
otherwise.public boolean isSingle0UnprescaledTrigger()
true
if the trigger occurred, and
false
otherwise. Throws a RuntimeException if this data does
not have unprescaled trigger bits.public boolean isSingle1UnprescaledTrigger()
true
if the trigger occurred, and
false
otherwise. Throws a RuntimeException if this data does
not have unprescaled trigger bits.public boolean isPair0UnprescaledTrigger()
true
if the trigger occurred, and
false
otherwise. Throws a RuntimeException if this data does
not have unprescaled trigger bits.public boolean isPair1UnprescaledTrigger()
true
if the trigger occurred, and
false
otherwise. Throws a RuntimeException if this data does
not have unprescaled trigger bits.public boolean isCalibUnprescaledTrigger()
true
if the trigger occurred, and
false
otherwise. Throws a RuntimeException if this data does
not have unprescaled trigger bits.public boolean isPulserUnprescaledTrigger()
true
if the trigger occurred, and
false
otherwise. Throws a RuntimeException if this data does
not have unprescaled trigger bits.Copyright © 2019. All rights reserved.