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 Details

  • 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

      public AngleVeto getVeto(int index)
      Get an angle veto from the list
      Parameters:
      index - index of veto to retreive.
      Returns:
      Angle veto reference
    • addVeto

      public void addVeto(AngleVeto angleVeto)
      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

      public boolean removeVeto(AngleVeto angleVeto)
      Remove a veto from the list.
      Parameters:
      angleVeto - reference to veto to remove
      Returns:
      true ifveto was found and removed from list
    • replaceVeto

      public void replaceVeto(int index, AngleVeto newOne)
      Replace a veto in the list at given index.
      Parameters:
      index - index of veto to replace
      newOne - new veto
    • clone

      public AngleVetoParameters clone()
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.