package hep.lcio.implementation.event;

import hep.lcio.event.TPCHit;


/**
 * A default implementation of TPCHit
 * @author Frank Gaede
 * @version $Id: ITPCHit.java,v 1.1 2003-09-11 14:07:07 gaede Exp $
 */
public class ITPCHit extends ILCObject implements TPCHit
{
   protected int cellID;
   protected float time;
   protected float charge;
   protected int quality;
   protected int[] rawDataArray ;

    
   public void setCellID(int cellID)
   {
      checkAccess();
      this.cellID = cellID;
   }

   public int getCellID()
   {
      return cellID;
   }
   public void setTime(float time)
   {
      checkAccess();
      this.time = time;
   }

   public float getTime()
   {
      return time;
   }
   public void setCharge(float charge)
   {
      checkAccess();
      this.charge = charge;
   }

   public float getCharge()
   {
      return charge;
   }

   public void setQuality(int quality)
   {
      checkAccess();
      this.quality= quality;
   }

   public int getQuality()
   {
      return quality;
   }

    public int getNRawDataWords(){
	  return rawDataArray.length ;    
    }

	public void setRawDataWords(int rawData[]){
      checkAccess();
	  this.rawDataArray = rawData ;	
	}
    public int getRawDataWord(int i){
      return rawDataArray[ i ] ;     
    }

}

@@ -164,17 +164,17 @@
 ava,v 1.
-1
+2
  2003-09
@@ -179,24 +179,24 @@
 09-1
-1 14:07:07 gaede
+7 00:14:25 tonyj
  Exp
@@ -398,18 +398,20 @@
 Array ;%0A
-%0A
  
+  %0A
    %0A   p
@@ -498,24 +498,27 @@
 ellID;%0A   %7D%0A
+   
 %0A   public i
@@ -645,32 +645,35 @@
 me = time;%0A   %7D%0A
+   
 %0A   public float
@@ -802,32 +802,35 @@
  = charge;%0A   %7D%0A
+   
 %0A   public float
@@ -869,24 +869,27 @@
 harge;%0A   %7D%0A
+   
 %0A   public v
@@ -972,24 +972,27 @@
 ality;%0A   %7D%0A
+   
 %0A   public i
@@ -1039,18 +1039,20 @@
 y;%0A   %7D%0A
-%0A
  
+  %0A
    publi
@@ -1079,11 +1079,18 @@
 ds()
-%7B%0A%09
+%0A   %7B%0A    
   re
@@ -1119,21 +1119,21 @@
 th ;
- 
+%0A   %7D%0A
    %0A   
- %7D%0A%0A%09
 publ
@@ -1170,16 +1170,20 @@
 wData%5B%5D)
+%0A   
 %7B%0A      
@@ -1201,11 +1201,14 @@
 ();%0A
-%09
+   
   
+ 
 this
@@ -1236,17 +1236,17 @@
 ta ;
-%09%0A%09
+%0A   
 %7D%0A   
- 
 publ
@@ -1273,16 +1273,20 @@
 d(int i)
+%0A   
 %7B%0A      
@@ -1315,19 +1315,16 @@
  %5D ;
-     
+%0A   %7D
 %0A   
- %7D%0A
 %0A%7D%0A

Reformat code