]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliTracker.cxx
Changed the handling of the sources / blocks in the xmlRPC message
[u/mrichter/AliRoot.git] / STEER / AliTracker.cxx
index 37b65e6d7496b63b4d20682f8b29eaa308d65d1c..7678b65c37c17051611fdca9468c114ad3e444bd 100644 (file)
@@ -48,7 +48,8 @@ AliTracker::AliTracker():
   fZ(0),
   fSigmaX(0.005),
   fSigmaY(0.005),
-  fSigmaZ(0.010) 
+  fSigmaZ(0.010),
+  fEventInfo(NULL)
 {
   //--------------------------------------------------------------------
   // The default constructor.
@@ -65,7 +66,8 @@ AliTracker::AliTracker(const AliTracker &atr):
   fZ(atr.fZ),
   fSigmaX(atr.fSigmaX),
   fSigmaY(atr.fSigmaY),
-  fSigmaZ(atr.fSigmaZ)
+  fSigmaZ(atr.fSigmaZ),
+  fEventInfo(atr.fEventInfo)
 {
   //--------------------------------------------------------------------
   // The default constructor.
@@ -343,7 +345,7 @@ Double_t AliTracker::MeanMaterialBudget(const Double_t *start, const Double_t *e
 
 Bool_t 
 AliTracker::PropagateTrackTo(AliExternalTrackParam *track, Double_t xToGo, 
-Double_t mass, Double_t maxStep, Bool_t rotateTo, Double_t maxSnp){
+                            Double_t mass, Double_t maxStep, Bool_t rotateTo, Double_t maxSnp, Double_t sign){
   //----------------------------------------------------------------
   //
   // Propagates the track to the plane X=xk (cm) using the magnetic field map 
@@ -374,7 +376,7 @@ Double_t mass, Double_t maxStep, Bool_t rotateTo, Double_t maxSnp){
     if (!track->PropagateTo(x,bz))  return kFALSE;
 
     MeanMaterialBudget(xyz0,xyz1,param);       
-    Double_t xrho=param[0]*param[4], xx0=param[1];
+    Double_t xrho=param[0]*param[4]*sign, xx0=param[1];
 
     if (!track->CorrectForMeanMaterial(xx0,xrho,mass)) return kFALSE;
     if (rotateTo){
@@ -397,7 +399,7 @@ Double_t mass, Double_t maxStep, Bool_t rotateTo, Double_t maxSnp){
 Bool_t 
 AliTracker::PropagateTrackToBxByBz(AliExternalTrackParam *track,
 Double_t xToGo, 
-Double_t mass, Double_t maxStep, Bool_t rotateTo, Double_t maxSnp){
+                                  Double_t mass, Double_t maxStep, Bool_t rotateTo, Double_t maxSnp,Double_t sign){
   //----------------------------------------------------------------
   //
   // Propagates the track to the plane X=xk (cm)
@@ -429,7 +431,7 @@ Double_t mass, Double_t maxStep, Bool_t rotateTo, Double_t maxSnp){
     if (!track->PropagateToBxByBz(x,b))  return kFALSE;
 
     MeanMaterialBudget(xyz0,xyz1,param);       
-    Double_t xrho=param[0]*param[4], xx0=param[1];
+    Double_t xrho=param[0]*param[4]*sign, xx0=param[1];
 
     if (!track->CorrectForMeanMaterial(xx0,xrho,mass)) return kFALSE;
     if (rotateTo){