]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSHit.h
fixed bug that could ignore libSTEER if libSTEERbase was loaded in LoadModule (JFGO...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSHit.h
CommitLineData
49cd54c0 1#ifndef ALIPHOSHIT_H
2#define ALIPHOSHIT_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6ad0bfa0 6/* $Id$ */
7
b2a60966 8//_________________________________________________________________________
9// Hits class for PHOS
10// A hit in PHOS is the sum of all hits in a single crystal
11//
12//*-- Author: Maxime Volkov (RRC KI) & Yves Schutz (SUBATECH)
13
49cd54c0 14// --- ROOT system ---
15
16// --- AliRoot header files ---
17#include "AliHit.h"
9f616d61 18
19// --- Standard library ---
20
037cc66d 21
49cd54c0 22class AliPHOSHit : public AliHit {
23
8f2a3661 24// friend ostream& operator << (ostream&, const AliPHOSHit&) ;
6c370def 25
26 public:
27
e2429969 28 AliPHOSHit() : fId(0),fELOS(0),fTime(0) {
88714635 29 // default ctor
30 }
31aa6d6c 31 AliPHOSHit(const AliPHOSHit & hit) ;
2af5445a 32 AliPHOSHit(Int_t shunt, Int_t tracknumber, Int_t id, Float_t *hits);
88714635 33 virtual ~AliPHOSHit(void) {
34 // dtor
35 }
49cd54c0 36
88714635 37 Float_t GetEnergy(void) const {
38 // returns the energy loss for this hit
39 return fELOS ;
40 }
41 Int_t GetId(void) const {
42 // return the identificator of this his
43 return fId ;
44 }
45 Int_t GetPrimary(void) const {
46 // returns the primary particle id at the origine of this hit
2af5445a 47 return fTrack ;
88714635 48 }
9688c1dd 49
50 Float_t GetTime(void) const {
51 // returns the time of the first energy deposition
52 return fTime ;
53 }
54
1c75044c 55
49cd54c0 56 Bool_t operator == (AliPHOSHit const &rValue) const ;
7854a24a 57 AliPHOSHit operator + (const AliPHOSHit& rValue) ;
49cd54c0 58
49cd54c0 59
6c8ba828 60private:
61 AliPHOSHit & operator = (const AliPHOSHit & /*hit*/);
62
63private:
ff4c968a 64
037cc66d 65 Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad
66 Float_t fELOS ; // Energy deposited
9688c1dd 67 Float_t fTime ; // Time of the energy deposition
037cc66d 68
b2a60966 69 ClassDef(AliPHOSHit,1) // Hit for PHOS
49cd54c0 70
71} ;
72
73//////////////////////////////////////////////////////////////////////////////
74
75#endif // ALIPHOSHIT_H