]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSdigit.h
major modification of the whole class (see doc/history/alice_global_History)
[u/mrichter/AliRoot.git] / ITS / AliITSdigit.h
index 02d3884e5cef5f2bd48e01420aea2eaa296c0a9f..6664f44bfffc51af39414023c73d5e7b6a70deb0 100644 (file)
@@ -4,9 +4,9 @@
 ////////////////////////////////////////////////
 //  Digits classes for set:ITS                //
 ////////////////////////////////////////////////
-
-#include <TObject.h>
 #include <TObjArray.h>
+#include <TObject.h>
+
 
 //___________________________________________
 class AliITSdigit: public TObject  {
@@ -15,7 +15,7 @@ public:
   
   Int_t fCoord1;  // Cell number on Z axis (SPD+SDD) , flag for side type (SSD)
   Int_t fCoord2 ; // Cell number on X axis (SPD+SDD) , strip number (SSD)
-  Int_t fSignal;  // Signal 
+  Int_t fSignal;  // Signal in ADC counts
   
 public:
   AliITSdigit() {
@@ -23,7 +23,7 @@ public:
     fSignal=fCoord1=fCoord2=0;
   }
   AliITSdigit(Int_t *digits);
-  virtual   ~AliITSdigit() {
+  virtual ~AliITSdigit() {
     // destructor
   }
   
@@ -37,18 +37,16 @@ public:
   
     // debugging  -- goes to the dictionary
   Int_t       fTracks[3];         // tracks making this digit 
+  Int_t       fHits[3];           // hits associated to the tracks 
+                                  // 3 hits temporarily - it will be only 1
   
 public:
-  AliITSdigitSPD() {
-    // constructor
-    fSignal=fCoord1=fCoord2=0;
-    fTracks[0]=fTracks[1]=fTracks[2]=0;
-  }
-  
+
+  AliITSdigitSPD();
   AliITSdigitSPD(Int_t *digits);
-  AliITSdigitSPD(Int_t *digits, Int_t *tracks);
+  AliITSdigitSPD(Int_t *digits, Int_t *tracks, Int_t *hits);
   
-  virtual   ~AliITSdigitSPD(){
+  virtual ~AliITSdigitSPD(){
     // destructor
   }
   virtual int *GetTracks() {
@@ -66,21 +64,18 @@ public:
   
   // debugging  -- goes to the dictionary
   Int_t       fTracks[3];         // tracks making this digit 
+  Int_t       fHits[3];           // hits associated to the tracks
+                                  // 3 hits temporarily - it will be only 1
   Float_t     fTcharges[3];       // charge per track making this digit 
   Float_t     fPhysics;           // signal particles contribution to signal
   
 public:
-  AliITSdigitSDD() {
-    // constructor
-    fSignal=fCoord1=fCoord2=0;
-    fTracks[0]=fTracks[1]=fTracks[2]=0;
-    fPhysics=0; fTcharges[0]=fTcharges[1]=fTcharges[2]=0;
-  }
-  
+
+  AliITSdigitSDD();  
   AliITSdigitSDD(Float_t phys,Int_t *digits);
-  AliITSdigitSDD( Float_t phys, Int_t *digits, Int_t *tracks, Float_t *charges);
+  AliITSdigitSDD( Float_t phys, Int_t *digits, Int_t *tracks, Int_t *hits, Float_t *charges);
   
-  virtual   ~AliITSdigitSDD(){
+  virtual ~AliITSdigitSDD(){
     // destructor
   }
   virtual int *GetTracks() {
@@ -123,18 +118,15 @@ public:
   
   // debugging  -- goes to the dictionary
   Int_t       fTracks[3];         // tracks making this digit 
+  Int_t       fHits[3];           // hits associated to the tracks
+                                  // 3 hits temporarily - it will be only 1
   
 public:
-  AliITSdigitSSD() {
-    // constructor
-    fSignal=fCoord1=fCoord2=0;
-    fTracks[0]=fTracks[1]=fTracks[2]=0;
-  }
-  
+  AliITSdigitSSD();
   AliITSdigitSSD(Int_t *digits);
-  AliITSdigitSSD(Int_t *digits, Int_t *tracks);
+  AliITSdigitSSD(Int_t *digits, Int_t *tracks, Int_t *hits);
   
-  virtual   ~AliITSdigitSSD(){
+  virtual ~AliITSdigitSSD(){
     // destructor
   }