Increased error checking and possibility to extract some diagnostics
[u/mrichter/AliRoot.git] / FMD / AliFMDBaseDigitizer.h
index b5d77f8..bb135f4 100644 (file)
@@ -230,7 +230,8 @@ protected:
                               UShort_t strip, 
                               Float_t  edep, 
                               Bool_t   isPrimary,
-                              Int_t    trackno);
+                              Int_t    nTrackno,
+                              Int_t*   tracknos);
   /** Add a digit to output */
   virtual void     AddDigit(UShort_t       detector, 
                            Char_t         ring,
@@ -250,13 +251,14 @@ protected:
   virtual TTree* MakeOutputTree(AliLoader* loader);
   /** Store the data using the loader 
       @param loader The loader */
-  virtual void StoreDigits(AliLoader* loader);
+  virtual void StoreDigits(const AliLoader* loader);
 
   AliFMD*         fFMD;              // Detector object 
   AliRunLoader*   fRunLoader;       //! Run loader
   AliFMDEdepMap   fEdep;             // Cache of Energy from hits 
   Float_t         fShapingTime;      // Shaping profile parameter
   Bool_t          fStoreTrackRefs;   // Wether to store track references
+  mutable Int_t   fIgnoredLabels;    //! Number of labels not assigned 
   
   /** Copy CTOR 
       @param o object to copy from  */
@@ -266,20 +268,17 @@ protected:
       fRunLoader(0),
       fEdep(o.fEdep),
       fShapingTime(o.fShapingTime),
-      fStoreTrackRefs(o.fStoreTrackRefs)
+      fStoreTrackRefs(o.fStoreTrackRefs), 
+      fIgnoredLabels(o.fIgnoredLabels)
   {}
-  /** Assignment operator
-      @return Reference to this object */
-  AliFMDBaseDigitizer& operator=(const AliFMDBaseDigitizer& o) 
-  { 
-    AliDigitizer::operator=(o);
-    fRunLoader      = o.fRunLoader;
-    fEdep           = o.fEdep;
-    fShapingTime    = o.fShapingTime;
-    fStoreTrackRefs = o.fStoreTrackRefs;
-    return *this; 
-  }
-  ClassDef(AliFMDBaseDigitizer,2) // Base class for FMD digitizers
+  /** 
+   * Assignment operator
+   * 
+   * @return Reference to this object 
+   */
+  AliFMDBaseDigitizer& operator=(const AliFMDBaseDigitizer& o);
+
+  ClassDef(AliFMDBaseDigitizer,4) // Base class for FMD digitizers
 };