]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFCalPlateA.cxx
Separate trees for ITSsa and global tracks
[u/mrichter/AliRoot.git] / TOF / AliTOFCalPlateA.cxx
index b0b5d5f7be158158cb2223cce876f93c6e2bf02d..cf1d339c34b2feffe3e28c4244daf33c6730c8ad 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:57:40  arcelli
+updates to handle new V5 geometry & some re-arrangements
+
 Revision 1.2  2006/02/13 17:22:26  arcelli
 just Fixing Log info
 
@@ -30,50 +42,63 @@ 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 "AliTOFCalStrip.h"
+
 #include "AliTOFCalPlateA.h"
+#include "AliTOFCalStrip.h"
 #include "AliTOFChannel.h"
+#include "AliTOFGeometryV5.h"
 
 ClassImp(AliTOFCalPlateA)
 
 //________________________________________________________________
 
-AliTOFCalPlateA::AliTOFCalPlateA(){
-  fCh = 0;
-  fGeom= 0x0; 
-  fNStripA = 0;
-  fNpadZ = 0;
-  fNpadX = 0;
+AliTOFCalPlateA::AliTOFCalPlateA():
+  fNStripA(0),
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(0x0), 
+  fCh(0x0)
+{
+  //main ctor
 }
 //________________________________________________________________
 
-AliTOFCalPlateA::AliTOFCalPlateA(AliTOFChannel *ch) : fCh(ch)
+AliTOFCalPlateA::AliTOFCalPlateA(AliTOFChannel *ch) : 
+  fNStripA(0),
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(0x0), 
+  fCh(ch)
 {
-  fGeom= 0x0; 
-  fNStripA = 0;
-  fNpadZ = 0;
-  fNpadX = 0;
+  //ctor with channel
 }
 //________________________________________________________________
 
-AliTOFCalPlateA::AliTOFCalPlateA(AliTOFGeometry *geom){
-  fCh = 0;
-  fGeom = geom;  
+AliTOFCalPlateA::AliTOFCalPlateA(AliTOFGeometry *geom):
+  fNStripA(0),
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(geom), 
+  fCh(0x0)
+{
+  //ctor with geom
   fNStripA = fGeom->NStripA();
   fNpadZ = fGeom->NpadZ();
   fNpadX = fGeom->NpadX();
 }
 //________________________________________________________________
 
-AliTOFCalPlateA::AliTOFCalPlateA(AliTOFGeometry *geom, AliTOFChannel *ch): fCh(ch)
+AliTOFCalPlateA::AliTOFCalPlateA(AliTOFGeometry *geom, AliTOFChannel *ch): 
+  fNStripA(0),
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(geom), 
+  fCh(ch)
 {
-  fGeom = geom;  
+  //ctor with geom and channel
   fNStripA = fGeom->NStripA();
   fNpadZ = fGeom->NpadZ();
   fNpadX = fGeom->NpadX();
@@ -82,14 +107,21 @@ AliTOFCalPlateA::AliTOFCalPlateA(AliTOFGeometry *geom, AliTOFChannel *ch): fCh(c
 
 AliTOFCalPlateA::~AliTOFCalPlateA()
 {
+  //dtor
   delete[] fCh;
 }
 
 //________________________________________________________________
 
 AliTOFCalPlateA::AliTOFCalPlateA(const AliTOFCalPlateA& pl):
-  TObject(pl)
+  TObject(pl),
+  fNStripA(0),
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(0x0), 
+  fCh(0x0)
   {
+  //copy ctor
     fCh = pl.fCh;
     fNStripA = pl.fNStripA;
     fNpadZ = pl.fNpadZ;
@@ -99,7 +131,21 @@ AliTOFCalPlateA::AliTOFCalPlateA(const AliTOFCalPlateA& pl):
   }
 //________________________________________________________________
 
+AliTOFCalPlateA& AliTOFCalPlateA::operator=(const AliTOFCalPlateA& pl)
+  {
+  //assignment operator
+    this->fCh = pl.fCh;
+    this->fNStripA = pl.fNStripA;
+    this->fNpadZ = pl.fNpadZ;
+    this->fNpadX = pl.fNpadX;
+    this->fGeom = pl.fGeom;
+    return *this;
+
+  }
+//________________________________________________________________
+
 void AliTOFCalPlateA::Browse(TBrowser *b){
+  //add cal obj to list of browsables
 
   if(fGeom==0x0){
     AliTOFGeometry *geom = new AliTOFGeometryV5();