Det and SMN converted from float to int
[u/mrichter/AliRoot.git] / PMD / AliPMDrecpoint1.cxx
index ef29ae885521bb17c1c9369e4ba4e8c9a1639380..b92495bbd686080c35a8aeb810c20f8fa9f44be6 100644 (file)
 
 ClassImp(AliPMDrecpoint1)
 
-AliPMDrecpoint1::AliPMDrecpoint1()
+AliPMDrecpoint1::AliPMDrecpoint1():
+  fDet(0),
+  fSMN(0)
 {
   // Default constructor
-  for (Int_t i = 0; i < 7; i++)
+  for (Int_t i = 0; i < 5; i++)
     {
       fClusData[i] = 0.;
     }
 }
-
-AliPMDrecpoint1::AliPMDrecpoint1(Float_t *clusdata)
+// ------------------------------------------------------------------------- //
+AliPMDrecpoint1::AliPMDrecpoint1(Int_t idet, Int_t ismn, Float_t *clusdata)
 {
   // Constructor
-  for (Int_t i = 0; i < 7; i++)
+  fDet = idet;
+  fSMN = ismn;
+  for (Int_t i = 0; i < 5; i++)
     {
       fClusData[i] = clusdata[i];
     }
 }
-
+// ------------------------------------------------------------------------- //
 AliPMDrecpoint1::AliPMDrecpoint1(const AliPMDrecpoint1 &pmdrecpoint):TObject(pmdrecpoint)
 {
   //Copy Constructor 
   if(&pmdrecpoint == this) return;
-  for(Int_t i=0; i<7; i++)
+  this->fDet = pmdrecpoint.fDet;
+  this->fSMN = pmdrecpoint.fSMN;
+  for(Int_t i=0; i<5; i++)
     {
       this->fClusData[i] = pmdrecpoint.fClusData[i];
     }
   return;
 }
-
+// ------------------------------------------------------------------------- //
 AliPMDrecpoint1 & AliPMDrecpoint1::operator=(const AliPMDrecpoint1 &pmdrecpoint)
 {
   // Assignment operator 
   if(&pmdrecpoint == this) return *this;
-  for(Int_t i=0; i<7; i++)
+  this->fDet = pmdrecpoint.fDet;
+  this->fSMN = pmdrecpoint.fSMN;
+  for(Int_t i=0; i<5; i++)
     {
       this->fClusData[i] = pmdrecpoint.fClusData[i];
     }
   return *this;
 }
-
+// ------------------------------------------------------------------------- //
 AliPMDrecpoint1::~AliPMDrecpoint1()
 {
   // Default destructor
 }
-
-Float_t AliPMDrecpoint1::GetDetector() const
+// ------------------------------------------------------------------------- //
+Int_t AliPMDrecpoint1::GetDetector() const
 {
-  return fClusData[0];
+  return fDet;
 }
-Float_t AliPMDrecpoint1::GetSMNumber() const
+// ------------------------------------------------------------------------- //
+Int_t AliPMDrecpoint1::GetSMNumber() const
 {
-  return fClusData[1];
+  return fSMN;
 }
+// ------------------------------------------------------------------------- //
 Float_t AliPMDrecpoint1::GetClusX() const
 {
-  return fClusData[2];
+  return fClusData[0];
 }
-
+// ------------------------------------------------------------------------- //
 Float_t AliPMDrecpoint1::GetClusY() const
 {
-  return fClusData[3];
+  return fClusData[1];
 }
-
+// ------------------------------------------------------------------------- //
 Float_t AliPMDrecpoint1::GetClusADC() const
 {
-  return fClusData[4];
+  return fClusData[2];
 }
+// ------------------------------------------------------------------------- //
 Float_t AliPMDrecpoint1::GetClusCells() const
 {
-  return fClusData[5];
+  return fClusData[3];
 }
+// ------------------------------------------------------------------------- //
 Float_t AliPMDrecpoint1::GetClusRadius() const
 {
-  return fClusData[6];
+  return fClusData[4];
 }
+// ------------------------------------------------------------------------- //