]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PMD/AliPMDdigit.cxx
changed according to alice coding convention
[u/mrichter/AliRoot.git] / PMD / AliPMDdigit.cxx
index 33f448ee351ba6ff5c0f7d5498e6079b5c0f8c30..a8864e5c878e1dc495ad0032dcd12e808f632af3 100644 (file)
@@ -1,3 +1,17 @@
+/***************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
 //-----------------------------------------------------//
 //                                                     //
 //  Date   : August 05 2003                            //
@@ -5,7 +19,8 @@
 //  Store digits for ALICE-PMD                         //
 //                                                     //
 //-----------------------------------------------------//
-
+#include "Riostream.h"
+#include "Rtypes.h"
 #include "AliPMDdigit.h"
 #include <stdio.h>
 
@@ -13,6 +28,7 @@ ClassImp(AliPMDdigit)
 
 AliPMDdigit::AliPMDdigit()
 {
+  // Default Constructor
   fTrNumber   = 0;
   fDet        = 0;
   fSMNumber   = 0;
@@ -23,15 +39,36 @@ AliPMDdigit::AliPMDdigit()
 AliPMDdigit::AliPMDdigit(Int_t trnumber, Int_t det, Int_t smnumber, 
                         Int_t cellnumber, Float_t adc)
 {
+  // Constructor
   fTrNumber   = trnumber;
   fDet        = det;
   fSMNumber   = smnumber;
   fCellNumber = cellnumber;
   fADC        = adc;
 }
+AliPMDdigit::AliPMDdigit(const AliPMDdigit& pmddigit):TObject(pmddigit) {
+  //Copy Constructor 
+  if(&pmddigit == this) return;
+  this->fTrNumber   = pmddigit.fTrNumber;
+  this->fDet        = pmddigit.fDet;
+  this->fSMNumber   = pmddigit.fSMNumber;
+  this->fCellNumber = pmddigit.fCellNumber;
+  this->fADC        = pmddigit.fADC;
+  return;
+}
+AliPMDdigit & AliPMDdigit::operator=(const AliPMDdigit& pmddigit) {
+  //Assignment operator 
+  if(&pmddigit == this) return *this;
+  this->fTrNumber   = pmddigit.fTrNumber;
+  this->fDet        = pmddigit.fDet;
+  this->fSMNumber   = pmddigit.fSMNumber;
+  this->fCellNumber = pmddigit.fCellNumber;
+  this->fADC        = pmddigit.fADC;
+  return *this;
+}
 AliPMDdigit::~AliPMDdigit()
 {
-
+  // Default destructor
 }
 Int_t AliPMDdigit::GetTrackNumber() const
 {