reconstucted points
authorbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 13 Sep 2003 20:56:36 +0000 (20:56 +0000)
committerbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 13 Sep 2003 20:56:36 +0000 (20:56 +0000)
PMD/AliPMDrecpoint.cxx [new file with mode: 0644]
PMD/AliPMDrecpoint.h [new file with mode: 0644]

diff --git a/PMD/AliPMDrecpoint.cxx b/PMD/AliPMDrecpoint.cxx
new file mode 100644 (file)
index 0000000..67d9b27
--- /dev/null
@@ -0,0 +1,66 @@
+//-----------------------------------------------------//
+//                                                     //
+//                                                     //
+//  Date   : August 05 2003                            //
+//                                                     //
+//  Store recpoints for ALICE-PMD                      //
+//                                                     //
+//-----------------------------------------------------//
+
+#include "AliPMDrecpoint.h"
+#include <stdio.h>
+
+ClassImp(AliPMDrecpoint)
+
+AliPMDrecpoint::AliPMDrecpoint()
+{
+  for (Int_t i = 0; i < 7; i++)
+    {
+      fClusData[i] = 0.;
+    }
+}
+
+AliPMDrecpoint::AliPMDrecpoint(Float_t *clusdata)
+{
+  for (Int_t i = 0; i < 7; i++)
+    {
+      fClusData[i] = clusdata[i];
+    }
+}
+AliPMDrecpoint::~AliPMDrecpoint()
+{
+
+}
+
+Float_t AliPMDrecpoint::GetDetector() const
+{
+  return fClusData[0];
+}
+Float_t AliPMDrecpoint::GetSMNumber() const
+{
+  return fClusData[1];
+}
+Float_t AliPMDrecpoint::GetClusX() const
+{
+  return fClusData[2];
+}
+
+Float_t AliPMDrecpoint::GetClusY() const
+{
+  return fClusData[3];
+}
+
+Float_t AliPMDrecpoint::GetClusADC() const
+{
+  return fClusData[4];
+}
+Float_t AliPMDrecpoint::GetClusCells() const
+{
+  return fClusData[5];
+}
+Float_t AliPMDrecpoint::GetClusRadius() const
+{
+  return fClusData[6];
+}
+
+
diff --git a/PMD/AliPMDrecpoint.h b/PMD/AliPMDrecpoint.h
new file mode 100644 (file)
index 0000000..fc09cf1
--- /dev/null
@@ -0,0 +1,48 @@
+#ifndef PMDrecpoint_H
+#define PMDrecpoint_H
+//-----------------------------------------------------//
+//                                                     //
+//                                                     //
+//  Date   : August 05 2003                            //
+//                                                     //
+//  Store reconstructed points  for PMD                //
+//                                                     //
+//-----------------------------------------------------//
+
+#include "Riostream.h"
+#include "Rtypes.h"
+#include "TObject.h"
+#include "TClonesArray.h"
+
+class AliPMDrecpoint : public TObject
+{
+  
+ protected:
+
+  Float_t fClusData[7];
+  /*
+    fClusData[0] : Detector Number,  fClusData[1] : SuperModule Number
+    fClusData[2] : Cluster x      ,  fClusData[3] : Cluster y
+    fClusData[4] : Cluster adc    ,  fClusData[5] : Cluster Cells
+    fClusData[6] : Cluster radius
+  */
+
+ public:
+  AliPMDrecpoint();
+  AliPMDrecpoint(Float_t * /* clusdata */);
+  AliPMDrecpoint(AliPMDrecpoint *pmdrecpoint) {*this = *pmdrecpoint;}
+  
+  virtual ~AliPMDrecpoint();
+
+  Float_t GetDetector() const;
+  Float_t GetSMNumber() const;
+  Float_t GetClusX() const;
+  Float_t GetClusY() const;
+  Float_t GetClusADC() const;
+  Float_t GetClusCells() const;
+  Float_t GetClusRadius() const;
+  
+  ClassDef(AliPMDrecpoint,1)
+};
+
+#endif