1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 #include "AliRICHv0.h"
17 #include <TVirtualMC.h>
19 #include "AliRICHConst.h"
21 #include <TLorentzVector.h>
24 //__________________________________________________________________________________________________
25 AliRICHv0::AliRICHv0(const char *name, const char *title)
28 if(GetDebug())Info("named ctor","Start.");
29 if(GetDebug())Info("named ctor","Stop.");
31 //__________________________________________________________________________________________________
32 void AliRICHv0::StepManager()
34 // if(!gMC->IsNewTrack()) return;
37 switch(gMC->TrackPid()){
43 sParticle="gamma";break;
45 sParticle="photon";break;
47 sParticle="not known";break;
50 Info("StepManager","Event=%i hunt=%i TID=%i PID=%s Mass=%f Charge=%i",
53 gAlice->GetCurrentTrackNumber(),
57 Info("StepManager","Flags:Alive(%i) Disap(%i) Enter(%i) Exit(%i) Inside(%i) Out(%i) Stop(%i) New(%i)",
59 gMC->IsTrackDisappeared(),
60 gMC->IsTrackEntering(),
61 gMC->IsTrackExiting(),
66 Info("StepManager","Volume=%s of volume=%s",
67 gMC->CurrentVolName(),gMC->CurrentVolOffName(1));
69 // Info("StepManager","TrackPID %i Particle %i",
70 // gMC->TrackPid(),gAlice->Particles()[gAlice->CurrentTrack()]
72 gMC->TrackPosition(x4);
73 Info("StepManager","x=%f y=%f z=%f r=%f theta=%f phi=%f\n",
74 x4.X(),x4.Y(),x4.Z(),x4.Rho(),x4.Theta()*kR2d,x4.Phi()*kR2d);
75 }//AliRICHv0::StepManager()
76 //__________________________________________________________________________________________________