]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDIndex.cxx
Add Classes (Thanks Constantin)
[u/mrichter/AliRoot.git] / FMD / AliFMDIndex.cxx
index 1c91261e812ae5c02a5e288036a3c61db6d22ad1..062009e8379018a56213d2e03a24a82a229dab9c 100644 (file)
@@ -38,6 +38,8 @@
 #include <AliFMDMap.h>
 
 //====================================================================
+using std::cout;
+using std::flush;
 ClassImp(AliFMDIndex)
 #if 0
   ; // This is here to keep Emacs from indenting the next line
@@ -49,7 +51,8 @@ AliFMDIndex::AliFMDIndex()
     fRing('\0'), 
     fSector(0), 
     fStrip(0), 
-    fHash(-1)
+    fName(""),
+    fHash(-1) 
 {
   // CTOR
 }
@@ -60,6 +63,7 @@ AliFMDIndex::AliFMDIndex(const AliFMDIndex& o)
     fRing(o.fRing), 
     fSector(o.fSector), 
     fStrip(o.fStrip), 
+    fName(""),
     fHash(o.fHash)
 {
   // Copy constructor 
@@ -74,6 +78,7 @@ AliFMDIndex::AliFMDIndex(UShort_t detector,
     fRing(ring), 
     fSector(sector), 
     fStrip(strip), 
+    fName(""),
     fHash(-1)
 {
   //
@@ -92,6 +97,7 @@ AliFMDIndex&
 AliFMDIndex::operator=(const AliFMDIndex& o)
 {
   // Assignment operator 
+  if (&o == this) return *this; 
   fDetector = o.fDetector;
   fRing     = o.fRing;
   fSector   = o.fSector;