]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RICH/AliRICHv0.cxx
Cahnged to new coordinate system
[u/mrichter/AliRoot.git] / RICH / AliRICHv0.cxx
CommitLineData
4c039060 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
88cb7938 16#include "AliRICHv0.h"
c021cb15 17#include <TVirtualMC.h>
18#include <TPDGCode.h>
19#include "AliRICHConst.h"
20#include <AliRun.h>
21#include <TLorentzVector.h>
ddae0931 22
23ClassImp(AliRICHv0)
c021cb15 24//__________________________________________________________________________________________________
ddae0931 25AliRICHv0::AliRICHv0(const char *name, const char *title)
e14b8113 26 :AliRICH(name,title)
ddae0931 27{
c021cb15 28 if(GetDebug())Info("named ctor","Start.");
29 if(GetDebug())Info("named ctor","Stop.");
e14b8113 30}//name ctor
c021cb15 31//__________________________________________________________________________________________________
e14b8113 32void AliRICHv0::StepManager()
33{//
c021cb15 34// if(!gMC->IsNewTrack()) return;
35
36 char *sParticle;
37 switch(gMC->TrackPid()){
38 case kProton:
39 sParticle="p";break;
40 case kNeutron:
41 sParticle="n";break;
42 case kGamma:
43 sParticle="gamma";break;
44 case 50000050:
45 sParticle="photon";break;
46 default:
47 sParticle="not known";break;
48 }
49
50 Info("StepManager","Event=%i hunt=%i TID=%i PID=%s Mass=%f Charge=%i",
51 gMC->CurrentEvent(),
52 fIshunt,
53 gAlice->GetCurrentTrackNumber(),
54 sParticle,
55 gMC->TrackMass(),
56 gMC->TrackCharge());
57 Info("StepManager","Flags:Alive(%i) Disap(%i) Enter(%i) Exit(%i) Inside(%i) Out(%i) Stop(%i) New(%i)",
58 gMC->IsTrackAlive(),
59 gMC->IsTrackDisappeared(),
60 gMC->IsTrackEntering(),
61 gMC->IsTrackExiting(),
62 gMC->IsTrackInside(),
63 gMC->IsTrackOut(),
64 gMC->IsTrackStop(),
65 gMC->IsNewTrack());
66 Info("StepManager","Volume=%s of volume=%s",
67 gMC->CurrentVolName(),gMC->CurrentVolOffName(1));
68
69// Info("StepManager","TrackPID %i Particle %i",
70// gMC->TrackPid(),gAlice->Particles()[gAlice->CurrentTrack()]
71 TLorentzVector x4;
72 gMC->TrackPosition(x4);
73 Info("StepManager","x=%f y=%f z=%f r=%f theta=%f phi=%f\n",
a277aaca 74 x4.X(),x4.Y(),x4.Z(),x4.Rho(),x4.Theta()*kR2d,x4.Phi()*kR2d);
e14b8113 75}//AliRICHv0::StepManager()
c021cb15 76//__________________________________________________________________________________________________