]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
added members initialization and removed dummy copy constructor (Andrea)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Dec 2007 17:07:14 +0000 (17:07 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Dec 2007 17:07:14 +0000 (17:07 +0000)
PWG3/AliBtoJPSItoEle.cxx
PWG3/AliBtoJPSItoEle.h

index a17583a2fa5f026d1d97411826e1f959c2cb2172..d31e26c1d92337f182dd27246b2ac33f1cd17e1d 100644 (file)
 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
index 5272a62c819f5719ebc34b87d45819d144c6ed8a..34a4a62f30390b606e19b478e623f6a2571419ed 100644 (file)
@@ -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");