public class SSPPairTrigger extends SSPNumberedTrigger
SSPPairTrigger
represents a pair trigger reported
by the SSP and also handles parsing the trigger bits.data, time, type
Constructor and Description |
---|
SSPPairTrigger(boolean isFirstTrigger,
int time,
int data)
Instantiates a new
SSPPairTrigger . |
Modifier and Type | Method and Description |
---|---|
int |
getTriggerNumber()
Gets the number of the trigger which generated this object.
|
boolean |
isFirstTrigger()
Indicates whether the trigger was reported by the first of the
singles triggers.
|
boolean |
isSecondTrigger()
Indicates whether the trigger was reported by the second of
the singles triggers.
|
boolean |
isTrigger0()
Indicates whether the trigger was reported by the trigger number
0 trigger.
|
boolean |
isTrigger1()
Indicates whether the trigger was reported by the trigger number
1 trigger.
|
boolean |
passCutCoplanarity()
Indicates whether the trigger passed the pair coplanarity cut
or not.
|
boolean |
passCutEnergyDifference()
Indicates whether the trigger passed the pair energy difference
cut or not.
|
boolean |
passCutEnergySlope()
Indicates whether the trigger passed the pair energy slope cut
or not.
|
boolean |
passCutEnergySum()
Indicates whether the trigger passed the pair energy sum cut
or not.
|
String |
toString() |
getData, getTime, getType
public SSPPairTrigger(boolean isFirstTrigger, int time, int data)
SSPPairTrigger
.isFirstTrigger
- - Indicates whether the first or second
trigger produced this trigger.time
- - The time at which the trigger occurred.data
- - The trigger data associated with the trigger.public int getTriggerNumber()
SSPNumberedTrigger
getTriggerNumber
in class SSPNumberedTrigger
0
or 1.public boolean isTrigger0()
SSPNumberedTrigger
isTrigger0
in class SSPNumberedTrigger
true
if the trigger was reported by the
trigger number 0 trigger and false
if by either
the trigger number 1 or an unknown trigger.public boolean isTrigger1()
SSPNumberedTrigger
isTrigger1
in class SSPNumberedTrigger
true
if the trigger was reported by the
trigger number 1 trigger and false
if by either
the trigger number 0 or an unknown trigger.public boolean isFirstTrigger()
SSPNumberedTrigger
isFirstTrigger
in class SSPNumberedTrigger
true
if the trigger was reported by the
first trigger and false
if it was reported by the
second trigger.public boolean isSecondTrigger()
SSPNumberedTrigger
isSecondTrigger
in class SSPNumberedTrigger
true
if the trigger was reported by the
second trigger and false
if it was reported by
the first trigger.public boolean passCutEnergySum()
true
if the cut passed and
false
otherwise.public boolean passCutEnergyDifference()
true
if the cut passed and
false
otherwise.public boolean passCutEnergySlope()
true
if the cut passed and
false
otherwise.public boolean passCutCoplanarity()
true
if the cut passed and
false
otherwise.Copyright © 2019. All rights reserved.