]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HMPID/AliHMPIDHit.cxx
Corrected index (icc)
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDHit.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 "AliHMPIDHit.h"  //class header
17 #include "AliHMPIDDigit.h"
18 #include <TPDGCode.h>    
19 #include <TMarker.h>
20  
21 ClassImp(AliHMPIDHit)
22 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23 void AliHMPIDHit::Draw(Option_t*)
24 {
25   Int_t iMark;
26   switch(Pid()){
27     case 50000050:   iMark=4;  break;
28     case 50000051:   iMark=27; break;
29     default:         iMark=26; break;
30   }    
31   TMarker *pMark=new TMarker(LorsX(),LorsY(),iMark); pMark->SetMarkerColor(kRed); pMark->Draw();
32 }
33 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
34 void AliHMPIDHit::Print(Option_t*)const
35 {
36 //Print hit
37   char *sPart=Form("pid=%i",Pid());
38   switch(Pid()){
39     case kProton:      sPart="p+  ";break;
40     case kProtonBar:   sPart="p-  ";break;
41     case kKPlus:       sPart="K+  ";break;
42     case kKMinus:      sPart="K-  ";break;
43     case kPiPlus:      sPart="Pi+ ";break;
44     case kPiMinus:     sPart="Pi- ";break;
45     case kMuonPlus:    sPart="Mu+ ";break;
46     case kMuonMinus:   sPart="Mu- ";break;
47     case kElectron:    sPart="e-  ";break;
48     case kPositron:    sPart="e+  ";break;
49     case 50000050:     sPart="ckov";break;
50     case 50000051:     sPart="feed";break;
51   }
52
53   Printf("HIT:(%7.3f,%7.3f) Q=%8.3f ch=%i                   TID= %5i, MARS=(%7.2f,%7.2f,%7.2f) %s  %s",
54               LorsX(),LorsY(), Q(), Ch(),                  Tid(),         X(),  Y(),  Z(),   sPart, 
55                         (AliHMPIDDigit::IsInDead(LorsX(),LorsY()))? "IN DEAD ZONE":"");
56 }
57 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++