]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/AliRICHHit.cxx
Getters are constant
[u/mrichter/AliRoot.git] / RICH / AliRICHHit.cxx
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
16 #include "AliRICHHit.h" //class header
17 #include <TPDGCode.h>   //Print() 
18 #include <TString.h>
19  
20 ClassImp(AliRICHHit)
21 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22 void AliRICHHit::Print(Option_t*)const
23 {
24 //Print hit
25   char *sPart=Form("pid=%i",Pid());
26   switch(Pid()){
27     case kProton:      sPart="p+  ";break;
28     case kProtonBar:   sPart="p-  ";break;
29     case kKPlus:       sPart="K+  ";break;
30     case kKMinus:      sPart="K-  ";break;
31     case kPiPlus:      sPart="Pi+ ";break;
32     case kPiMinus:     sPart="Pi- ";break;
33     case kMuonPlus:    sPart="Mu+ ";break;
34     case kMuonMinus:   sPart="Mu- ";break;
35     case kElectron:    sPart="e-  ";break;
36     case kPositron:    sPart="e+  ";break;
37     case 50000050:     sPart="ckov";break;
38     case 50000051:     sPart="feed";break;
39   }
40
41   Printf("%s Ch:%i TID:%6i,E:%9.3f eV, LORS:(%7.2f,%7.2f) MARS:(%7.2f,%7.2f,%7.2f)cm",sPart,Ch(),Tid(),E()*1e9,LorsX(),LorsY(),X(),Y(),Z());
42 }
43 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++