1 // **************************************************************************
2 // * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 // * Author: The ALICE Off-line Project. *
5 // * Contributors are mentioned in the code where appropriate. *
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 // **************************************************************************
16 #include "AliRICHHit.h" //class header
17 #include <TPDGCode.h> //Print()
20 //__________________________________________________________________________________________________
21 void AliRICHHit::Print(Option_t*)const
24 char *sPart=Form("pid=%i",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;
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);
42 //__________________________________________________________________________________________________