]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RICH/AliRICHHelix.cxx
adding entries parameter to execute function
[u/mrichter/AliRoot.git] / RICH / AliRICHHelix.cxx
index 408b33af2298966d4704dc0d1f1aab062c347bf1..2602a520b22310befaeccd8587d580f3d9e3a499 100644 (file)
@@ -3,41 +3,23 @@
 
 ClassImp(AliRICHHelix)
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-AliRICHHelix::AliRICHHelix(Double_t p,Double_t theta,Double_t phi,Double_t bz):TObject(),
-  fX0(TVector3(0,0,0)),
-  fP0(TVector3(0,0,0)),
-  fX(TVector3(0,0,0)),
-  fP(TVector3(0,0,0)),
-  fLen(0),
-  fQ(0),
-  fBz(bz),
-  fPosRad(TVector2(0,0)),
-  fPosPc(TVector2(0,0)),
-  fPloc(TVector3(0,0,0)) 
-{
-  fP0.SetMagThetaPhi(p,theta*TMath::DegToRad(),phi*TMath::DegToRad());     fP=fP0;
-}
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void  AliRICHHelix::Print(Option_t *opt) const
 {
 // Debug printout
   Printf("%s helix for Q=%i in B=(0,0,%.2f) tesla",opt,fQ,fBz);
   Printf("Helix parametrised  @ x0=(%6.2f,%6.2f,%6.2f) cm p0=(%6.2f,%6.2f,%6.2f) GeV  P=%.2f GeV Theta=%.2f Phi=%.2f degrees", 
                                 fX0.X(),fX0.Y(),fX0.Z(),    fP0.Px(),fP0.Py(),fP0.Pz(), fP0.Mag(),fP0.Theta()*TMath::RadToDeg(),fP0.Phi()*TMath::RadToDeg());
-  Printf("@ %7.2f cm           x=(%6.2f,%6.2f,%6.2f) cm  p=(%6.2f,%6.2f,%6.2f) GeV  P=%.2f GeV Theta=%.2f Phi=%.2f degrees",
-           fLen,              fX.X(), fX.Y(), fX.Z(),       fP.Px(),fP.Py(),fP.Pz(), fP.Mag(), fP.Theta()*TMath::RadToDeg(),fP.Phi()*TMath::RadToDeg());
-  Printf("             in LORS   rad=(%5.2f,%5.2f)  pc=(%5.2f,%5.2f)",fPosRad.X(), fPosRad.Y(),fPosPc.X(),fPosPc.Y());
 }
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void AliRICHHelix::Draw(const Option_t *)
 {
 // Draw helix by a set of points seperated by 1 cm distance 
-  
+  TVector3 pos,mom;
   const Int_t kNpoints=500;
   TPolyLine3D *pHelDraw = new TPolyLine3D(kNpoints); pHelDraw->SetLineColor(kGreen);
   for(Int_t i=0;i<kNpoints;i++) {
-    Propagate(i);
-    pHelDraw->SetPoint(i,fX.X(),fX.Y(),fX.Z());
+    Propagate(i,pos,mom);
+    pHelDraw->SetPoint(i,pos.X(),pos.Y(),pos.Z());
   }  
   pHelDraw->Draw();
 }