]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Number of log messages has been reduced (A. Dainese)
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Aug 2008 10:15:15 +0000 (10:15 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Aug 2008 10:15:15 +0000 (10:15 +0000)
ITS/AliITStrackV2.cxx

index 277b0fd35a7dd3660d4a6374b237d48cc3a7aaca..3f79c018ca50590840f1fbeb08feb2bc10428d53 100644 (file)
@@ -238,8 +238,9 @@ Bool_t AliITStrackV2::Update(const AliCluster* c, Double_t chi2, Int_t index)
 
   if (!AliExternalTrackParam::Update(p,cov)) return kFALSE;
 
+  Int_t n=GetNumberOfClusters();
   if (!Invariant()) {
-     AliWarning("Wrong invariant !");
+     if (n>fgkWARN) AliWarning("Wrong invariant !");
      return kFALSE;
   }
 
@@ -247,7 +248,6 @@ Bool_t AliITStrackV2::Update(const AliCluster* c, Double_t chi2, Int_t index)
 
   AliTracker::FillResiduals(this,p,cov,c->GetVolumeId());
 
-  Int_t n=GetNumberOfClusters();
   fIndex[n]=index;
   SetNumberOfClusters(n+1);
   SetChi2(GetChi2()+chi2);
@@ -481,4 +481,3 @@ GetLocalXat(Double_t r,Double_t &xloc) const {
 
   return kTRUE;
 }
-