]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDDigit.h
fix in Gain
[u/mrichter/AliRoot.git] / FMD / AliFMDDigit.h
index b150e39b24035077d70c12cc8c4a9198f632429b..d40c3a55d1dbf106c4683b065790584d538804b5 100644 (file)
@@ -1,11 +1,12 @@
 #ifndef ALIFMDDIGIT_H
 #define ALIFMDDIGIT_H
-
-//////////////////////////////////////////////////////////////////////
+//___________________________________________________________________
 //
-//  Digits classes for the FMD                
+//  Digits classes for the FMD
+//  AliFMDBaseDigit - base class 
+//  AliFMDDigit     - Normal (smeared) digit             
+//  AliFMDSDigit    - Summable (non-smeared) digit             
 //
-//////////////////////////////////////////////////////////////////////
 #ifndef ROOT_TObject
 # include <TObject.h>
 #endif
 //____________________________________________________________________
 class AliFMDBaseDigit : public TObject 
 {
-protected:
-  UShort_t fDetector;  // (Sub) Detector # (1,2, or 3)
-  Char_t   fRing;      // Ring ID ('I' or 'O')
-  UShort_t fSector;    // Sector # (phi division)
-  UShort_t fStrip;     // Strip # (radial division)
 public: 
   AliFMDBaseDigit();
   AliFMDBaseDigit(UShort_t detector, 
@@ -30,16 +26,18 @@ public:
   UShort_t     Sector()                   const { return fSector;   }
   UShort_t     Strip()            const { return fStrip;    }
   virtual void Print(Option_t* opt="") const;
+  const char*  GetName() const;
+protected:
+  UShort_t fDetector;  // (Sub) Detector # (1,2, or 3)
+  Char_t   fRing;      // Ring ID ('I' or 'O')
+  UShort_t fSector;    // Sector # (phi division)
+  UShort_t fStrip;     // Strip # (radial division)
   ClassDef(AliFMDBaseDigit, 1) // Base class for FMD digits 
 };
 
 //____________________________________________________________________
 class AliFMDDigit : public AliFMDBaseDigit
 {
-protected:
-  UShort_t fCount1;     // Digital signal 
-  Short_t  fCount2;     // Digital signal (-1 if not used)
-  Short_t  fCount3;     // Digital signal (-1 if not used)
 public:
   AliFMDDigit();
   AliFMDDigit(UShort_t detector, 
@@ -55,6 +53,11 @@ public:
   Short_t  Count3()                const { return fCount3;   }
   UShort_t Counts()                const;
   void     Print(Option_t* opt="") const;
+  const char* GetTitle() const;
+protected:
+  UShort_t fCount1;     // Digital signal 
+  Short_t  fCount2;     // Digital signal (-1 if not used)
+  Short_t  fCount3;     // Digital signal (-1 if not used)
   ClassDef(AliFMDDigit,1)     // Normal FMD digit
 };
 
@@ -69,11 +72,6 @@ AliFMDDigit::Counts() const
 //____________________________________________________________________
 class AliFMDSDigit : public AliFMDBaseDigit
 {
-protected:
-  Float_t  fEdep;       // Energy deposited 
-  UShort_t fCount1;     // Digital signal 
-  Short_t  fCount2;     // Digital signal (-1 if not used)
-  Short_t  fCount3;     // Digital signal (-1 if not used)
 public:
   AliFMDSDigit();
   AliFMDSDigit(UShort_t detector, 
@@ -91,6 +89,11 @@ public:
   Float_t  Edep()                  const { return fEdep;     }
   UShort_t Counts()                const;
   void     Print(Option_t* opt="") const;
+protected:
+  Float_t  fEdep;       // Energy deposited 
+  UShort_t fCount1;     // Digital signal 
+  Short_t  fCount2;     // Digital signal (-1 if not used)
+  Short_t  fCount3;     // Digital signal (-1 if not used)
   ClassDef(AliFMDSDigit,1)     // Summable FMD digit
 };