]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
cell information
authorbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 13 Sep 2003 20:59:54 +0000 (20:59 +0000)
committerbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 13 Sep 2003 20:59:54 +0000 (20:59 +0000)
PMD/AliPMDcell.cxx [new file with mode: 0644]
PMD/AliPMDcell.h [new file with mode: 0644]

diff --git a/PMD/AliPMDcell.cxx b/PMD/AliPMDcell.cxx
new file mode 100644 (file)
index 0000000..c43c38c
--- /dev/null
@@ -0,0 +1,59 @@
+//-----------------------------------------------------//
+//                                                     //
+//  Date   : August 05 2003                            //
+//                                                     //
+//  Store cell/track info which is used to assign      //
+//  the correct track number to a multiple hit cell    //
+//                                                     //
+//-----------------------------------------------------//
+
+#include "AliPMDcell.h"
+
+ClassImp(AliPMDcell)
+
+AliPMDcell::AliPMDcell()
+{
+  fTrNumber = 0;
+  fSMNumber = 0;
+  fXpos     = 0;
+  fYpos     = 0;
+  fEdep     = 0.;
+}
+
+AliPMDcell::AliPMDcell(Int_t trnumber, Int_t smnumber, 
+                        Int_t xpos, Int_t ypos, Float_t edep)
+{
+  fTrNumber = trnumber;
+  fSMNumber = smnumber;
+  fXpos     = xpos;
+  fYpos     = ypos;
+  fEdep     = edep;
+
+}
+AliPMDcell::~AliPMDcell()
+{
+
+}
+
+Int_t AliPMDcell::GetTrackNumber() const
+{
+  return fTrNumber;
+}
+Int_t AliPMDcell::GetSMNumber() const
+{
+  return fSMNumber;
+}
+Int_t AliPMDcell::GetX() const
+{
+  return fXpos;
+}
+Int_t AliPMDcell::GetY() const
+{
+  return fYpos;
+}
+
+Float_t AliPMDcell::GetEdep() const
+{
+  return fEdep;
+}
+
diff --git a/PMD/AliPMDcell.h b/PMD/AliPMDcell.h
new file mode 100644 (file)
index 0000000..4f6f91d
--- /dev/null
@@ -0,0 +1,41 @@
+#ifndef PMDcell_H
+#define PMDcell_H
+//-----------------------------------------------------//
+//                                                     //
+//  Date   : August 05 2003                            //
+//                                                     //
+//  Store cell/track info which is used to assign      //
+//  the correct track number to a multiple hit cell    //
+//                                                     //
+//-----------------------------------------------------//
+
+#include "Riostream.h"
+#include "Rtypes.h"
+#include "TObject.h"
+#include "TClonesArray.h"
+
+class AliPMDcell : public TObject
+{
+  
+ protected:
+  Int_t   fTrNumber, fSMNumber, fXpos, fYpos;
+  Float_t fEdep;
+
+ public:
+  AliPMDcell();
+  AliPMDcell(Int_t /* trnumber */, Int_t /* smnumber */,
+             Int_t /* xpos */, Int_t /* ypos */, Float_t /* edep */);
+  AliPMDcell(AliPMDcell *pmdcell) {*this = *pmdcell;}
+  
+  virtual ~AliPMDcell();
+
+  Int_t   GetTrackNumber() const;
+  Int_t   GetSMNumber() const;
+  Int_t   GetX() const;
+  Int_t   GetY() const;
+  Float_t GetEdep() const;
+  
+  ClassDef(AliPMDcell,1)
+};
+
+#endif