]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Possibility to set a default momentum (needed for the reconstruction without the...
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 May 2007 08:40:03 +0000 (08:40 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 May 2007 08:40:03 +0000 (08:40 +0000)
STEER/AliExternalTrackParam.cxx
STEER/AliExternalTrackParam.h

index 651ae7e80b162350b95a8bd41ace96f2c3a6994f..3620beae8264b613f76b9be9eee3572442707b4b 100644 (file)
@@ -31,6 +31,8 @@
 
 ClassImp(AliExternalTrackParam)
 
+Double32_t AliExternalTrackParam::fgMostProbablePt=kMostProbablePt;
 //_____________________________________________________________________________
 AliExternalTrackParam::AliExternalTrackParam() :
   TObject(),
@@ -219,8 +221,8 @@ Bool_t AliExternalTrackParam::CorrectForMaterial
      fP4*=(1.- e/p2*dE);
 
      // Approximate energy loss fluctuation (M.Ivanov)
-     const Double_t cnst=0.07; // To be tuned.  
-     Double_t sigmadE=cnst*TMath::Sqrt(TMath::Abs(dE)); 
+     const Double_t knst=0.07; // To be tuned.  
+     Double_t sigmadE=knst*TMath::Sqrt(TMath::Abs(dE)); 
      fC44+=((sigmadE*e/p2*fP4)*(sigmadE*e/p2*fP4)); 
  
   }
index fbf32af269c2196a557d1de8e177e693577118aa..534648c35a0ee493b27f6e0e13e12cd9d778d972 100644 (file)
@@ -43,14 +43,12 @@ class AliExternalTrackParam: public TObject {
 
   void Set(Double_t x,Double_t alpha,
                        const Double_t param[5], const Double_t covar[15]);
+
+  static void SetMostProbablePt(Double_t pt) { fgMostProbablePt=pt; }
+  static Double_t GetMostProbablePt() { return fgMostProbablePt; }
+
   void Reset();
-  void ResetCovariance(Double_t s2) {
-    fC[0]*= s2;
-    fC[1] = 0.;  fC[2]*= s2;
-    fC[3] = 0.;  fC[4] = 0.;  fC[5]*= s2;
-    fC[6] = 0.;  fC[7] = 0.;  fC[8] = 0.;  fC[9]*= s2;
-    fC[10]= 0.;  fC[11]= 0.;  fC[12]= 0.;  fC[13]= 0.;  fC[14]*=s2;
-  }
+  void ResetCovariance(Double_t s2);
 
   const Double_t *GetParameter() const {return fP;}
   const Double_t *GetCovariance() const {return fC;}
@@ -130,7 +128,20 @@ private:
   Double32_t           fP[5];  // The track parameters
   Double32_t           fC[15]; // The track parameter covariance matrix
 
-  ClassDef(AliExternalTrackParam, 5)
+  static Double32_t    fgMostProbablePt; // "Most probable" pt
+                                         // (to be used if Bz=0)
+  ClassDef(AliExternalTrackParam, 6)
 };
 
+inline void AliExternalTrackParam::ResetCovariance(Double_t s2) {
+  //
+  // Reset the covarince matrix to "something big"
+  //
+    fC[0]*= s2;
+    fC[1] = 0.;  fC[2]*= s2;
+    fC[3] = 0.;  fC[4] = 0.;  fC[5]*= s2;
+    fC[6] = 0.;  fC[7] = 0.;  fC[8] = 0.;  fC[9]*= s2;
+    fC[10]= 0.;  fC[11]= 0.;  fC[12]= 0.;  fC[13]= 0.;  fC[14]*=s2;
+}
+
 #endif