AliRoot Core  edcc906 (edcc906)
AliFMDBaseDigit.h
Go to the documentation of this file.
1 #ifndef ALIFMDBASEDIGIT_H
2 #define ALIFMDBASEDIGIT_H
3 
9 //___________________________________________________________________
10 //
11 // Digits classes for the FMD
12 // AliFMDBaseDigit - base class
13 // AliFMDDigit - Normal (smeared) digit
14 // AliFMDSDigit - Summable (non-smeared) digit
15 //
16 #ifndef ALIDIGIT_H
17 # include <AliDigit.h>
18 #endif
19 #ifndef ROOT_TString
20 # include <TString.h>
21 #endif
22 
23 //____________________________________________________________________
31 class AliFMDBaseDigit : public AliDigit
32 {
33 public:
46  AliFMDBaseDigit(UShort_t detector,
47  Char_t ring='\0',
48  UShort_t sector=0,
49  UShort_t strip=0);
59  AliFMDBaseDigit(Int_t* tracks,
60  UShort_t detector,
61  Char_t ring='\0',
62  UShort_t sector=0,
63  UShort_t strip=0);
67  virtual ~AliFMDBaseDigit() {}
72  UShort_t Detector() const { return fDetector; }
77  Char_t Ring() const { return fRing; }
82  UShort_t Sector() const { return fSector; }
87  UShort_t Strip() const { return fStrip; }
93  virtual void Print(Option_t* opt="") const;
98  const char* GetName() const;
105  Int_t Compare(const TObject* o) const;
110  Bool_t IsSortable() const { return kTRUE; }
111 
117  void AddTrack(Int_t trackno);
118 
125  UShort_t GetNTrack() const;
126 
133  virtual void SetCount(UShort_t s, Short_t c) = 0;
134 protected:
141  ULong_t Hash() const;
142  UShort_t fDetector; // (Sub) Detector # (1,2, or 3)
143  Char_t fRing; // Ring ID ('I' or 'O')
144  UShort_t fSector; // Sector # (phi division)
145  UShort_t fStrip; // Strip # (radial division)
146  mutable TString fName;
147  ClassDef(AliFMDBaseDigit, 3) // Base class for FMD digits
148 };
149 
150 #endif
151 //____________________________________________________________________
152 //
153 // Local Variables:
154 // mode: C++
155 // End:
156 //
157 //
158 // EOF
159 //
UShort_t Sector() const
Char_t Ring() const
virtual void SetCount(UShort_t s, Short_t c)=0
Bool_t IsSortable() const
base class for digits
void AddTrack(Int_t trackno)
UShort_t Strip() const
virtual ~AliFMDBaseDigit()
const char * GetName() const
virtual void Print(Option_t *opt="") const
UShort_t Detector() const
Int_t Compare(const TObject *o) const
ULong_t Hash() const
UShort_t GetNTrack() const