]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFRawMap.cxx
Removing leftover return
[u/mrichter/AliRoot.git] / TOF / AliTOFRawMap.cxx
index d5fee233868b6dedcd6e0d0a92556a59836581b2..8e088785a57c9cdd56c5d1336d4b561c74e6883d 100644 (file)
@@ -37,6 +37,7 @@
 ClassImp(AliTOFRawMap)
 
 AliTOFRawMap::AliTOFRawMap():
+  TObject(),
   fNtrm(-1),
   fNtrmChain(-1),
   fNtdc(-1),
@@ -51,11 +52,12 @@ AliTOFRawMap::AliTOFRawMap():
 }
 
 ////////////////////////////////////////////////////////////////////////
-AliTOFRawMap::AliTOFRawMap(TClonesArray *dig)://, AliTOFGeometry *tofGeom):
-  fNtrm(-1),
-  fNtrmChain(-1),
-  fNtdc(-1),
-  fNtdcChannel(-1),
+AliTOFRawMap::AliTOFRawMap(TClonesArray *dig)://, AliTOFGeometry *tofGeom:
+  TObject(),
+  fNtrm(AliTOFGeometry::NTRM()+2),
+  fNtrmChain(AliTOFGeometry::NChain()),
+  fNtdc(AliTOFGeometry::NTdc()),
+  fNtdcChannel(AliTOFGeometry::NCh()),
   fRawData(dig),
   fMaxIndex(-1),
   fRawMap(0x0)
@@ -67,40 +69,19 @@ AliTOFRawMap::AliTOFRawMap(TClonesArray *dig)://, AliTOFGeometry *tofGeom):
 // of course, these constants must not be hardwired
 // change later
 
-  fNtrm = AliTOFGeometry::NTRM()+2;
-  fNtrmChain = AliTOFGeometry::NChain();
-  fNtdc = AliTOFGeometry::NTdc();
-  fNtdcChannel = AliTOFGeometry::NCh();
   fMaxIndex = fNtrm*fNtrmChain*fNtdc*fNtdcChannel;
   fRawMap = new Int_t[fMaxIndex];
   Clear();
 }
 
-////////////////////////////////////////////////////////////////////////
-AliTOFRawMap::AliTOFRawMap(const AliTOFRawMap & /*rawMap*/)
-  :TObject(),
-  fNtrm(-1),
-  fNtrmChain(-1),
-  fNtdc(-1),
-  fNtdcChannel(-1),
-  fRawData(0x0),
-  fMaxIndex(-1),
-  fRawMap(0x0)
-{
-//
-// Dummy copy constructor
-//
-
-}
-
 ////////////////////////////////////////////////////////////////////////
 AliTOFRawMap::~AliTOFRawMap()
 {
 //
 // Destructor
 //
-  delete[] fRawMap;
+  if (fRawMap)
+    delete[] fRawMap;
 
 }
 
@@ -114,7 +95,7 @@ void AliTOFRawMap::Clear(const char *)
 }
 
 ////////////////////////////////////////////////////////////////////////
-Int_t AliTOFRawMap::CheckedIndex(Int_t *slot) const
+Int_t AliTOFRawMap::CheckedIndex(const Int_t * const slot) const
 {
 //
 // Return checked indices for vol
@@ -192,9 +173,3 @@ FlagType AliTOFRawMap::TestHit(Int_t *slot) const
     }
 }
 
-////////////////////////////////////////////////////////////////////////
-AliTOFRawMap & AliTOFRawMap::operator = (const AliTOFRawMap & /*rhs*/) 
-{
-// Dummy assignment operator
-    return *this;
-}