]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSSteerPid.cxx
SPD RecPoints QA (M. Nicassio)
[u/mrichter/AliRoot.git] / ITS / AliITSSteerPid.cxx
index 64e7a428aa58f10f7f07d286bd6a6c82f58da1b1..328811359e29f63296dd556163bd5f31c0b50169 100644 (file)
@@ -1,3 +1,20 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/* $Id$ */
+
 /////////////////////////////////////////////////////////////////////////
 //Steering Class for PID in the ITS                                      //
 //The PID is based on the likelihood of all the four ITS' layers,        //
 // Origin: Elena Bruna bruna@to.infn.it, Massimo Masera masera@to.infn.it//
 /////////////////////////////////////////////////////////////////////////
 
+#include <TClonesArray.h>
+#include <TMath.h>
+
 #include "AliITSSteerPid.h"
 
 ClassImp(AliITSSteerPid)
 
   //______________________________________________________________
-  AliITSSteerPid::AliITSSteerPid(){
+AliITSSteerPid::AliITSSteerPid():
+fClonarr2(0),
+fVect2(0),
+fVect2lay1(0),
+fVect2lay2(0),
+fVect2lay3(0),
+fVect2lay4(0),
+fFitTree(0),
+fItem(0),
+fPCenter(0),
+fPWidth(0)
+{
   // default constructor
-  fClonarr2=0;
-  fVect2=0;
-  fItem=0;
-  fFitTree=0;
-}
+ }
 //______________________________________________________________
 AliITSSteerPid::~AliITSSteerPid(){
   // destructor
@@ -26,17 +53,25 @@ AliITSSteerPid::~AliITSSteerPid(){
 }
 
 //______________________________________________________________________
-AliITSSteerPid::AliITSSteerPid(const AliITSSteerPid &ob) :TObject(ob) {
+AliITSSteerPid::AliITSSteerPid(const AliITSSteerPid &ob) :TObject(ob),
+fClonarr2(ob.fClonarr2),
+fVect2(ob.fVect2),
+fVect2lay1(ob.fVect2lay1),
+fVect2lay2(ob.fVect2lay2),
+fVect2lay3(ob.fVect2lay3),
+fVect2lay4(ob.fVect2lay4),
+fFitTree(ob.fFitTree),
+fItem(ob.fItem),
+fPCenter(ob.fPCenter),
+fPWidth(ob.fPWidth) {
   // Copy constructor
-  // Copies are not allowed. The method is protected to avoid misuse.
-  Error("AliITSSteerPid","Copy constructor not allowed\n");
 }
 
 //______________________________________________________________________
-AliITSSteerPid& AliITSSteerPid::operator=(const AliITSSteerPid& /* ob */){
+AliITSSteerPid& AliITSSteerPid::operator=(const AliITSSteerPid& ob){
   // Assignment operator
-  // Assignment is not allowed. The method is protected to avoid misuse.
-  Error("= operator","Assignment operator not allowed\n");
+  this->~AliITSSteerPid();
+  new(this) AliITSSteerPid(ob);
   return *this;
 }