]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - PHOS/AliPHOSHit.h
Fixing ompilation warnings
[u/mrichter/AliRoot.git] / PHOS / AliPHOSHit.h
... / ...
CommitLineData
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
6/* $Id$ */
7
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
14// --- ROOT system ---
15
16// --- AliRoot header files ---
17#include "AliHit.h"
18
19// --- Standard library ---
20
21
22class AliPHOSHit : public AliHit {
23
24// friend ostream& operator << (ostream&, const AliPHOSHit&) ;
25
26 public:
27
28 AliPHOSHit() : fId(0),fELOS(0),fTime(0) {
29 // default ctor
30 }
31 AliPHOSHit(const AliPHOSHit & hit) ;
32 AliPHOSHit(Int_t shunt, Int_t tracknumber, Int_t id, Float_t *hits);
33 virtual ~AliPHOSHit(void) {
34 // dtor
35 }
36
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 fTrack ;
48 }
49
50 Float_t GetTime(void) const {
51 // returns the time of the first energy deposition
52 return fTime ;
53 }
54
55
56 Bool_t operator == (AliPHOSHit const &rValue) const ;
57 AliPHOSHit operator + (const AliPHOSHit& rValue) ;
58
59
60 private:
61
62 Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad
63 Float_t fELOS ; // Energy deposited
64 Float_t fTime ; // Time of the energy deposition
65
66 ClassDef(AliPHOSHit,1) // Hit for PHOS
67
68} ;
69
70//////////////////////////////////////////////////////////////////////////////
71
72#endif // ALIPHOSHIT_H