Improved QAchecker and plots for DQM
[u/mrichter/AliRoot.git] / TOF / AliTOFCalStrip.cxx
index 4807bd2..803b2dd 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)
+
 Revision 1.3  2006/03/28 14:58:08  arcelli
 updates to handle new V5 geometry & some re-arrangements
 
@@ -33,53 +42,58 @@ 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 "AliTOFCalStrip.h"
+
 #include "AliTOFCalPadZ.h"
+#include "AliTOFCalStrip.h"
+#include "AliTOFChannel.h"
+#include "AliTOFGeometryV5.h"
 
 ClassImp(AliTOFCalStrip)
 
 //________________________________________________________________
 
-AliTOFCalStrip::AliTOFCalStrip(){
+AliTOFCalStrip::AliTOFCalStrip():
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(0x0), 
+  fCh(0x0)
+{
   //main ctor
-  fCh = 0;
-  fGeom= 0x0; 
-  fNpadZ = 0;
-  fNpadX = 0;
 }
 //________________________________________________________________
 
 AliTOFCalStrip::AliTOFCalStrip(AliTOFChannel *ch):
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(0x0), 
   fCh(ch)
 {
   // ctor with channel
-  fGeom= 0x0; 
-  fNpadZ = 0;
-  fNpadX = 0;
 }
 //________________________________________________________________
 
-AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom){
+AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom):
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(geom), 
+  fCh(0x0)
+{
   //ctor with geom
-  fCh = 0;
-  fGeom = geom;
   fNpadZ = fGeom->NpadZ();
   fNpadX = fGeom->NpadX();
 }
 //________________________________________________________________
 
 AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom,AliTOFChannel *ch):
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(geom), 
   fCh(ch)
 {
   //ctor with channel and geom
-  fGeom = geom;
   fNpadZ = fGeom->NpadZ();
   fNpadX = fGeom->NpadX();
 }
@@ -94,7 +108,11 @@ AliTOFCalStrip::~AliTOFCalStrip()
 //________________________________________________________________
 
 AliTOFCalStrip::AliTOFCalStrip(const AliTOFCalStrip& strip):
-  TObject(strip)
+  TObject(strip),
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(0x0), 
+  fCh(0x0)
   {
     //copy ctor
     fCh = strip.fCh;
@@ -104,6 +122,17 @@ AliTOFCalStrip::AliTOFCalStrip(const AliTOFCalStrip& strip):
   }
 //________________________________________________________________
 
+AliTOFCalStrip& AliTOFCalStrip::operator=(const AliTOFCalStrip& strip)
+  {
+    //assignment operator
+    this->fCh = strip.fCh;
+    this->fNpadZ = strip.fNpadZ;
+    this->fNpadX = strip.fNpadX;
+    return *this;
+
+  }
+//________________________________________________________________
+
 void AliTOFCalStrip::Browse(TBrowser *b){
   //add obj to list of browsables
   if(fGeom==0x0){