View Javadoc

1   package org.lcsim.event.base;
2   
3   /**
4    *
5    * @author cassell
6    */
7   import org.lcsim.event.ParticleID;
8   public class UnknownParticleID implements ParticleID
9   {
10      int pdg;
11      
12      /** Creates a new instance of UnknownParticleID */
13      public UnknownParticleID()
14      {
15          pdg = ParticleID.UnknownPDG;
16      }
17     /** Type - userdefined.
18      */
19     public int getType()
20     {
21          return 0;
22     }
23     
24     /** The PDG code of this id - UnknownPDG ( 999999 ) if unknown.
25      */
26     public int getPDG()
27     {
28         return pdg;
29     }
30     
31     /**The likelihood  of this hypothesis - in a user defined normalization.
32      */
33     public double getLikelihood()
34     {
35         return 0.;
36     }
37     
38     /** Type of the algorithm/module that created this hypothesis.
39      * Check/set collection parameters PIDAlgorithmTypeName and PIDAlgorithmTypeID.
40      */
41     public int getAlgorithmType()
42     {
43         return 0;
44     }
45     
46     /** Parameters associated with this hypothesis.
47      * Check/set collection paramter PIDParameterNames for decoding the indices.
48      */
49     public double[] getParameters()
50     {
51         double[] result = new double[1];
52         result[0] = 0.;
53         return result;
54     }
55      
56  }