]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSHit.h
These are the interface classes to Geant 3 to read the geometry information
[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
de9ec31b 21#include <iostream.h>
49cd54c0 22
23class AliPHOSHit : public AliHit {
24
6c370def 25 friend ostream& operator << (ostream&, const AliPHOSHit&) ;
26
27 public:
28
88714635 29 AliPHOSHit() {
30 // default ctor
31 }
31aa6d6c 32 AliPHOSHit(const AliPHOSHit & hit) ;
e39caaf7 33 AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits, Int_t pid) ;
88714635 34 virtual ~AliPHOSHit(void) {
35 // dtor
36 }
49cd54c0 37
88714635 38 Float_t GetEnergy(void) const {
39 // returns the energy loss for this hit
40 return fELOS ;
41 }
42 Int_t GetId(void) const {
43 // return the identificator of this his
44 return fId ;
45 }
ed4205d8 46 Int_t GetPid(void) const {
47 // return the particle PDG code which initiates this hit
48 return fPid ;
49 }
88714635 50 Int_t GetPrimary(void) const {
51 // returns the primary particle id at the origine of this hit
52 return fPrimary ;
53 }
ff4c968a 54
49cd54c0 55 Bool_t operator == (AliPHOSHit const &rValue) const ;
56 AliPHOSHit operator + (const AliPHOSHit& rValue) const ;
57
49cd54c0 58
6c370def 59 private:
ff4c968a 60
61 Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad
62 Float_t fELOS ; // Energy deposited
e39caaf7 63 Int_t fPid ; // type of the particle that initiates that hit
ff4c968a 64 Int_t fPrimary ; // Primary particles at the origine of the hit
65
b2a60966 66 ClassDef(AliPHOSHit,1) // Hit for PHOS
49cd54c0 67
68} ;
69
70//////////////////////////////////////////////////////////////////////////////
71
72#endif // ALIPHOSHIT_H