]>
Commit | Line | Data |
---|---|---|
d3da6dc4 | 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 | ||
3c6274c1 | 16 | #include "AliHMPIDHit.h" //class header |
17 | #include "AliHMPIDDigit.h" | |
18 | #include <TPDGCode.h> | |
d3da6dc4 | 19 | |
20 | ClassImp(AliHMPIDHit) | |
21 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
22 | void AliHMPIDHit::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 | ||
3c6274c1 | 41 | Printf(" ch=%i (%7.3f,%7.3f) Q=%8.3f TID= %5i, MARS=(%7.2f,%7.2f,%7.2f) %s %s", |
42 | Ch(), LorsX(),LorsY(), Q(), Tid(), X(), Y(), Z(), sPart, | |
43 | (AliHMPIDDigit::IsInDead(LorsX(),LorsY()))? "IN DEAD ZONE":""); | |
d3da6dc4 | 44 | } |
45 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |