X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSHit.h;h=af937aac0d492d735e63e89b84fd733a8d4e3103;hb=3c9441f123110b61cc01fdd191446e7ff63f2b39;hp=d7389999c96dbce56ec3fed0832d3811788156ac;hpb=ff4c968a9ec8ba73486e1ea669f5760047fad9c7;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSHit.h b/PHOS/AliPHOSHit.h index d7389999c96..af937aac0d4 100644 --- a/PHOS/AliPHOSHit.h +++ b/PHOS/AliPHOSHit.h @@ -3,22 +3,14 @@ /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ -//////////////////////////////////////////////// -// Hits class for PHOS // -// Version SUBATECH // -// A hit in PHOS is the sum of all hits in a // -// a single crystal due to one ans only one // -// primary particle // -// Author M. Volkov, RRC KI // -// october 1999: // -// Modified by Y. Schutz SUBATECH // -// january 2000: // -// Modified by Y. Schutz SUBATECH // -// added fPrimary // -//////////////////////////////////////////////// - /* $Id$ */ +//_________________________________________________________________________ +// Hits class for PHOS +// A hit in PHOS is the sum of all hits in a single crystal +// +//*-- Author: Maxime Volkov (RRC KI) & Yves Schutz (SUBATECH) + // --- ROOT system --- // --- AliRoot header files --- @@ -26,32 +18,52 @@ // --- Standard library --- -#include class AliPHOSHit : public AliHit { -public: - - AliPHOSHit() {} - AliPHOSHit(Int_t primary, Int_t id, Float_t *hits) ; - virtual ~AliPHOSHit(void) {} +// friend ostream& operator << (ostream&, const AliPHOSHit&) ; - Float_t GetEnergy(void) const { return fELOS ; } - Int_t GetId(void) const { return fId ; } - Int_t GetPrimary(void) const { return fPrimary ; } + public: + + AliPHOSHit() : fId(0),fELOS(0),fTime(0) { + // default ctor + } + AliPHOSHit(const AliPHOSHit & hit) ; + AliPHOSHit(Int_t shunt, Int_t tracknumber, Int_t id, Float_t *hits); + virtual ~AliPHOSHit(void) { + // dtor + } + + Float_t GetEnergy(void) const { + // returns the energy loss for this hit + return fELOS ; + } + Int_t GetId(void) const { + // return the identificator of this his + return fId ; + } + Int_t GetPrimary(void) const { + // returns the primary particle id at the origine of this hit + return fTrack ; + } + + Float_t GetTime(void) const { + // returns the time of the first energy deposition + return fTime ; + } + Bool_t operator == (AliPHOSHit const &rValue) const ; - AliPHOSHit operator + (const AliPHOSHit& rValue) const ; + AliPHOSHit operator + (const AliPHOSHit& rValue) ; - friend ostream& operator << (ostream&, const AliPHOSHit&) ; -private: + private: - Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad - Float_t fELOS ; // Energy deposited - Int_t fPrimary ; // Primary particles at the origine of the hit + Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad + Float_t fELOS ; // Energy deposited + Float_t fTime ; // Time of the energy deposition - ClassDef(AliPHOSHit,1) // Hits object for PHOS + ClassDef(AliPHOSHit,1) // Hit for PHOS } ;