]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFCalPlateB.cxx
Enabled option for selecting tree name in trneding macro
[u/mrichter/AliRoot.git] / TOF / AliTOFCalPlateB.cxx
index f309a7adc8b0fadbafa552ca6bedea25b5175d81..39513fe2ac5f3086527005e7469369a5c8dcdf27 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:48  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 "AliTOFCalPlateB.h"
+#include "AliTOFCalStrip.h"
 #include "AliTOFChannel.h"
+#include "AliTOFGeometryV5.h"
 
 ClassImp(AliTOFCalPlateB)
 
 //________________________________________________________________
 
-AliTOFCalPlateB::AliTOFCalPlateB(){
-  fCh = 0;
-  fGeom= 0x0; 
-  fNStripB = 0;
-  fNpadZ = 0;
-  fNpadX = 0;
+AliTOFCalPlateB::AliTOFCalPlateB():
+  fNStripB(0),
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(0x0), 
+  fCh(0x0)
+{
+  //main ctor
 }
 //________________________________________________________________
 
-AliTOFCalPlateB::AliTOFCalPlateB(AliTOFChannel *ch) : fCh(ch)
+AliTOFCalPlateB::AliTOFCalPlateB(AliTOFChannel *ch) : 
+  fNStripB(0),
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(0x0), 
+  fCh(ch)
 {
-  fGeom= 0x0; 
-  fNStripB = 0;
-  fNpadZ = 0;
-  fNpadX = 0;
+  //ctor with channel
 }
 //________________________________________________________________
 
-AliTOFCalPlateB::AliTOFCalPlateB(AliTOFGeometry *geom){
-  fCh = 0;
-  fGeom = geom;  
+AliTOFCalPlateB::AliTOFCalPlateB(AliTOFGeometry *geom):
+  fNStripB(0),
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(geom), 
+  fCh(0x0)
+{
+  //ctor with geom
   fNStripB = fGeom->NStripB();
   fNpadZ = fGeom->NpadZ();
   fNpadX = fGeom->NpadX();
 }
 //________________________________________________________________
 
-AliTOFCalPlateB::AliTOFCalPlateB(AliTOFGeometry *geom, AliTOFChannel *ch): fCh(ch)
+AliTOFCalPlateB::AliTOFCalPlateB(AliTOFGeometry *geom, AliTOFChannel *ch): 
+  fNStripB(0),
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(geom), 
+  fCh(ch)
 {
-  fGeom = geom;  
+  //ctor with channel and geom
   fNStripB = fGeom->NStripB();
   fNpadZ = fGeom->NpadZ();
   fNpadX = fGeom->NpadX();
@@ -83,14 +108,21 @@ AliTOFCalPlateB::AliTOFCalPlateB(AliTOFGeometry *geom, AliTOFChannel *ch): fCh(c
 
 AliTOFCalPlateB::~AliTOFCalPlateB()
 {
+  //dtor
   delete[] fCh;
 }
 
 //________________________________________________________________
 
 AliTOFCalPlateB::AliTOFCalPlateB(const AliTOFCalPlateB& pl):
-  TObject(pl)
+  TObject(pl),
+  fNStripB(0),
+  fNpadZ(0),
+  fNpadX(0),
+  fGeom(0x0), 
+  fCh(0x0)
   {
+  //copy ctor
     fCh = pl.fCh;
     fNStripB = pl.fNStripB;
     fNpadZ = pl.fNpadZ;
@@ -100,7 +132,21 @@ AliTOFCalPlateB::AliTOFCalPlateB(const AliTOFCalPlateB& pl):
   }
 //________________________________________________________________
 
+AliTOFCalPlateB& AliTOFCalPlateB::operator=(const AliTOFCalPlateB& pl)
+  {
+  //assignment operator
+    this->fCh = pl.fCh;
+    this->fNStripB = pl.fNStripB;
+    this->fNpadZ = pl.fNpadZ;
+    this->fNpadX = pl.fNpadX;
+    this->fGeom = pl.fGeom;
+    return *this;
+
+  }
+//________________________________________________________________
+
 void AliTOFCalPlateB::Browse(TBrowser *b){
+  //add cal obj to list of browsables
 
   if(fGeom==0x0){
     AliTOFGeometry *geom = new AliTOFGeometryV5();