From 81508922040749f4e1f4ba0e5efbf9e05dd94715 Mon Sep 17 00:00:00 2001 From: hristov Date: Mon, 25 Jun 2001 09:37:23 +0000 Subject: [PATCH] Initialisation of base classes corrected --- RALICE/Ali3Vector.cxx | 2 +- RALICE/AliEvent.cxx | 15 +-------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/RALICE/Ali3Vector.cxx b/RALICE/Ali3Vector.cxx index a4cbdcb0160..964216cc193 100644 --- a/RALICE/Ali3Vector.cxx +++ b/RALICE/Ali3Vector.cxx @@ -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 diff --git a/RALICE/AliEvent.cxx b/RALICE/AliEvent.cxx index acdf4cddd5f..f6c04e42b1d 100644 --- a/RALICE/AliEvent.cxx +++ b/RALICE/AliEvent.cxx @@ -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() -- 2.43.0