]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFCalPadZ.cxx
Fixing small memory leaks (Hans)
[u/mrichter/AliRoot.git] / TOF / AliTOFCalPadZ.cxx
index e9825b154a08905d6b623bb8c8759c0a5c2c40fb..a6557bfc233c284daecde76f7a340dd7c5b7bf08 100644 (file)
 
 /*
 $Log$
+Revision 1.6  2006/04/20 22:30:49  hristov
+Coding conventions (Annalisa)
+
+Revision 1.5  2006/04/16 22:29:05  hristov
+Coding conventions (Annalisa)
+
 Revision 1.4  2006/04/05 08:35:38  hristov
 Coding conventions (S.Arcelli, C.Zampolli)
 
@@ -36,41 +42,52 @@ author: Chiara Zampolli, zampolli@bo.infn.it
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
-#include "TObject.h"
-#include "TROOT.h"
 #include "TBrowser.h"
-#include "TClass.h"
+
 #include "AliLog.h"
-#include "AliTOFGeometryV5.h"
-#include "AliTOFChannel.h"
+
 #include "AliTOFCalPadZ.h"
+#include "AliTOFChannel.h"
+#include "AliTOFGeometryV5.h"
 
 ClassImp(AliTOFCalPadZ)
 
 //________________________________________________________________
 
-AliTOFCalPadZ::AliTOFCalPadZ(){
-  fCh = 0;
-  fNpadX=0;
+  AliTOFCalPadZ::AliTOFCalPadZ():
+  fNpadX(0),
+  fGeom(0x0),
+  fCh(0)
+{
+  //fCh = 0;
+  //fNpadX=0;
 }
 //________________________________________________________________
 
 AliTOFCalPadZ::AliTOFCalPadZ(AliTOFChannel *ch):
+  fNpadX(0),
+  fGeom(0x0),
   fCh(ch)
 {  
-  fNpadX = 0;
+  //fNpadX = 0;
 }
 //________________________________________________________________
 
-AliTOFCalPadZ::AliTOFCalPadZ(AliTOFGeometry *geom){
+AliTOFCalPadZ::AliTOFCalPadZ(AliTOFGeometry *geom):
+  fNpadX(0),
+  fGeom(geom),
+  fCh(0)
+{
   //ctor with TOF geometry
-  fCh = 0;
-  fGeom = geom;
+  //fCh = 0;
+  //fGeom = geom;
   fNpadX = fGeom->NpadX();
 }
 //________________________________________________________________
 
 AliTOFCalPadZ::AliTOFCalPadZ(AliTOFGeometry *geom,AliTOFChannel *ch):
+  fNpadX(0),
+  fGeom(geom),
   fCh(ch)
 {  
   //ctor with TOF geometry and cal channel
@@ -79,8 +96,11 @@ AliTOFCalPadZ::AliTOFCalPadZ(AliTOFGeometry *geom,AliTOFChannel *ch):
 }
 
 //________________________________________________________________
-AliTOFCalPadZ::AliTOFCalPadZ(const AliTOFCalPadZ &source)
-  :TObject()
+AliTOFCalPadZ::AliTOFCalPadZ(const AliTOFCalPadZ &source):
+  TObject(),
+  fNpadX(0),
+  fGeom(0x0),
+  fCh(0)
 {
   // copy constructor