X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSDigit.h;h=d6bdf4a69022aa513bbd6d8d8614aa9b5cc51e86;hb=ef1ae2599782d502096e3298ef67a0349921e3ad;hp=63d97a5d069d1b952d7e74505a0dbe66fa673867;hpb=54ac223ef18cf8e8ebb3b39a2a28a02645a2dd83;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSDigit.h b/PHOS/AliPHOSDigit.h index 63d97a5d069..d6bdf4a6902 100644 --- a/PHOS/AliPHOSDigit.h +++ b/PHOS/AliPHOSDigit.h @@ -35,6 +35,7 @@ // --- AliRoot header files --- #include "AliDigitNew.h" +using std::ostream; class AliPHOSDigit : public AliDigitNew { @@ -55,8 +56,6 @@ class AliPHOSDigit : public AliDigitNew { public: - AliPHOSDigit& operator=(const AliPHOSDigit) { - Fatal("operator = ", "not implemented") ; return *this ; } Int_t Compare(const TObject * obj) const ; Int_t GetNprimary() const { return fNprimary ; } Int_t GetPrimary(Int_t index) const ; @@ -68,6 +67,7 @@ public: UShort_t *GetSamplesHG() const {return fSamplesHG;} UShort_t *GetSamplesLG() const {return fSamplesLG;} Bool_t IsSortable() const { return kTRUE ; } + Bool_t IsLG() const {return fIsLG ;} void Print(const Option_t * = "") const; void SetAmp(Int_t Amp) {fAmp = Amp ;} void SetEnergy(Float_t E) {fEnergy= E ;} @@ -76,9 +76,12 @@ public: void SetALTROSamplesHG(Int_t nSamplesHG, Int_t *samplesHG); void SetALTROSamplesLG(Int_t nSamplesLG, Int_t *samplesLG); void ShiftPrimary(Int_t shift); // shift to separate different TreeK in merging + void SetLG(Bool_t inLG){fIsLG=inLG;} //mark digits produced from LG when HG in overflow +private: + AliPHOSDigit & operator = (const AliPHOSDigit & /*digit*/); - private: - +private: + Bool_t fIsLG; //If this digit created from HG or LG channels Int_t fNprimary ; // Number of primaries Int_t * fPrimary ; //[fNprimary] Array of primaries Float_t fEnergy ; // Deposited energy in ADC counts @@ -89,7 +92,7 @@ public: UShort_t *fSamplesHG; //[fNSamplesHG] Array of high-gain ALTRO samples UShort_t *fSamplesLG; //[fNSamplesLG] Array of low-gain ALTRO samples - ClassDef(AliPHOSDigit,6) // Digit in PHOS + ClassDef(AliPHOSDigit,7) // Digit in PHOS } ;