]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - CRT/AliCRThit.cxx
Log replaced by Id
[u/mrichter/AliRoot.git] / CRT / AliCRThit.cxx
index 777d0e97a06b191458bc7ce75f5cacb404035b7c..7bcb423c3a9ba0472330ccf3bca87c32f5ca53de 100644 (file)
  * provided "as is" without express or implied warranty.                  * 
  **************************************************************************/
 
-/*
-$Log: 
-
-*/
+/* $Id$ */
 
 #include "AliCRThit.h"
 
 ClassImp(AliCRThit)
 
+//____________________________________________________________________________
+AliCRThit::AliCRThit()
+{
+   //
+   // default ctor for AliCRThit object
+   //
+
+  fId     = 0.;
+  fX      = 0.;
+  fY      = 0.;
+  fZ      = 0.;
+  fPx     = 0.;
+  fPy     = 0.;
+  fPz     = 0.;
+  fMedium = 0.;
+  fELoss  = 0.;
+  fCRTh = 0.;
+  fCRTMod = 0.;
+  fCRTMag = 0.;
+  fCRTRICH = 0.;
+  fCRTTPC = 0.;
+
+  fCopy = 0;
+  for (Int_t i = 0; i < 5; i++ ) {
+    fVolume[i] = 0;
+  }
+
+}
+
+
 //____________________________________________________________________________
 AliCRThit::AliCRThit(const AliCRThit & hit)
 {
    //
-   // copy ctor for AliCRThit object
+   // copy ctor
    //
 
-  fnmou = hit.fnmou;
-  fmtyp  = hit.fmtyp;
-  fxpit     = hit.fxpit;
-  fypit   = hit.fypit;
-  fzpit = hit.fzpit;
-  fpxug    = hit.fpxug;
-  fpyug     = hit.fpyug;
-  fpzug     = hit.fpzug;
-  flay   = hit.flay;
-  fxver    = hit.fxver;
-  fyver     = hit.fyver;
-  fzver     = hit.fzver;
+  fId     = hit.fId;
+  fX      = hit.fX;
+  fY      = hit.fY;
+  fZ      = hit.fZ;
+  fPx     = hit.fPx;
+  fPy     = hit.fPy;
+  fPz     = hit.fPz;
+  fMedium = hit.fMedium;
+  fELoss  = hit.fELoss;
+  fCRTh = hit.fCRTh;
+  fCRTMod = hit.fCRTMod;
+  fCRTMag = hit.fCRTMag;
+  fCRTRICH = hit.fCRTRICH;
+  fCRTTPC = hit.fCRTTPC;
+
+  //fCopy = hit.fCopy;
+  //fVolume = hit.fVolume;
+
 }
-//______________________________________________________________________________
+
+//_____________________________________________________________________________
+AliCRThit& AliCRThit::operator= (const AliCRThit & hit)
+{
+   //
+   // aisngment operator.
+   //
+
+  //fId     = hit.fId;
+  //fX      = hit.fX;
+  //fY      = hit.fY;
+  //fZ      = hit.fZ;
+  //fPx     = hit.fPx;
+  //fPy     = hit.fPy;
+  //fPz     = hit.fPz;
+  //fMedium = hit.fMedium;
+  //fELoss  = hit.fELoss;
+  //fCRTh = hit.fCRTh;
+  //fCRTMod = hit.fCRTMod;
+  //fCRTMag = hit.fCRTMag;
+  //fCRTRICH = hit.fCRTRICH;
+  //fCRTTPC = hit.fCRTTPC;
+
+  //fCopy = hit.fCopy;
+  //fVolume = hit.fVolume;
+
+  return *this;
+}
+
+//_____________________________________________________________________________
 AliCRThit::AliCRThit(Int_t shunt, Int_t track, Int_t *vol,
                      Float_t *hits) :AliHit(shunt, track)
 {
@@ -51,17 +112,26 @@ AliCRThit::AliCRThit(Int_t shunt, Int_t track, Int_t *vol,
 // Constructor of hit object
 //
 
-  fnmou = hits[0];
-  fmtyp  = hits[1];
-  fxpit     = hits[2];
-  fypit   = hits[3];
-  fzpit   = hits[4];
-  fpxug    = hits[5];
-  fpyug     = hits[6];
-  fpzug     = hits[7];
-  flay   = hits[8];
-  fxver    = hits[9];
-  fyver     = hits[10];
-  fzver     = hits[11];
+  fId     = hits[0];
+  fX      = hits[1];
+  fY      = hits[2];
+  fZ      = hits[3];
+  fPx     = hits[4];
+  fPy     = hits[5];
+  fPz     = hits[6];
+  fMedium = hits[7];
+  fELoss  = hits[8];
+  fCRTh = hits[9];
+  fCRTMod = hits[10];
+  fCRTMag = hits[11];
+  fCRTRICH = hits[12];
+  fCRTTPC = hits[13];
+
+  //fTrack = (Int_t)hits[9];
+
+  for (Int_t i = 0; i < 5 ; i++ ) {
+    fVolume[i] = vol[i];
+  }
+
 }