]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding a function that might be needed to account for unknown mis-calibration/mis...
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 May 2008 12:56:18 +0000 (12:56 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 May 2008 12:56:18 +0000 (12:56 +0000)
STEER/AliExternalTrackParam.cxx
STEER/AliExternalTrackParam.h

index e3c0fffb508b13769ff728de1a503955d86b00df..2e5c8b1b0bdaa825f3aa9417c3c5276ed033b0b0 100644 (file)
@@ -117,6 +117,20 @@ void AliExternalTrackParam::Reset() {
   for (Int_t i = 0; i < 15; i++) fC[i] = 0;
 }
 
+//_____________________________________________________________________________
+void AliExternalTrackParam::AddCovariance(const Double_t c[15]) {
+  //
+  // Add "something" to the track covarince matrix.
+  // May be needed to account for unknown mis-calibration/mis-alignment
+  //
+    fC[0] +=c[0];
+    fC[1] +=c[1];  fC[2] +=c[2];
+    fC[3] +=c[3];  fC[4] +=c[4];  fC[5] +=c[5];
+    fC[6] +=c[6];  fC[7] +=c[7];  fC[8] +=c[8];  fC[9] +=c[9];
+    fC[10]+=c[10]; fC[11]+=c[11]; fC[12]+=c[12]; fC[13]+=c[13]; fC[14]+=c[14];
+}
+
+
 Double_t AliExternalTrackParam::GetP() const {
   //---------------------------------------------------------------------
   // This function returns the track momentum
index 896b877e3cac20805c3409b6341cac29d27ee3fd..d0688af1e1988ab7040a74c03974e8e7589ad3ae 100644 (file)
@@ -47,6 +47,7 @@ class AliExternalTrackParam: public AliVParticle {
 
   void Reset();
   void ResetCovariance(Double_t s2);
+  void AddCovariance(const Double_t cov[15]);
 
   const Double_t *GetParameter() const {return fP;}
   const Double_t *GetCovariance() const {return fC;}