]> 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 3bd3d4876f016cc0d19b790150e8c55f2f6356d9..1d9530d69902d8165b85da4def669025441cb016 100644 (file)
@@ -1,41 +1,87 @@
 #ifndef ALIFMDDIGITIZER_H
 #define ALIFMDDIGITIZER_H
-/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-#include <AliDigitizer.h>
-#include <AliRunDigitizer.h>
+/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights
+ * reserved. 
+ *
+ * See cxx source for full Copyright notice                               
+ */
+// Classses to make SDigits into Digits 
+//    
+//    Digits consists of
+//    - Detector #
+//    - Ring ID                                             
+//    - Sector #     
+//    - Strip #
+//    - ADC count in this channel                                  
+//
+//    Summable digits consists of      
+//    - Detector #
+//    - Ring ID                                             
+//    - Sector #     
+//    - Strip #
+//    - Total energy deposited in the strip
+//    - ADC count in this channel                                  
+//
+/** @file    AliFMDDigitizer.h
+    @author  Christian Holm Christensen <cholm@nbi.dk>
+    @date    Mon Mar 27 12:38:26 2006
+    @brief   FMD Digitizers declaration
+    @ingroup FMD_sim
+*/
+#ifndef ALIFMDBASEDIGITIZER_H
+# include <AliFMDBaseDigitizer.h>
+#endif
 
+//====================================================================
 class TClonesArray;
-class AliFMDDigitizer : public AliDigitizer {
- public:
-  
-  AliFMDDigitizer();
-  AliFMDDigitizer(AliRunDigitizer * manager);
-  virtual ~AliFMDDigitizer();
-  virtual Bool_t Init();
-   
-  
-  // Do the main work
-  void Exec(Option_t* option=0) ;
-  Int_t PutNoise(Int_t charge) {return (Int_t)(gRandom->Gaus(charge,500));}
-  TClonesArray *Digits() const {return fDigits;}
-  TClonesArray *Hits() const {return fHits;}
-   Bool_t GetDebug() const {return fManager->GetDebug();}
+class AliFMD;
+class AliLoader;
+class AliRunLoader;
+class AliFMDDigit;
 
-  
-  enum {kBgTag = -1};
-      
-   
- private:
-  TClonesArray *fDigits;               // ! array with digits
-  TClonesArray *fHits;                 // List of hits
-  AliRunDigitizer* GetManager(){return fManager;}
-         
-    ClassDef(AliFMDDigitizer,0)
-};    
-#endif
 
 
+//====================================================================
+/** @class AliFMDDigitizer
+    @brief Concrete digitizer to make digits from hits.  See also
+    AliFMDBaseDigitizer documentation.  
+    @ingroup FMD_sim
+ */
+class AliFMDDigitizer : public AliFMDBaseDigitizer 
+{
+public:
+  /** CTOR */
+  AliFMDDigitizer() : AliFMDBaseDigitizer() {}
+  /** CTOR 
+      @param manager Manager of digitization */
+  AliFMDDigitizer(AliRunDigitizer * manager)
+    : 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:
+  /** Sum contributions from SDigits 
+      @param sdigitsBranch Branch of SDigit data */
+  void SumContributions(TBranch* sdigitsBranch);
+  
+  ClassDef(AliFMDDigitizer,1) // Make Digits from Hits
+};
 
 
+#endif
+//____________________________________________________________________
+//
+// Local Variables:
+//   mode: C++
+// End:
+//
+//
+// EOF
+//
+