]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDDigit.cxx
Added documentation of each file.
[u/mrichter/AliRoot.git] / FMD / AliFMDDigit.cxx
index c600e6ae3cad9a27725b9ad698e379ebd6b626b3..a2c9cc67c6396a1efed7316633bb32d3aa91d3a6 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
 /* $Id$ */
-
+/** @file    AliFMDDigit.cxx
+    @author  Christian Holm Christensen <cholm@nbi.dk>
+    @date    Mon Mar 27 12:37:41 2006
+    @brief   Digits for the FMD 
+*/
 //////////////////////////////////////////////////////////////////////
 //
 //  Digits classes for the FMD                
@@ -113,7 +116,9 @@ AliFMDBaseDigit::Print(Option_t* /* option*/) const
 const char*
 AliFMDBaseDigit::GetName() const 
 { 
-  return Form("FMD%d%c[%2d,%3d]", fDetector, fRing, fSector, fStrip);
+  static TString n;
+  n = Form("FMD%d%c[%2d,%3d]", fDetector, fRing, fSector, fStrip);
+  return n.Data();
 }
 
 //====================================================================
@@ -153,6 +158,15 @@ AliFMDDigit::AliFMDDigit(UShort_t detector,
   //    count3    ADC count (a 10-bit word) -1 if not used
 }
 
+//____________________________________________________________________
+const char*
+AliFMDDigit::GetTitle() const 
+{ 
+  static TString t;
+  t = Form("ADC: %d", Counts());
+  return t.Data();
+}
+
 //____________________________________________________________________
 void
 AliFMDDigit::Print(Option_t* /* option*/) const