]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- added necessary histograms for the drift velocity calibration (Dag)
authorkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 10 Nov 2009 20:10:21 +0000 (20:10 +0000)
committerkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 10 Nov 2009 20:10:21 +0000 (20:10 +0000)
- implemented the "inverse" calibration on the seeds and the new way of accessing the magnetic field in HLT components
- cleanup of misplaced function calls

HLT/TPCLib/calibration/AliHLTTPCCalibTimeComponent.cxx

index b5bda93bf52bb83eebadf2f96f88f0ef3589013b..c69a8b8a09507c63b0148d34128bda5bd9c444e4 100644 (file)
@@ -37,6 +37,7 @@ using namespace std;
 
 #include "AliESDEvent.h"
 #include "AliESDtrack.h"
+#include "AliESDfriend.h"
 
 #include "AliTPCcalibTime.h"
 #include "AliTPCseed.h"
@@ -189,6 +190,9 @@ Int_t AliHLTTPCCalibTimeComponent::ProcessCalibration( const AliHLTComponentEven
     fESDevent = dynamic_cast<AliESDEvent*>(iter);
     fESDevent->CreateStdContent();
     
+    AliESDfriend *f = new AliESDfriend();
+    fESDevent->AddObject(f);
+    
     //fESDevent->SetTimeStamp(1256910155);
     //fESDevent->SetRunNumber(84714);
     //HLTInfo("time stamp and event number -----: %d, %d\n", fESDevent->GetTimeStamp(), fESDevent->GetRunNumber());
@@ -204,15 +208,16 @@ Int_t AliHLTTPCCalibTimeComponent::ProcessCalibration( const AliHLTComponentEven
         if(!seed) continue; 
                     
         fESDtrack = fESDevent->GetTrack(i);
+       if(!fESDtrack) continue;
         fESDfriendTrack = const_cast<AliESDfriendTrack*>(fESDtrack->GetFriendTrack());
+       if(!fESDfriendTrack) continue;
       
         cal->RefitTrack(fESDtrack, seed, GetBz());
 
         AliTPCseed *seedCopy = new AliTPCseed(*seed, kTRUE); 
-        fESDtrack->AddCalibObject(seedCopy);      
-        //fESDfriendTrack->AddCalibObject(seed);
-      
-        fCalibTime->ProcessAlignITS(fESDtrack,fESDfriendTrack);
+        //fESDtrack->AddCalibObject(seedCopy);      
+        fESDfriendTrack->AddCalibObject(seedCopy);
+        
     }
   }