AliRoot Core  edcc906 (edcc906)
AliFMDBaseDigit Class Referenceabstract

base class for digits More...

#include <FMD/AliFMDDigit.h>

Inheritance diagram for AliFMDBaseDigit:

Public Member Functions

 AliFMDBaseDigit ()
 
 AliFMDBaseDigit (UShort_t detector, Char_t ring='\0', UShort_t sector=0, UShort_t strip=0)
 
 AliFMDBaseDigit (Int_t *tracks, UShort_t detector, Char_t ring='\0', UShort_t sector=0, UShort_t strip=0)
 
virtual ~AliFMDBaseDigit ()
 
UShort_t Detector () const
 
Char_t Ring () const
 
UShort_t Sector () const
 
UShort_t Strip () const
 
virtual void Print (Option_t *opt="") const
 
const char * GetName () const
 
Int_t Compare (const TObject *o) const
 
Bool_t IsSortable () const
 
void AddTrack (Int_t trackno)
 
UShort_t GetNTrack () const
 
virtual void SetCount (UShort_t s, Short_t c)=0
 
- Public Member Functions inherited from AliDigit
 AliDigit ()
 
 AliDigit (Int_t *track)
 
virtual ~AliDigit ()
 
virtual Int_t * GetTracks ()
 
virtual Int_t GetTrack (Int_t i) const
 

Protected Member Functions

ULong_t Hash () const
 

Protected Attributes

UShort_t fDetector
 
Char_t fRing
 
UShort_t fSector
 
UShort_t fStrip
 
TString fName
 
- Protected Attributes inherited from AliDigit
Int_t fTracks [3]
 

Detailed Description

base class for digits

Definition at line 31 of file AliFMDBaseDigit.h.

Constructor & Destructor Documentation

AliFMDBaseDigit::AliFMDBaseDigit ( )

CTOR

Definition at line 83 of file AliFMDBaseDigit.cxx.

AliFMDBaseDigit::AliFMDBaseDigit ( UShort_t  detector,
Char_t  ring = '\0',
UShort_t  sector = 0,
UShort_t  strip = 0 
)

Constrctor

Parameters
detectorDetector
ringRing
sectorSector
stripStrip

Definition at line 96 of file AliFMDBaseDigit.cxx.

AliFMDBaseDigit::AliFMDBaseDigit ( Int_t *  tracks,
UShort_t  detector,
Char_t  ring = '\0',
UShort_t  sector = 0,
UShort_t  strip = 0 
)

Constrctor

Parameters
tracksArray of 3 track indicies
detectorDetector
ringRing
sectorSector
stripStrip

Definition at line 119 of file AliFMDBaseDigit.cxx.

virtual AliFMDBaseDigit::~AliFMDBaseDigit ( )
inlinevirtual

DTOR

Definition at line 67 of file AliFMDBaseDigit.h.

Member Function Documentation

void AliFMDBaseDigit::AddTrack ( Int_t  trackno)

Add a track referenc

Parameters
tracknoThe track number

Definition at line 209 of file AliFMDBaseDigit.cxx.

Referenced by AliFMDDigit::AliFMDDigit(), AliFMDSDigit::AliFMDSDigit(), and IsSortable().

Int_t AliFMDBaseDigit::Compare ( const TObject *  o) const
Parameters
rhsOther digit to compare to
Returns
-1 if this is less than rhs, 0 if the refer to the same, and 1 if rhs is larger than this

Definition at line 183 of file AliFMDBaseDigit.cxx.

Referenced by Strip().

const char * AliFMDBaseDigit::GetName ( void  ) const
Returns
Name

Definition at line 155 of file AliFMDBaseDigit.cxx.

Referenced by AddTrack(), AliFMDRawReader::ReadAdcs(), Strip(), and AliFMDDigitizer::SumContributions().

UShort_t AliFMDBaseDigit::GetNTrack ( ) const

Get the number of track references (max 3)

Returns
Number of valid track references.

Definition at line 229 of file AliFMDBaseDigit.cxx.

Referenced by IsSortable(), AliFMDSDigit::Print(), DrawBothDigits::ProcessDigit(), DrawBothDigits::ProcessSDigit(), and AliFMDDigitizer::SumContributions().

ULong_t AliFMDBaseDigit::Hash ( ) const
protected

Calculate the hash value

Returns
Hash value

Definition at line 168 of file AliFMDBaseDigit.cxx.

Referenced by Compare(), and IsSortable().

Bool_t AliFMDBaseDigit::IsSortable ( ) const
inline
Returns
Always true

Definition at line 110 of file AliFMDBaseDigit.h.

void AliFMDBaseDigit::Print ( Option_t *  opt = "") const
virtual

Print information

Parameters
optNot used

Reimplemented in AliFMDSDigit, and AliFMDDigit.

Definition at line 145 of file AliFMDBaseDigit.cxx.

Referenced by AliFMDDigit::Print(), AliFMDSDigit::Print(), and Strip().

virtual void AliFMDBaseDigit::SetCount ( UShort_t  s,
Short_t  c 
)
pure virtual

Set the count value

Parameters
sSample number
cCounts

Implemented in AliFMDSDigit, and AliFMDDigit.

Referenced by IsSortable().

Member Data Documentation

UShort_t AliFMDBaseDigit::fDetector
protected

Definition at line 142 of file AliFMDBaseDigit.h.

Referenced by Detector(), GetName(), Hash(), and Print().

TString AliFMDBaseDigit::fName
mutableprotected

Definition at line 146 of file AliFMDBaseDigit.h.

Referenced by GetName().

Char_t AliFMDBaseDigit::fRing
protected

Definition at line 143 of file AliFMDBaseDigit.h.

Referenced by GetName(), Hash(), Print(), and Ring().

UShort_t AliFMDBaseDigit::fSector
protected

Definition at line 144 of file AliFMDBaseDigit.h.

Referenced by GetName(), Hash(), Print(), and Sector().

UShort_t AliFMDBaseDigit::fStrip
protected

Definition at line 145 of file AliFMDBaseDigit.h.

Referenced by GetName(), Hash(), Print(), and Strip().


The documentation for this class was generated from the following files: