]>
Commit | Line | Data |
---|---|---|
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() | |
e30ca504 | 18 | #include <TString.h> |
0fe8fa07 | 19 | |
20 | ClassImp(AliRICHHit) | |
e30ca504 | 21 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
0fe8fa07 | 22 | void AliRICHHit::Print(Option_t*)const |
23 | { | |
24 | //Print hit | |
e30ca504 | 25 | char *sPart=Form("pid=%i",Pid()); |
26 | switch(Pid()){ | |
db910db9 | 27 | case kProton: sPart="p+ ";break; |
e30ca504 | 28 | case kProtonBar: sPart="p- ";break; |
db910db9 | 29 | case kKPlus: sPart="K+ ";break; |
30 | case kKMinus: sPart="K- ";break; | |
e30ca504 | 31 | case kPiPlus: sPart="Pi+ ";break; |
32 | case kPiMinus: sPart="Pi- ";break; | |
33 | case kMuonPlus: sPart="Mu+ ";break; | |
34 | case kMuonMinus: sPart="Mu- ";break; | |
db910db9 | 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 | ||
e30ca504 | 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()); |
0fe8fa07 | 42 | } |
e30ca504 | 43 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |