AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEMCALTriggerChannelContainer::AliEMCALTriggerChannelPosition Class Reference

#include <AliEMCALTriggerChannelContainer.h>

Inheritance diagram for AliEMCALTriggerChannelContainer::AliEMCALTriggerChannelPosition:

Public Member Functions

 AliEMCALTriggerChannelPosition ()
 
 AliEMCALTriggerChannelPosition (int col, int row)
 
virtual ~AliEMCALTriggerChannelPosition ()
 
int GetCol () const
 
int GetRow () const
 
void SetCol (int col)
 
void SetRow (int row)
 
virtual Bool_t IsEqual (const TObject *ref) const
 
virtual Int_t Compare (const TObject *ref) const
 

Private Attributes

Int_t fCol
 Column of the trigger channel. More...
 
Int_t fRow
 Row of the trigger channel. More...
 

Detailed Description

Definition at line 26 of file AliEMCALTriggerChannelContainer.h.

Constructor & Destructor Documentation

AliEMCALTriggerChannelContainer::AliEMCALTriggerChannelPosition::AliEMCALTriggerChannelPosition ( )
inline

Dummy (I/O) constructor, not to be used

Definition at line 31 of file AliEMCALTriggerChannelContainer.h.

AliEMCALTriggerChannelContainer::AliEMCALTriggerChannelPosition::AliEMCALTriggerChannelPosition ( int  col,
int  row 
)
inline

Main constuctor, setting the position in column and row

Parameters
colColumn of the trigger channel
rowRow of the trigger channel

Definition at line 38 of file AliEMCALTriggerChannelContainer.h.

virtual AliEMCALTriggerChannelContainer::AliEMCALTriggerChannelPosition::~AliEMCALTriggerChannelPosition ( )
inlinevirtual

Destructor, nothing to do

Definition at line 43 of file AliEMCALTriggerChannelContainer.h.

Member Function Documentation

Int_t AliEMCALTriggerChannelContainer::AliEMCALTriggerChannelPosition::Compare ( const TObject *  ref) const
virtual

Compare objects. If objects differ, return always greater (+1). Otherwise compare col and row of the object. Col has priority with respect to row.

Parameters
refThe object ot comparte to
Returns
0 if objects are equal, -1 if this object is smaller, +1 if this object is larger.

Definition at line 40 of file AliEMCALTriggerChannelContainer.cxx.

int AliEMCALTriggerChannelContainer::AliEMCALTriggerChannelPosition::GetCol ( ) const
inline

Get the column of the channel

Returns
The column of the channel

Definition at line 49 of file AliEMCALTriggerChannelContainer.h.

int AliEMCALTriggerChannelContainer::AliEMCALTriggerChannelPosition::GetRow ( ) const
inline

Get the row of the channel

Returns
The row of the channel

Definition at line 55 of file AliEMCALTriggerChannelContainer.h.

Bool_t AliEMCALTriggerChannelContainer::AliEMCALTriggerChannelPosition::IsEqual ( const TObject *  ref) const
virtual

Check if the object is equal to object ref. Object can only be equal if ref is of the same type (AliEmcalTrigger channel position). If this is the case, col and row of the two objects have to match.

Parameters
refThe object to check
Returns
True if objects are equal, false otherwise

Definition at line 34 of file AliEMCALTriggerChannelContainer.cxx.

void AliEMCALTriggerChannelContainer::AliEMCALTriggerChannelPosition::SetCol ( int  col)
inline

Set the colummn of the channel

Parameters
colThe column of the channel

Definition at line 61 of file AliEMCALTriggerChannelContainer.h.

void AliEMCALTriggerChannelContainer::AliEMCALTriggerChannelPosition::SetRow ( int  row)
inline

Set the row of the channel

Parameters
rowThe row of the channel

Definition at line 67 of file AliEMCALTriggerChannelContainer.h.

Member Data Documentation

Int_t AliEMCALTriggerChannelContainer::AliEMCALTriggerChannelPosition::fCol
private

Column of the trigger channel.

Definition at line 87 of file AliEMCALTriggerChannelContainer.h.

Referenced by Compare(), GetCol(), IsEqual(), and SetCol().

Int_t AliEMCALTriggerChannelContainer::AliEMCALTriggerChannelPosition::fRow
private

Row of the trigger channel.

Definition at line 88 of file AliEMCALTriggerChannelContainer.h.

Referenced by Compare(), GetRow(), IsEqual(), and SetRow().


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