]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Initialisation of base classes corrected
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Jun 2001 09:37:23 +0000 (09:37 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Jun 2001 09:37:23 +0000 (09:37 +0000)
RALICE/Ali3Vector.cxx
RALICE/AliEvent.cxx

index a4cbdcb0160ffd8f4cd57b886b027c118f73c35d..964216cc1931a09df88160247d26174d11ddc589 100644 (file)
@@ -326,7 +326,7 @@ void Ali3Vector::GetErrors(Double_t* e,TString f)
     if (v[2] && rxy2)
     {
      dtheta2+=rxy2*pow(v[2],2)*(pow((v[0]*fDx),2)+pow((v[1]*fDy),2)) /
-              pow(((pow(v[3],2)*rxy2)+pow(rxy2,2)),2);
+              pow(((pow(v[2],2)*rxy2)+pow(rxy2,2)),2);
     }
    }
    else
index acdf4cddd5f3aa7faed74eaf489b2892084d77b5..f6c04e42b1d6de1d1d69be907d0abd31dfb60168 100644 (file)
@@ -121,28 +121,15 @@ AliEvent::AliEvent()
  fDaytime.Set();
  fRun=0;
  fEvent=0;
- AliVertex::AliVertex();
 }
 ///////////////////////////////////////////////////////////////////////////
-AliEvent::AliEvent(Int_t n)
+AliEvent::AliEvent(Int_t n): AliVertex(n)
 {
 // Create an event to hold initially a maximum of n tracks
 // All variables initialised to default values
  fDaytime.Set();
  fRun=0;
  fEvent=0;
- if (n > 0)
- {
-  AliVertex::AliVertex(n);
- }
- else
- {
-  cout << endl;
-  cout << " *AliEvent* Initial max. number of tracks entered : " << n << endl;
-  cout << " This is invalid. Default initial maximum will be used." << endl;
-  cout << endl;
-  AliVertex::AliVertex();
- }
 }
 ///////////////////////////////////////////////////////////////////////////
 AliEvent::~AliEvent()