]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDDigitizer.h
In AliFMDReconstructor and AliFMDRevertexer, use AliFMDGeometry
[u/mrichter/AliRoot.git] / FMD / AliFMDDigitizer.h
index c2e8f64cdc0f834451dea90fcdccc500264fd8c3..1d9530d69902d8165b85da4def669025441cb016 100644 (file)
@@ -5,7 +5,7 @@
  *
  * See cxx source for full Copyright notice                               
  */
-// Classses to make Hits into digits and summable digits. 
+// Classses to make SDigits into Digits 
 //    
 //    Digits consists of
 //    - Detector #
@@ -58,49 +58,18 @@ public:
     : AliFMDBaseDigitizer(manager) {}
   /** DTOR */
   virtual ~AliFMDDigitizer() {}
+  /** Initialise */
+  virtual Bool_t Init();
+  /** Execute this digitizer.  
+      This member function will be called once per event by the passed
+      AliRunDigitizer manager object. 
+      @param options Not used */
+  virtual void Exec(Option_t* option="");
 protected:
-  /** Output to disk 
-      @param outFMD Loader
-      @param fmd    AliFMD object */
-  virtual void OutputTree(AliLoader* outFMD, AliFMD* fmd);
-  /** Add a digit to output.
-      @param fmd      Pointer to detector object
-      @param detector Detector #
-      @param ring     Ring ID
-      @param sector   Sector number
-      @param strip    Strip number
-      @param edep     Energy deposited (not used)
-      @param count1   ADC count 1
-      @param count2   ADC count 2 (-1 if not used)
-      @param count3   ADC count 3 (-1 if not used) 
-      @param count4   ADC count 4 (-1 if not used) */
-  virtual void     AddDigit(AliFMD*  fmd,
-                           UShort_t detector, 
-                           Char_t   ring,
-                           UShort_t sector, 
-                           UShort_t strip, 
-                           Float_t  edep, 
-                           UShort_t count1, 
-                           Short_t  count2, 
-                           Short_t  count3,
-                           Short_t  count4) const;
-  /** MAke a pedestal
-      @param detector Detector #
-      @param ring     Ring ID
-      @param sector   Sector number
-      @param strip    Strip number
-      @return Random noise */
-  virtual UShort_t MakePedestal(UShort_t  detector, 
-                               Char_t    ring, 
-                               UShort_t  sector, 
-                               UShort_t  strip) const;
-  /** Check that digit data is consistent
-      @param digit   Digit
-      @param nhits   Number of hits
-      @param counts  ADC counts */
-  virtual void     CheckDigit(AliFMDDigit*    digit,
-                             UShort_t        nhits,
-                             const TArrayI&  counts);
+  /** Sum contributions from SDigits 
+      @param sdigitsBranch Branch of SDigit data */
+  void SumContributions(TBranch* sdigitsBranch);
+  
   ClassDef(AliFMDDigitizer,1) // Make Digits from Hits
 };