digit informations
authorbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 13 Sep 2003 20:47:16 +0000 (20:47 +0000)
committerbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 13 Sep 2003 20:47:16 +0000 (20:47 +0000)
PMD/AliPMDdigit.cxx [new file with mode: 0644]
PMD/AliPMDdigit.h [new file with mode: 0644]

diff --git a/PMD/AliPMDdigit.cxx b/PMD/AliPMDdigit.cxx
new file mode 100644 (file)
index 0000000..33f448e
--- /dev/null
@@ -0,0 +1,56 @@
+//-----------------------------------------------------//
+//                                                     //
+//  Date   : August 05 2003                            //
+//                                                     //
+//  Store digits for ALICE-PMD                         //
+//                                                     //
+//-----------------------------------------------------//
+
+#include "AliPMDdigit.h"
+#include <stdio.h>
+
+ClassImp(AliPMDdigit)
+
+AliPMDdigit::AliPMDdigit()
+{
+  fTrNumber   = 0;
+  fDet        = 0;
+  fSMNumber   = 0;
+  fCellNumber = 0;
+  fADC        = 0.;
+}
+
+AliPMDdigit::AliPMDdigit(Int_t trnumber, Int_t det, Int_t smnumber, 
+                        Int_t cellnumber, Float_t adc)
+{
+  fTrNumber   = trnumber;
+  fDet        = det;
+  fSMNumber   = smnumber;
+  fCellNumber = cellnumber;
+  fADC        = adc;
+}
+AliPMDdigit::~AliPMDdigit()
+{
+
+}
+Int_t AliPMDdigit::GetTrackNumber() const
+{
+  return fTrNumber;
+}
+Int_t AliPMDdigit::GetDetector() const
+{
+  return fDet;
+}
+Int_t AliPMDdigit::GetSMNumber() const
+{
+  return fSMNumber;
+}
+Int_t AliPMDdigit::GetCellNumber() const
+{
+  return fCellNumber;
+}
+Float_t AliPMDdigit::GetADC() const
+{
+  return fADC;
+}
+
diff --git a/PMD/AliPMDdigit.h b/PMD/AliPMDdigit.h
new file mode 100644 (file)
index 0000000..f6ed641
--- /dev/null
@@ -0,0 +1,40 @@
+#ifndef PMDdigit_H
+#define PMDdigit_H
+//-----------------------------------------------------//
+//                                                     //
+//  Date   : August 05 2003                            //
+//                                                     //
+//  Store digits  for PMD                              //
+//                                                     //
+//-----------------------------------------------------//
+
+#include "Riostream.h"
+#include "Rtypes.h"
+#include "TObject.h"
+#include "TClonesArray.h"
+
+class AliPMDdigit : public TObject
+{
+  
+ protected:
+  Int_t   fTrNumber, fDet, fSMNumber, fCellNumber;
+  Float_t fADC;
+
+ public:
+  AliPMDdigit();
+  AliPMDdigit(Int_t /* trnumber */, Int_t /* det */, Int_t /* smnumber */,
+             Int_t /* cellnumber */, Float_t /* adc */);
+  AliPMDdigit(AliPMDdigit *pmddigit) {*this = *pmddigit;}
+  
+  virtual ~AliPMDdigit();
+
+  Int_t   GetTrackNumber() const;
+  Int_t   GetDetector() const;
+  Int_t   GetSMNumber() const;
+  Int_t   GetCellNumber() const;
+  Float_t GetADC() const;
+  
+  ClassDef(AliPMDdigit,1)
+};
+
+#endif