From cbd5890c039c721c43b02dcd1912e9427bce6639 Mon Sep 17 00:00:00 2001 From: dainese Date: Wed, 5 Dec 2007 17:07:14 +0000 Subject: [PATCH] added members initialization and removed dummy copy constructor (Andrea) --- PWG3/AliBtoJPSItoEle.cxx | 52 ++++++++++++++++++++-------------------- PWG3/AliBtoJPSItoEle.h | 1 - 2 files changed, 26 insertions(+), 27 deletions(-) diff --git a/PWG3/AliBtoJPSItoEle.cxx b/PWG3/AliBtoJPSItoEle.cxx index a17583a2fa5..d31e26c1d92 100644 --- a/PWG3/AliBtoJPSItoEle.cxx +++ b/PWG3/AliBtoJPSItoEle.cxx @@ -36,25 +36,25 @@ ClassImp(AliBtoJPSItoEle) //---------------------------------------------------------------------------- -AliBtoJPSItoEle::AliBtoJPSItoEle() { +AliBtoJPSItoEle::AliBtoJPSItoEle(): +fSignal(kFALSE), +fJpsiPrimary(kFALSE), +fEvent(0), +fV1x(0.), +fV1y(0.), +fV1z(0.), +fV2x(0.), +fV2y(0.), +fV2z(0.), +fDCA(0.), +fWgtJPsi(0.) +{ // Default constructor - fSignal = kFALSE; - fJpsiPrimary = kFALSE; - - fEvent = 0; fTrkNum[0] = 0; fTrkNum[1] = 0; - fV1x = 0.; - fV1y = 0.; - fV1z = 0.; - fV2x = 0.; - fV2y = 0.; - fV2z = 0.; - fDCA = 0.; - fPx[0] = 0.; fPy[0] = 0.; fPz[0] = 0.; @@ -79,20 +79,26 @@ AliBtoJPSItoEle::AliBtoJPSItoEle() { fTagNid[0] = 0.; fTagNid[1] = 0.; - fWgtJPsi=0; - } //---------------------------------------------------------------------------- AliBtoJPSItoEle::AliBtoJPSItoEle(Int_t ev,Int_t trkNum[2], Double_t v1[3],Double_t v2[3], Double_t dca, - Double_t mom[6],Double_t d0[2]) { + Double_t mom[6],Double_t d0[2]) : +fSignal(kFALSE), +fJpsiPrimary(kFALSE), +fEvent(ev), +fV1x(v1[0]), +fV1y(v1[1]), +fV1z(v1[2]), +fV2x(v2[0]), +fV2y(v2[1]), +fV2z(v2[2]), +fDCA(dca), +fWgtJPsi(0.) +{ // Constructor - fSignal = kFALSE; - fJpsiPrimary = kFALSE; - - fEvent = ev; fTrkNum[0] = trkNum[0]; fTrkNum[1] = trkNum[1]; @@ -102,7 +108,6 @@ AliBtoJPSItoEle::AliBtoJPSItoEle(Int_t ev,Int_t trkNum[2], fV2x = v2[0]; fV2y = v2[1]; fV2z = v2[2]; - fDCA = dca; fPx[0] = mom[0]; fPy[0] = mom[1]; @@ -128,14 +133,9 @@ AliBtoJPSItoEle::AliBtoJPSItoEle(Int_t ev,Int_t trkNum[2], fTagNid[0] = 0.; fTagNid[1] = 0.; - fWgtJPsi=0; } //---------------------------------------------------------------------------- AliBtoJPSItoEle::~AliBtoJPSItoEle() {} -//____________________________________________________________________________ -AliBtoJPSItoEle::AliBtoJPSItoEle( const AliBtoJPSItoEle& btoJpsi):TObject(btoJpsi) { - // dummy copy constructor -} //---------------------------------------------------------------------------- void AliBtoJPSItoEle::ApplyPID(TString pidScheme) { // Applies particle identification diff --git a/PWG3/AliBtoJPSItoEle.h b/PWG3/AliBtoJPSItoEle.h index 5272a62c819..34a4a62f303 100644 --- a/PWG3/AliBtoJPSItoEle.h +++ b/PWG3/AliBtoJPSItoEle.h @@ -36,7 +36,6 @@ class AliBtoJPSItoEle : public TObject { Double_t v1[3],Double_t v2[3],Double_t dca, Double_t mom[6],Double_t d0[2]); virtual ~AliBtoJPSItoEle(); - AliBtoJPSItoEle(const AliBtoJPSItoEle& btoJpsi); Double_t Alpha() const { return (Ql(0)-Ql(1))/(Ql(0)+Ql(1)); } void ApplyPID(TString pidScheme="TRDTPCparam"); -- 2.43.0