#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,
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,
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
};
//____________________________________________________________________
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,
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
};