]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDEdepHitPair.h
Fixes for ROOT trunk - #error is seen by Cling-based rootcint
[u/mrichter/AliRoot.git] / FMD / AliFMDEdepHitPair.h
index 56e889e87ac60f54311999eb4b5f23e2061feaaf..88d0c598101b2067d155cdc7a1e66436d9a1a578 100644 (file)
 #ifndef ROOT_Rtypes
 # include <Rtypes.h>
 #endif 
+#ifndef ROOT_TArrayI
+# include <TArrayI.h>
+#endif
+
 //____________________________________________________________________
 /** @brief Cache of Energy deposited, hit information per strip.
     Contains a pair of energy deposited @c fEdep and 
 class AliFMDEdepHitPair 
 {
 public:
-  Float_t  fEdep;  // summed energy deposition
-  UShort_t fN;     // Number of hits
-  UShort_t fNPrim; // Number of primaries;
+  Float_t  fEdep;   // summed energy deposition
+  UShort_t fN;      // Number of hits
+  UShort_t fNPrim;  // Number of primaries;
+  TArrayI  fLabels; // Track labels.
   
   /** CTOR  */
-  AliFMDEdepHitPair() : fEdep(0), fN(0), fNPrim(0) {}
+  AliFMDEdepHitPair() : fEdep(0), fN(0), fNPrim(0), fLabels(0) {}
   /** DTOR */
   virtual ~AliFMDEdepHitPair() {}
   /** Assignment operator 
@@ -45,17 +50,19 @@ public:
       @return Reference to this object */
   AliFMDEdepHitPair& operator=(const AliFMDEdepHitPair& o) 
   { 
-    fEdep  = o.fEdep; 
-    fN     = o.fN; 
-    fNPrim = o.fNPrim;
+    if (&o == this) return *this; 
+    fEdep   = o.fEdep; 
+    fN      = o.fN; 
+    fNPrim  = o.fNPrim;
+    fLabels = o.fLabels;
     return *this; 
   }
   /** Copy CTOR 
       @param o Object to copy from */
   AliFMDEdepHitPair(const AliFMDEdepHitPair& o) 
-    : fEdep(o.fEdep), fN(o.fN), fNPrim(o.fNPrim)
+    : fEdep(o.fEdep), fN(o.fN), fNPrim(o.fNPrim), fLabels(o.fLabels)
   {}
-  ClassDef(AliFMDEdepHitPair, 2)
+  ClassDef(AliFMDEdepHitPair, 3)
 };
 
 #endif