Package angleVetoes
Class AngleVetoParameters
java.lang.Object
angleVetoes.AngleVetoParameters
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
public class AngleVetoParameters
extends Object
implements Serializable, Cloneable, ManagedParameters
PArameters controlling angle vetoes for a particular detector.
- Author:
- Douglas Gillespie
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a veto to the list.clone()
Get a set of data that describes all of the parameters in a classgetVeto
(int index) Get an angle veto from the listint
Get a count of the number of angle vetoes in the listvoid
removeVeto
(int index) Remove a veto from the listboolean
removeVeto
(AngleVeto angleVeto) Remove a veto from the list.void
replaceVeto
(int index, AngleVeto newOne) Replace a veto in the list at given index.
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
AngleVetoParameters
public AngleVetoParameters()
-
-
Method Details
-
getVetoCount
public int getVetoCount()Get a count of the number of angle vetoes in the list- Returns:
- angle veto count.
-
getVeto
Get an angle veto from the list- Parameters:
index
- index of veto to retreive.- Returns:
- Angle veto reference
-
addVeto
Add a veto to the list.- Parameters:
angleVeto
- new angle veto
-
removeVeto
public void removeVeto(int index) Remove a veto from the list- Parameters:
index
- index of veto to remove
-
removeVeto
Remove a veto from the list.- Parameters:
angleVeto
- reference to veto to remove- Returns:
- true ifveto was found and removed from list
-
replaceVeto
Replace a veto in the list at given index.- Parameters:
index
- index of veto to replacenewOne
- new veto
-
clone
-
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-