]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSHit.h
Coding convention
[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
88714635 28 AliPHOSHit() {
29 // default ctor
30 }
31aa6d6c 31 AliPHOSHit(const AliPHOSHit & hit) ;
b37750a6 32 AliPHOSHit(Int_t shunt, Int_t primary, 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
47 return fPrimary ;
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 virtual Float_t X() const ;
56 virtual Float_t Y() const ;
57 virtual Float_t Z() const ;
58
49cd54c0 59 Bool_t operator == (AliPHOSHit const &rValue) const ;
7854a24a 60 AliPHOSHit operator + (const AliPHOSHit& rValue) ;
49cd54c0 61
49cd54c0 62
6c370def 63 private:
ff4c968a 64
037cc66d 65 Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad
66 Float_t fELOS ; // Energy deposited
037cc66d 67 Int_t fPrimary ; // Primary particles at the origine of the hit
9688c1dd 68 Float_t fTime ; // Time of the energy deposition
037cc66d 69
b2a60966 70 ClassDef(AliPHOSHit,1) // Hit for PHOS
49cd54c0 71
72} ;
73
74//////////////////////////////////////////////////////////////////////////////
75
76#endif // ALIPHOSHIT_H