]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTrackReconstructorK.cxx
Protection instead fatal in case of absent galice.root or Kinematics.root
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackReconstructorK.cxx
index 1e83ef4571e2d53006c0ed8ba172dee2df3e6e2f..cb3bcc1720e9fc06d0b8c6dc3fb62cdbd326b0fb 100644 (file)
@@ -90,7 +90,7 @@ void AliMUONTrackReconstructorK::MakeTrackCandidates(AliMUONVClusterStore& clust
   
   for (Int_t i = firstChamber; i <= lastChamber; ++i ) 
   {
-    if (fClusterServer && GetRecoParam()->UseChamber(i)) fClusterServer->Clusterize(i, clusterStore, AliMpArea());
+    if (fClusterServer && GetRecoParam()->UseChamber(i)) fClusterServer->Clusterize(i, clusterStore, AliMpArea(), GetRecoParam());
   }
   
   // Loop over stations(1..) 5 and 4 and make track candidates
@@ -1384,9 +1384,11 @@ void AliMUONTrackReconstructorK::ComplementTracks(const AliMUONVClusterStore& cl
        if ((AliLog::GetDebugLevel("MUON","AliMUONTrackReconstructorK") >= 1) || (AliLog::GetGlobalDebugLevel() >= 1)) {
          cout << "ComplementTracks: found one cluster in chamber(1..): " << chamberId+1 << endl;
          bestTrackParamAtCluster.GetClusterPtr()->Print();
-         cout<<endl<<"Track parameters and covariances at cluster:"<<endl;
-         bestTrackParamAtCluster.GetParameters().Print();
-         bestTrackParamAtCluster.GetCovariances().Print();
+         if ((AliLog::GetDebugLevel("MUON","AliMUONTrackReconstructorK") >= 2) || (AliLog::GetGlobalDebugLevel() >= 2)) {
+           cout<<endl<<"Track parameters and covariances at cluster:"<<endl;
+           bestTrackParamAtCluster.GetParameters().Print();
+           bestTrackParamAtCluster.GetCovariances().Print();
+         }
        }
        
        trackParam->SetRemovable(kTRUE);
@@ -1537,7 +1539,7 @@ Bool_t AliMUONTrackReconstructorK::RefitTrack(AliMUONTrack &track, Bool_t enable
   /// re-fit the given track
   
   // check validity of the track
-  if (!track.IsValid(GetRecoParam()->RequestedStationMask())) {
+  if (track.GetNClusters() < 3) {
     AliWarning("the track does not contain enough clusters --> unable to refit");
     return kFALSE;
   }