]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
using a sequence of 10 smaller propagations seems to work better than AliExternalTrac...
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 12 Jul 2010 21:37:27 +0000 (21:37 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 12 Jul 2010 21:37:27 +0000 (21:37 +0000)
enable updating of track parameters with TPCout and corrected propagation (Timur)

HLT/global/AliHLTGlobalEsdConverterComponent.cxx

index b142deb8ef059228679843bab643edccdc5e74e1..0a9627e2308f3601d7a770d5f52b33ea0d6bb6f7 100644 (file)
@@ -472,9 +472,15 @@ int AliHLTGlobalEsdConverterComponent::ProcessBlocks(TTree* pTree, AliESDEvent*
        // HLT does not provide such standalone tracking
        {
          AliHLTGlobalBarrelTrack outPar(*element);       
-         outPar.AliExternalTrackParam::PropagateTo( element->GetLastPointX(), fSolenoidBz );
+         //outPar.AliExternalTrackParam::PropagateTo( element->GetLastPointX(), fSolenoidBz );
+         const Int_t N=10; // number of steps.
+         const Float_t xRange = element->GetLastPointX() - element->GetX();
+         const Float_t xStep = xRange / N ;
+         for(int i = 1; i <= N; ++i) {
+           if(!outPar.AliExternalTrackParam::PropagateTo(element->GetX() + xStep * i, fSolenoidBz)) break;
+         }
          outPar.SetLabel(element->GetLabel());
-         //iotrack.UpdateTrackParams(&outPar,AliESDtrack::kTPCout);
+         iotrack.UpdateTrackParams(&outPar,AliESDtrack::kTPCout);
        }
        // 2.2 TPC tracking estimates parameters at first cluster
        iotrack.UpdateTrackParams(&(*element),AliESDtrack::kTPCin);