View Javadoc

1   package org.lcsim.event;
2   
3   
4   /** A generic TPCHit for real data. Optionaly contains an integer array
5    *  with raw data that is implementation dependent, e.g. the FADC read out 
6    *  of the corresponding bump. 
7    *  If generic TrackerHits from reconstruction want to point back to
8    *  TPCHit objects, these have to be stored in a collection
9    *  with flag( bit LCIO::TPCBIT_PTR)==1.
10   * 
11   * @author gaede
12   * @version $Id: TPCHit.java,v 1.3 2008/05/23 06:53:35 jeremy Exp $
13   */
14  
15  public interface TPCHit 
16  {
17      /** Returns the detector specific cell id.
18       */
19      public int getCellID();
20  
21      /** Returns the  time of the hit.
22       */
23      public double getTime();
24  
25      /** Returns the integrated charge of the hit.
26       */
27      public double getCharge();
28  
29      /** Returns a quality flag for the hit.
30       */
31      public int getQuality();
32  
33      /** Return the number of raw data (32-bit) words stored for the hit.
34       *  Check the flag word (bit TPCBIT_RAW) of the collection if raw data is
35       *  stored at all.
36       */
37      public int getNRawDataWords();
38  
39      /** Return the raw data (32-bit) word at i.
40       *  Check the flag word (bit TPCBIT_RAW) of the collection if raw data is
41       *  stored at all.
42       */
43      public int getRawDataWord(int i);
44  } // class or interface
45