Merged ITS-working with HEAD. Improved some of the documentation and
[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////////////////////////////////////////////////
ff4c968a 7// Hits class for PHOS //
49cd54c0 8// Version SUBATECH //
ff4c968a 9// A hit in PHOS is the sum of all hits in a //
10// a single crystal due to one ans only one //
11// primary particle //
49cd54c0 12// Author M. Volkov, RRC KI //
13// october 1999: //
14// Modified by Y. Schutz SUBATECH //
ff4c968a 15// january 2000: //
16// Modified by Y. Schutz SUBATECH //
17// added fPrimary //
49cd54c0 18////////////////////////////////////////////////
19
6ad0bfa0 20/* $Id$ */
21
49cd54c0 22// --- ROOT system ---
23
24// --- AliRoot header files ---
25#include "AliHit.h"
9f616d61 26
27// --- Standard library ---
28
29#include <iostream>
49cd54c0 30
31class AliPHOSHit : public AliHit {
32
49cd54c0 33public:
34
35 AliPHOSHit() {}
ff4c968a 36 AliPHOSHit(Int_t primary, Int_t id, Float_t *hits) ;
37 virtual ~AliPHOSHit(void) {}
49cd54c0 38
39 Float_t GetEnergy(void) const { return fELOS ; }
40 Int_t GetId(void) const { return fId ; }
ff4c968a 41 Int_t GetPrimary(void) const { return fPrimary ; }
42
49cd54c0 43 Bool_t operator == (AliPHOSHit const &rValue) const ;
44 AliPHOSHit operator + (const AliPHOSHit& rValue) const ;
45
46 friend ostream& operator << (ostream&, const AliPHOSHit&) ;
47
ff4c968a 48private:
49
50 Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad
51 Float_t fELOS ; // Energy deposited
52 Int_t fPrimary ; // Primary particles at the origine of the hit
53
49cd54c0 54 ClassDef(AliPHOSHit,1) // Hits object for PHOS
55
56} ;
57
58//////////////////////////////////////////////////////////////////////////////
59
60#endif // ALIPHOSHIT_H