]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RICH/AliRICHHit.cxx
Working version of the class for the TOF Trigger. For the time being,
[u/mrichter/AliRoot.git] / RICH / AliRICHHit.cxx
CommitLineData
0fe8fa07 1// **************************************************************************
2// * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3// * *
4// * Author: The ALICE Off-line Project. *
5// * Contributors are mentioned in the code where appropriate. *
6// * *
7// * Permission to use, copy, modify and distribute this software and its *
8// * documentation strictly for non-commercial purposes is hereby granted *
9// * without fee, provided that the above copyright notice appears in all *
10// * copies and that both the copyright notice and this permission notice *
11// * appear in the supporting documentation. The authors make no claims *
12// * about the suitability of this software for any purpose. It is *
13// * provided "as is" without express or implied warranty. *
14// **************************************************************************
15
db910db9 16#include "AliRICHHit.h" //class header
17#include <TPDGCode.h> //Print()
0fe8fa07 18
19ClassImp(AliRICHHit)
20//__________________________________________________________________________________________________
21void AliRICHHit::Print(Option_t*)const
22{
23//Print hit
db910db9 24 char *sPart=Form("pid=%i",fPid);
25 switch(fPid){
26 case kProton: sPart="p+ ";break;
27 case kProtonBar: sPart="a- ";break;
28 case kKPlus: sPart="K+ ";break;
29 case kKMinus: sPart="K- ";break;
30 case kPiPlus: sPart="pi+ ";break;
31 case kPiMinus: sPart="pi- ";break;
32 case kMuonPlus: sPart="mu+ ";break;
33 case kMuonMinus: sPart="mu- ";break;
34 case kElectron: sPart="e- ";break;
35 case kPositron: sPart="e+ ";break;
36 case 50000050: sPart="ckov";break;
37 case 50000051: sPart="feed";break;
38 }
39
40 Printf("%s TID=%6i,Ch=(%2i),E=%9.3f eV, pos=(%7.2f,%7.2f,%7.2f)cm",sPart,Track(),C(),fE*1e9,fX,fY,fZ);
0fe8fa07 41}
42//__________________________________________________________________________________________________