From ec3caadad0e6f4f7bfb2bdc223ae79394e56b845 Mon Sep 17 00:00:00 2001 From: bnandi Date: Sat, 13 Sep 2003 20:54:45 +0000 Subject: [PATCH] sdigit informations --- PMD/AliPMDsdigit.cxx | 55 ++++++++++++++++++++++++++++++++++++++++++++ PMD/AliPMDsdigit.h | 41 +++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 PMD/AliPMDsdigit.cxx create mode 100644 PMD/AliPMDsdigit.h diff --git a/PMD/AliPMDsdigit.cxx b/PMD/AliPMDsdigit.cxx new file mode 100644 index 00000000000..a54b05c0a9f --- /dev/null +++ b/PMD/AliPMDsdigit.cxx @@ -0,0 +1,55 @@ +//-----------------------------------------------------// +// // +// Date : August 05 2003 // +// used to store the info into TreeS // +// // +//-----------------------------------------------------// + +#include "AliPMDsdigit.h" +#include + +ClassImp(AliPMDsdigit) + +AliPMDsdigit::AliPMDsdigit() +{ + fTrNumber = 0; + fDet = 0; + fSMN = 0; + fCellNumber = 0; + fEdep = 0.; +} + +AliPMDsdigit::AliPMDsdigit(Int_t trnumber, Int_t det, Int_t smn, + Int_t cellnumber, Float_t edep) +{ + fTrNumber = trnumber; + fDet = det; + fSMN = smn; + fCellNumber = cellnumber; + fEdep = edep; +} +AliPMDsdigit::~AliPMDsdigit() +{ + +} +Int_t AliPMDsdigit::GetTrackNumber() const +{ + return fTrNumber; +} +Int_t AliPMDsdigit::GetDetector() const +{ + return fDet; +} +Int_t AliPMDsdigit::GetSMNumber() const +{ + return fSMN; +} +Int_t AliPMDsdigit::GetCellNumber() const +{ + return fCellNumber; +} + +Float_t AliPMDsdigit::GetCellEdep() const +{ + return fEdep; +} diff --git a/PMD/AliPMDsdigit.h b/PMD/AliPMDsdigit.h new file mode 100644 index 00000000000..11b478a079a --- /dev/null +++ b/PMD/AliPMDsdigit.h @@ -0,0 +1,41 @@ +#ifndef PMDsdigit_H +#define PMDsdigit_H +//-----------------------------------------------------// +// // +// // +// Date : August 05 2003 // +// used to store the info into TreeS // +// // +//-----------------------------------------------------// + +#include "Riostream.h" +#include "Rtypes.h" +#include "TObject.h" +#include "TClonesArray.h" + +class AliPMDsdigit : public TObject +{ + + protected: + + Int_t fTrNumber, fDet, fSMN, fCellNumber; + Float_t fEdep; + + public: + AliPMDsdigit(); + AliPMDsdigit(Int_t /* trnumber */, Int_t /* det */, Int_t /* smn */, + Int_t /* cellnumber */, Float_t /* edep */); + AliPMDsdigit(AliPMDsdigit *pmdsdigit) {*this = *pmdsdigit;} + + virtual ~AliPMDsdigit(); + + Int_t GetTrackNumber() const; + Int_t GetDetector() const; + Int_t GetSMNumber() const; + Int_t GetCellNumber() const; + Float_t GetCellEdep() const; + + ClassDef(AliPMDsdigit,1) +}; + +#endif -- 2.31.1