cluster information
authorbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 13 Sep 2003 20:45:12 +0000 (20:45 +0000)
committerbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 13 Sep 2003 20:45:12 +0000 (20:45 +0000)
PMD/AliPMDcluster.cxx [new file with mode: 0644]
PMD/AliPMDcluster.h [new file with mode: 0644]

diff --git a/PMD/AliPMDcluster.cxx b/PMD/AliPMDcluster.cxx
new file mode 100644 (file)
index 0000000..7788db4
--- /dev/null
@@ -0,0 +1,53 @@
+//-----------------------------------------------------//
+//                                                     //
+//  Date   : August 05 2003                            //
+//                                                     //
+//  Store cluster information                          //
+//                                                     //
+//-----------------------------------------------------//
+
+#include "AliPMDcluster.h"
+#include <stdio.h>
+
+ClassImp(AliPMDcluster)
+
+AliPMDcluster::AliPMDcluster()
+{
+  for (Int_t i = 0; i < 5; i++)
+    {
+      fClusData[i] = 0.;
+    }
+}
+AliPMDcluster::AliPMDcluster(Float_t *clusdata)
+{
+  for (Int_t i = 0; i < 5; i++)
+    {
+      fClusData[i] = clusdata[i];
+    }
+}
+AliPMDcluster::~AliPMDcluster()
+{
+
+}
+Float_t AliPMDcluster::GetClusX() const
+{
+  return fClusData[0];
+}
+Float_t AliPMDcluster::GetClusY() const
+{
+  return fClusData[1];
+}
+Float_t AliPMDcluster::GetClusADC() const
+{
+  return fClusData[2];
+}
+Float_t AliPMDcluster::GetClusCells() const
+{
+  return fClusData[3];
+}
+Float_t AliPMDcluster::GetClusRadius() const
+{
+  return fClusData[4];
+}
+
+
diff --git a/PMD/AliPMDcluster.h b/PMD/AliPMDcluster.h
new file mode 100644 (file)
index 0000000..4a60d0f
--- /dev/null
@@ -0,0 +1,44 @@
+#ifndef PMDcluster_H
+#define PMDcluster_H
+//-----------------------------------------------------//
+//                                                     //
+//  Date   : August 05 2003                            //
+//                                                     //
+//  Store cluster informations for PMD                 //
+//                                                     //
+//-----------------------------------------------------//
+
+#include "Riostream.h"
+#include "Rtypes.h"
+#include "TObject.h"
+#include "TClonesArray.h"
+
+class AliPMDcluster : public TObject
+{
+  
+ protected:
+
+  Float_t fClusData[5];
+  /*
+    fClusData[0] : Cluster x      ,  fClusData[1] : Cluster y
+    fClusData[2] : Cluster adc    ,  fClusData[3] : Cluster Cells
+    fClusData[4] : Cluster radius
+  */
+
+ public:
+  AliPMDcluster();
+  AliPMDcluster(Float_t * /* clusdata */);
+  AliPMDcluster(AliPMDcluster *pmdcluster) {*this = *pmdcluster;}
+  
+  virtual ~AliPMDcluster();
+
+  Float_t GetClusX() const;
+  Float_t GetClusY() const;
+  Float_t GetClusADC() const;
+  Float_t GetClusCells() const;
+  Float_t GetClusRadius() const;
+  
+  ClassDef(AliPMDcluster,1)
+};
+
+#endif