test
[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
6////////////////////////////////////////////////
7// Hits class for PHOS //
8// Version SUBATECH //
9// Author M. Volkov, RRC KI //
10// october 1999: //
11// Modified by Y. Schutz SUBATECH //
12////////////////////////////////////////////////
13
14// --- ROOT system ---
15
16// --- AliRoot header files ---
17#include "AliHit.h"
18#include <iostream.h>
19
20class AliPHOSHit : public AliHit {
21
22protected:
23
24 Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad
25 Float_t fELOS ; // Energy deposited
26
27public:
28
29 AliPHOSHit() {}
30 AliPHOSHit(Int_t shunt, Int_t track, Int_t id, Float_t *hits) ;
31 virtual ~AliPHOSHit(void) {}
32
33 Float_t GetEnergy(void) const { return fELOS ; }
34 Int_t GetId(void) const { return fId ; }
35
36 Bool_t operator == (AliPHOSHit const &rValue) const ;
37 AliPHOSHit operator + (const AliPHOSHit& rValue) const ;
38
39 friend ostream& operator << (ostream&, const AliPHOSHit&) ;
40
41 ClassDef(AliPHOSHit,1) // Hits object for PHOS
42
43} ;
44
45//////////////////////////////////////////////////////////////////////////////
46
47#endif // ALIPHOSHIT_H